CVE-2026-58015: GLib D-Bus Path Traversal Authentication Flaw
A security flaw in GLib's D-Bus SASL authentication allows a malicious D-Bus server to trick a client into reading arbitrary files from the system. During the DBUS_COOKIE_SHA1 authentication handshake, the server sends a cookie context parameter that the client does not properly validate. An attacker can embed path traversal sequences in this parameter to force the client to read sensitive files and leak their contents by comparing file data against cryptographic hashes. The attack requires network access and some guessing, but succeeds without user interaction.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 5.9 MEDIUM · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses (CWE)
- CWE-22
- Affected products
- 6 configuration(s)
- Published / Modified
- 2026-06-30 / 2026-08-03
NVD description (verbatim)
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.
4 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability exists in GLib's D-Bus client-side implementation of the DBUS_COOKIE_SHA1 SASL mechanism (CWE-22: Improper Limitation of a Pathname to a Restricted Directory). The authentication protocol expects the server to send a cookie_context value that identifies a location for a shared authentication cookie. The client code fails to sanitize or validate this input before using it in file path operations, permitting directory traversal attacks. By crafting a malicious cookie_context containing sequences like '../' or absolute paths, an attacker controlling a D-Bus service endpoint can cause the client to open and read files outside the intended directory. The client then uses HMAC-SHA1 to hash the file contents and compare against a server-supplied hash, allowing the attacker to confirm whether guessed file content matches reality—effectively exfiltrating sensitive data without direct file disclosure.
Business impact
Applications and system services that connect to untrusted or compromised D-Bus servers risk exposure of sensitive configuration files, credentials, private keys, or other confidential data stored on the client system. Enterprise environments where D-Bus is used for inter-process communication across trust boundaries are particularly vulnerable. The attack surface widens in containerized or multi-tenant environments where D-Bus sockets may be accessible to less-privileged workloads or adversaries with limited network access. Data exfiltration can compromise authentication tokens, API keys, database passwords, or proprietary application secrets.
Affected systems
The flaw affects GLib across multiple distributions and products. Red Hat Enterprise Linux systems across multiple versions are impacted, along with any third-party or upstream applications that depend on the vulnerable GLib library for D-Bus client functionality. Verify specific affected versions against Red Hat's advisory and check your organization's GLib package version using 'pkg-config --modversion glib-2.0' or equivalent package management tools.
Exploitability
Exploitation requires an attacker to operate or compromise a D-Bus service that the victim's client will connect to. The attack surface is limited by D-Bus access controls and socket permissions, but in scenarios where D-Bus sockets are shared across trust boundaries—such as the system bus in multi-user or containerized environments—an unprivileged attacker may establish a malicious service. The CVSS score of 5.9 (MEDIUM) reflects high confidentiality impact but high attack complexity: the attacker must guess file paths and content, and the client must initiate a connection to a compromised service. The vulnerability is not currently tracked in CISA's Known Exploited Vulnerabilities catalog.
Remediation
Update GLib to a patched version that properly validates the cookie_context parameter before using it in file path operations. Consult Red Hat's security advisory for specific version numbers and timelines. In the interim, apply network segmentation to restrict client access to trusted D-Bus services only, disable or isolate system D-Bus sockets where feasible, and monitor for unexpected D-Bus service registrations on the system bus.
Patch guidance
Contact your system vendor (Red Hat, Debian, Ubuntu, etc.) for patched GLib packages and apply them to affected systems. Verify the patch version against the vendor advisory before deployment. Prioritize systems that run services handling sensitive data or authentication. Test patches in a staging environment before rolling out to production, particularly if custom applications depend on D-Bus functionality.
Detection guidance
Monitor system logs for unusual D-Bus service registrations, particularly from low-privilege or container processes. Inspect D-Bus traffic using tools like dbus-monitor for unexpected path traversal sequences in authentication handshakes. Track file access patterns in security audit logs for reads of sensitive directories by D-Bus clients. Implement file integrity monitoring (FIM) on system configuration and credential storage directories to detect unauthorized access attempts.
Why prioritize this
Although the CVSS score is MEDIUM, prioritize patching in multi-user or containerized environments where D-Bus is exposed to untrusted processes, and in systems handling sensitive data. Single-user desktops with strict socket permissions face lower risk. Organizations should assess D-Bus trust boundaries in their architecture before deprioritizing this update.
Risk score, explained
The CVSS 3.1 score of 5.9 (MEDIUM severity) reflects high confidentiality impact (data exfiltration) but is tempered by high attack complexity (AC:H): the attacker must operate a malicious D-Bus service and guess file paths and contents. No authentication is required (PR:N), the vulnerability is network-accessible (AV:N), and no user interaction is needed (UI:N). The scope is unchanged and there is no integrity or availability impact. Organizations in environments where D-Bus trust boundaries are weak may assess this as higher risk than the base score suggests.
Frequently asked questions
Can an attacker read any file on the system?
Only files that the D-Bus client process has permission to read. Typical D-Bus services run as specific users (e.g., root or system daemons), so the attacker is limited by Unix file permissions. However, this still permits access to sensitive files like /etc/shadow if the client runs with elevated privilege, or user home directories if the client is a user service.
Is this vulnerability exploited in the wild?
As of the published date, this vulnerability is not listed on CISA's Known Exploited Vulnerabilities catalog. However, organizations should assume that proof-of-concept code or active exploitation is possible once patches are widely available, particularly in targeted attacks.
Do I need to patch immediately if I only use D-Bus locally?
If D-Bus sockets are confined to local user sessions and never exposed to untrusted processes (e.g., containers, unprivileged users, or network namespaces), your risk is lower. However, review your D-Bus socket permissions and trust boundaries carefully. System-wide D-Bus services should be patched promptly.
What should I do if I cannot patch immediately?
Isolate or disable D-Bus services that are not essential. Use AppArmor or SELinux to restrict D-Bus socket access. Monitor for suspicious D-Bus activity. Apply principle of least privilege to D-Bus service processes. Plan and schedule patching as soon as vendor packages are available.
This analysis is provided for informational purposes and does not constitute professional security advice. Verify all patch versions, affected product versions, and vendor guidance against official Red Hat, GNOME, and distribution advisories before taking action. CVSS scores and severity assessments are provided by the NVD and MITRE; organizations should conduct their own risk assessment based on their environment and threat model. Always test patches in a non-production environment before deployment. Source: NVD (public-domain), retrieved 2026-08-09. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-57966MEDIUMPath Traversal in spice-vdagent File Transfers
- CVE-2026-9083MEDIUMKeycloak Filesystem Path Traversal Information Disclosure
- CVE-2026-12549MEDIUMGNOME libsoup Range Request Regression Leading to DoS and Log Flooding
- CVE-2026-1764MEDIUMGNOME localsearch MP3 Parser Heap Buffer Over-Read Vulnerability
- CVE-2026-1766MEDIUMGNOME Localsearch MP3 Heap Buffer Overflow & Memory Leak
- CVE-2026-1767MEDIUMGNOME Localsearch MP3 Parser Heap Overflow – Patching Guide
- CVE-2026-58010MEDIUMGLib Off-by-One Bounds Check Vulnerability – Information Disclosure and DoS
- CVE-2026-58011MEDIUMGLib Out-of-Bounds Read in Date-Time Handling (CVSS 6.5)