Vulnerability Description
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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Gnome | Glib | < 2.86.5 |
| Redhat | Enterprise Linux | 6.0 |
Related Weaknesses (CWE)
References
- https://access.redhat.com/errata/RHSA-2026:49512
- https://access.redhat.com/errata/RHSA-2026:55440
- https://access.redhat.com/errata/RHSA-2026:57015
- https://access.redhat.com/security/cve/CVE-2026-58012Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2492247Issue TrackingThird Party Advisory
- https://gitlab.gnome.org/GNOME/glib/-/issues/3918ExploitIssue TrackingVendor Advisory
FAQ
What is CVE-2026-58012?
CVE-2026-58012 is a vulnerability with a CVSS score of 6.5 (MEDIUM). 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 funct...
How severe is CVE-2026-58012?
CVE-2026-58012 has been rated MEDIUM with a CVSS base score of 6.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-58012?
Check the references section above for vendor advisories and patch information. Affected products include: Gnome Glib, Redhat Enterprise Linux.