Vulnerability in GNOME Glib

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.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L.

EPSS exploit prediction

EPSS: 0.009 (56.6th percentile), scored .

Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 57th percentile — 56.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2026-58012: held from 0.004 to 0.009.

EPSS over last 30 days · oldest: 0.004 · newest: 0.009 · change: +0.005

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-58012?
CVE-2026-58012 is a medium-severity vulnerability in GNOME Glib, classified under Buffer Over-read. CVSS score: 6.5/10. Published 2026-06-30.
How severe is CVE-2026-58012?
Medium severity. CVSS v3 base score is 6.5 out of 10.