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.
CVE-2026-58012
Score 6.5 from GitHub Security Advisory published 2026-06-30. NVD baseline CVSS 8.2; sources differ by 1.7.
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 8.2
- EG Score
- 6.5(medium)
- EPSS
- 24.1%
- KEV
- Not listed
Published
June 30, 2026
Last Modified
July 2, 2026
Advisory Details (3)
Auto-updated Jun 30, 2026(#YWH-PGM9867-193) Buffer Over-read on GLib's g_regex_replace() through glib/gregex.c:string_append() via g_utf8_next_char() (#3918) · Issues · GNOME / GLib · GitLab
https://gitlab.gnome.org/GNOME/glib/-/issues/39182492247 – (CVE-2026-58012) CVE-2026-58012 glib: buffer over-read in g_regex_replace() via glib/gregex.c:string_append() and g_utf8_next_char()
https://bugzilla.redhat.com/show_bug.cgi?id=2492247Vendor Advisories for CVE-2026-58012(2)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- CVE-2026-58012Microsoft Security Response Center (MSRC)Medium
Glib: buffer over-read in g_regex_replace() via glib/gregex.c:string_append() and g_utf8_next_char()
- GHSA-vwg8-37h9-g38gGitHub Security AdvisoriesMedium
A flaw was found in GLib. A buffer over-read can occur in the g_regex_replace function when used...
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 24× in last 7d / 24× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-06 18:08 UTCEG score recompute
- 2026-07-06 18:08 UTCGHSA enrichment
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 17:28 UTCEG score recompute
- 2026-07-05 17:28 UTCGHSA enrichment
- 2026-07-05 02:31 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 16:53 UTCEG score recompute
- 2026-07-04 16:53 UTCGHSA enrichment
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-03 16:18 UTCEG score recompute
- 2026-07-03 16:18 UTCGHSA enrichment
- 2026-07-02 20:05 UTCNVD updateCVSS v3 → 8.2 · severity → HIGH
- 2026-07-02 15:44 UTCEG score recompute
- 2026-07-02 15:44 UTCGHSA enrichment
- 2026-07-01 15:09 UTCEG score recompute
- 2026-07-01 15:09 UTCGHSA enrichment
- 2026-07-01 15:07 UTCEPSS rescore
- 2026-06-30 14:34 UTCEG score recompute
- 2026-06-30 14:32 UTCNVD updatefirst tracked
Frequently asked(5)
What is CVE-2026-58012?
When was CVE-2026-58012 disclosed?
Is CVE-2026-58012 actively exploited?
What is the CVSS score of CVE-2026-58012?
How do I remediate CVE-2026-58012?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-58012
Is Your Infrastructure Affected by CVE-2026-58012?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.