CVE-2026-58012

published 30 Jun 2026 · updated 16 Nov 2026

Glib: buffer over-read in g_regex_replace() via glib/gregex.c:string_append() and g_utf8_next_char()

7.5HighCVSS 6.5EPSS 0%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 2.86.5 and 2.88.1.

A flaw was found in GLib. A buffer over-read can occur in the g_regex_replace function when used with the `G_REGEX_RAW` compile flag and case-change replacement escapes because the string_append function processes matched substrings using UTF-8 functions that assume valid UTF-8 input, even when the string is treated as raw bytes. This vulnerability can cause a minor information disclosure of 1-5 bytes and a denial of service when the buffer over-read crosses a page boundary.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GNOMEglib=2.88.0, <2.86.52.86.5
GNOME<2.86.5, <2.88.12.86.5, 2.88.1
Red HatAI Inference Server
Red HatCert Manager support for Red Hat OpenShift
Red HatDiscovery
Red HatEnterprise Linux
Red HatHardened Images
Red HatOpenShift AI
Red HatUpdate Infrastructure
redhatenterprise_linux=9.0, =10.0, =7.0, =6.0, =8.0

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Red Hat, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-58012 severity on Zeptric[![CVE-2026-58012](https://zeptric.io/badge/cve/CVE-2026-58012.svg)](https://zeptric.io/cve/CVE-2026-58012)