A flaw was found in GLib. A buffer over-read can occur in the gregexreplace 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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58012.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"fixed": "2.86.5"
},
{
"fixed": "2.88.1"
}
],
"source": "AFFECTED_FIELD"
}
],
"cna_assigner": "redhat",
"cwe_ids": [
"CWE-126"
]
}{
"cpe": [
"cpe:2.3:a:gnome:glib:*:*:*:*:*:*:*:*",
"cpe:2.3:a:gnome:glib:2.88.0:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "2.86.5"
},
{
"introduced": "2.88.0"
},
{
"last_affected": "2.88.0"
}
],
"source": [
"CPE_RANGE",
"CPE_STRING"
]
}