CVE-2026-58013 Glib: buffer over-read in glib/giochannel.c via "g_io_channel_read_line_backend"
A buffer over-read in GLib allows attackers to disclose minor data or cause denial of service when custom line terminators are used.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-58013?
CVE-2026-58013 is a medium-severity vulnerability in Redhat Enterprise Linux, published on 30 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A flaw was found in GLib. A buffer over-read can occur in g_io_channel_read_line_backend() in the giochannel.c file when a custom line terminator with a length greater than one is set, causing memcmp to read past the GString buffer. This vulnerability can cause a minor information disclosure of 7 bytes or a denial of service when the buffer over-read crosses a page boundary.
Weakness: CWE-126
Which versions are affected by CVE-2026-58013?
It affects 2 products.
Products include Gnome Glib, Redhat Enterprise Linux.
How do I fix CVE-2026-58013?
Apply the vendor's patch.
Is CVE-2026-58013 being exploited?
There is no known exploitation of CVE-2026-58013 in the wild and no public exploit code.
Other vulnerabilities in Redhat Enterprise Linux
- CVE-2020-35457 Integer overflow in n/a
- CVE-2009-3289 Privilege escalation in n/a
- CVE-2025-13601 Glib: integer overflow in in g_escape_uri_string()
- CVE-2026-58016 Glib: integer underflow in gio/gdbusintrospection.c via "g_dbus_node_info_new_for_xml"
- CVE-2025-4056 Glib: glib crash after long command line
Sources
Also known as AZL-91442, BELL-CVE-2026-58013, DEBIAN-CVE-2026-58013, ECHO-e657-17cf-15c8, GHSA-4x46-h598-64qr, JLSEC-2026-1246 and 5 more.