Buffer Over-Read Vulnerability in GLib Affecting GNOME Software
CVE-2026-58012

6.5MEDIUM

What is CVE-2026-58012?

A vulnerability exists in GLib that can lead to a buffer over-read in the g_regex_replace function when the G_REGEX_RAW compile flag is used along with case-change replacement escapes. This issue arises because the string_append function handles matched substrings with UTF-8 functions that erroneously rely on valid UTF-8 input, even when dealing with raw byte strings. As a result, this flaw may allow for a minor information disclosure of 1-5 bytes and could also lead to a potential denial of service if the buffer over-read impacts a page boundary.

Affected Version(s)

GLib 0 < 2.86.5

GLib 0 < 2.88.1

References

CVSS V3.1

Score:
6.5
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Red Hat would like to thank linhlhq for reporting this issue.
.