CVE-2026-58013 Glib: buffer over-read in glib/giochannel.c via "g_io_channel_read_line_backend"

Medium 6.5 Published Updated

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.

All Redhat Enterprise Linux vulnerabilities

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.

Is CVE-2026-58013 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free