Description
A flaw was found in GLib. The D-Bus client-side implementation of the DBUS_COOKIE_SHA1 SASL authentication mechanism does not validate the cookie_context parameter received from the server. A malicious D-Bus server can supply a cookie_context containing path traversal sequences, causing the client to read an arbitrary file and exfiltrate sensitive data by verifying guessed file contents against a generated hash.
Published: 2026-06-30
Score: 5.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw lies in GLib’s D‑Bus client‑side handling of the DBUS_COOKIE_SHA1 SASL authentication mechanism: the cookie_context value supplied by a server is not validated. A malicious or impersonating D‑Bus server can therefore inject a cookie_context containing path‑traversal sequences, and the client will read the referenced file, output a hash of its contents, and transmit that hash back to the server. This enables an attacker to read arbitrary files that the client process can access, potentially exposing credentials or configuration data.

Affected Systems

GNOME’s GLib library and Red Hat Enterprise Linux releases 6, 7, 8, 9, 10, along with Red Hat Hardened Images are affected. All systems running an impacted GLib version are susceptible; the advisory does not specify exact patch levels, but any installation that uses the flawed GLib code is at risk.

Risk and Exploitability

The CVSS score of 5.9 indicates moderate severity. The EPSS score is <1% (approximately 0.3%) and the issue is not listed in the CISA KEV catalog. Exploit requires a malicious or spoofed D‑Bus service that the client will trust. Once such a service is established, the attacker can read any file accessible to the client process, enabling exfiltration of sensitive data. Isolation of D‑Bus traffic, strict authentication rules, and disabling the vulnerable mechanism substantially reduce this risk.

Generated by OpenCVE AI on July 4, 2026 at 15:55 UTC.

Remediation

Vendor Workaround

To mitigate this vulnerability, ensure that applications only connect to trusted D-Bus servers and operate within secure, isolated networks to prevent man-in-the-middle (MitM) attacks. If feasible, configuring the D-Bus connection to strictly require the EXTERNAL authentication mechanism and disabling DBUS_COOKIE_SHA1 will completely neutralize this issue.


OpenCVE Recommended Actions

  • Apply the latest GLib release or vendor patch that corrects the cookie_context validation bug.
  • Disable the DBUS_COOKIE_SHA1 authentication mechanism in the D‑Bus configuration and enable only the EXTERNAL mechanism for all client connections.
  • Limit client connections to trusted, secure D‑Bus servers and confine D‑Bus traffic to isolated, secure networks.
  • Optionally enforce SELinux or AppArmor policies to restrict the file‑system access of affected client processes.

Generated by OpenCVE AI on July 4, 2026 at 15:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 02 Jul 2026 02:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-22

Wed, 01 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 01 Jul 2026 10:30:00 +0000

Type Values Removed Values Added
First Time appeared Gnome
Gnome glib
Redhat hardened Images
Vendors & Products Gnome
Gnome glib
Redhat hardened Images

Tue, 30 Jun 2026 17:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-22

Tue, 30 Jun 2026 15:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-22

Tue, 30 Jun 2026 13:15:00 +0000

Type Values Removed Values Added
Description A flaw was found in GLib. The D-Bus client-side implementation of the DBUS_COOKIE_SHA1 SASL authentication mechanism does not validate the cookie_context parameter received from the server. A malicious D-Bus server can supply a cookie_context containing path traversal sequences, causing the client to read an arbitrary file and exfiltrate sensitive data by verifying guessed file contents against a generated hash.
Title Glib: path traversal in glib/gio/gdbusauthmechanismsha1.c via keyring_lookup_entry and mechanism_client_data_receive
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
CPEs cpe:/a:redhat:hummingbird:1
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}


Subscriptions

Gnome Glib
Redhat Enterprise Linux Hardened Images Hummingbird
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-07-02T00:42:47.467Z

Reserved: 2026-06-26T20:59:47.856Z

Link: CVE-2026-58015

cve-icon Vulnrichment

Updated: 2026-07-01T14:28:23.979Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-04T16:00:04Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')