CVE-2026-58012: Glib: buffer over-read in g_regex_replace() via glib/gregex.c:string_append() and g_utf8_next_char()
Vulnerability summary
CVE-2026-58012 is a high (CVSS 8.2) Buffer Over-read vulnerability in gnome glib. EPSS estimates a 0.64% chance of exploitation in the next 30 days, higher than 51.9% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 22 · Related 9Timeline
- 30-06-2026PublishedVulnerability first disclosed.
- 24-11-2026Last modifiedVulnerability information updated.
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 metrics
5 scores · 5 sources · 1 version- CVE.orgCNA6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
- OSV · DebianEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
EPSS trend
Probability
0.64%
Chance of exploitation in the next 30 days
Percentile
52%
Versus all other CVEs
30-day change
Increase +0.15 pp
From 0.49% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (gitlab.gnome.org)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- glib< 2.86.4-r0
Debian1 product
- glib2.0All versions (No fix recorded) | < 2.84.4-3~deb13u4 | < 2.88.1-2
Gnome1 product
- glib< 2.88.1 | < 2.86.5 | 2.88.0
Redhat1 product
- enterprise_linuxEOL6.0 | 7.0 | 8.0 | 9.0 | 10.0
Ubuntu1 product
- glib2.0< 2.40.2-0ubuntu1.1+esm8 | < 2.48.2-0ubuntu4.8+esm6 | < 2.56.4-0ubuntu0.18.04.9+esm6 | < 2.64.6-1~ubuntu20.04.9+esm2 | < 2.72.4-0ubuntu2.10 | < 2.80.0-6ubuntu3.9 | All versions (No fix recorded) | < 2.88.0-1ubuntu0.1
5 vendors · 5 products