CVE-2026-58012
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.
CSIRTS triage
- What
- Buffer over-read can occur in g_regex_replace() due to certain function calls.
- Who is affected
- Users of Glib that utilize regex functionalities.
- Urgency
- This medium severity issue should be addressed to prevent potential data leaks.
- Action
- Update to the latest version of Glib.
AI-assisted analysis generated from the source advisory — verify against the original.
⚡ Watch CVE-2026-58012
Get an email if CVE-2026-58012 is added to CISA KEV, gains public exploit code, or a new advisory cites it — max one per day, one-click unsubscribe.
Exploitation outlook
- Low exploitation risk0.32% 30-day exploitation probability — currently an unlikely target, but scores change as exploit code circulates. Riskier than 24% of all EPSS-scored CVEs.
Advisory coverage (2)
External references
Embed the live status
— this badge updates automatically when the KEV or exploit status changes. How to embed it →
[](https://www.csirts.com/cve/CVE-2026-58012)