Bug 2494882 - CVE-2026-58015 glib2: path traversal in glib/gio/gdbusauthmechanismsha1.c via keyring_lookup_entry and mechanism_client_data_receive [fedora-all]
Summary: CVE-2026-58015 glib2: path traversal in glib/gio/gdbusauthmechanismsha1.c via...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: glib2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["30d6d230-fd82-4f22-a410-6...
Depends On:
Blocks: CVE-2026-58015
TreeView+ depends on / blocked
 
Reported: 2026-06-30 13:02 UTC by Guilherme de Almeida Suckevicz
Modified: 2026-08-12 16:42 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-08-12 16:42:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2026-06-30 13:02:21 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

The GLib D-Bus client-side implementation of the DBUS_COOKIE_SHA1 SASL authentication mechanism does not validate the cookie_context parameter received from the server. The D-Bus specification explicitly states that cookie context names must not contain the characters /, \, . (period), spaces, or ASCII control characters. However, GLib's client-side code accepts this value verbatim and uses it to construct a filesystem path via g_build_filename(). A malicious D-Bus server can supply a cookie_context containing path traversal sequences such as ../.target_file, causing the client to read an arbitrary file outside the ~/.dbus-keyrings/ directory. The file contents (specifically the third space-separated token of the first matching line) are then incorporated into a SHA1 hash computation and sent back to the server as part of the authentication response. The server can verify guessed file contents against this SHA1 hash, enabling data exfiltration.

Comment 1 lpavan 2026-08-12 15:51:01 UTC
This was fixed upstream with the following releases:

- 2.88.1
- 2.89.0

Fedora 44 and 45 ship 2.88.3 and 2.89.3 respectively, thus not affected.

While Fedora 43 is affected (2.86.5), the CVE is considered low impact in practice. Furthermore, Fedora 43 will EOL on December 9. No fix is planned.


Note You need to log in before you can comment on or make changes to this bug.