Medium severity6.5NVD Advisory· Published Jun 30, 2026· Updated Sep 10, 2026
CVE-2026-58012
CVE-2026-58012
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
21- osv-coords12 versionspkg:rpm/almalinux/mingw32-glib2-staticpkg:rpm/almalinux/glib2-develpkg:rpm/almalinux/mingw32-glib2pkg:rpm/opensuse/glib2-doc&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/glib2&distro=openSUSE%20Leap%2016.0pkg:rpm/almalinux/glib2pkg:rpm/almalinux/glib2-staticpkg:rpm/almalinux/glib2-testspkg:rpm/almalinux/mingw64-glib2pkg:rpm/almalinux/glib2-fampkg:rpm/almalinux/glib2-docpkg:rpm/almalinux/mingw64-glib2-static
< 2.70.1-9.el8_10+ 11 more
- (no CPE)range: < 2.70.1-9.el8_10
- (no CPE)range: < 2.68.4-19.el9_8.9
- (no CPE)range: < 2.70.1-9.el8_10
- (no CPE)range: < 2.84.4-160000.4.1
- (no CPE)range: < 2.84.4-160000.4.1
- (no CPE)range: < 2.68.4-19.el9_8.9
- (no CPE)range: < 2.68.4-19.el9_8.9
- (no CPE)range: < 2.68.4-19.el9_8.9
- (no CPE)range: < 2.70.1-9.el8_10
- (no CPE)range: < 2.56.4-177.el8_10
- (no CPE)range: < 2.68.4-19.el9_8.9
- (no CPE)range: < 2.70.1-9.el8_10
(expand)+ 3 more
- (no CPE)
- cpe:2.3:a:gnome:glib:*:*:*:*:*:*:*:*range: <2.86.5
- cpe:2.3:a:gnome:glib:2.88.0:*:*:*:*:*:*:*
- (no CPE)
cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*+ 4 more
- cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*
Patches
Vulnerability mechanics
References
21- gitlab.gnome.org/GNOME/glib/-/issues/3918nvdExploitIssue TrackingVendor Advisory
- access.redhat.com/security/cve/CVE-2026-58012nvdThird Party Advisory
- bugzilla.redhat.com/show_bug.cginvdIssue TrackingThird Party Advisory
- access.redhat.com/errata/RHSA-2026:49512nvd
- access.redhat.com/errata/RHSA-2026:55440nvd
- access.redhat.com/errata/RHSA-2026:57015nvd
- access.redhat.com/errata/RHSA-2026:58981nvd
- access.redhat.com/errata/RHSA-2026:61766nvd
- access.redhat.com/errata/RHSA-2026:61783nvd
- access.redhat.com/errata/RHSA-2026:63135nvd
- access.redhat.com/errata/RHSA-2026:63138nvd
- access.redhat.com/errata/RHSA-2026:63140nvd
- access.redhat.com/errata/RHSA-2026:65762nvd
- access.redhat.com/errata/RHSA-2026:65763nvd
- access.redhat.com/errata/RHSA-2026:65767nvd
- access.redhat.com/errata/RHSA-2026:65768nvd
- access.redhat.com/errata/RHSA-2026:65769nvd
- access.redhat.com/errata/RHSA-2026:65770nvd
- access.redhat.com/errata/RHSA-2026:65771nvd
- access.redhat.com/errata/RHSA-2026:65773nvd
- access.redhat.com/errata/RHSA-2026:66018nvd
News mentions
1- GNOME GLib & GIMP: Six Vulnerabilities Disclosed, Including Code Execution FlawsVypr Intelligence · Jul 3, 2026