CVE-2026-58012

medium

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.

References

https://gitlab.gnome.org/GNOME/glib/-/issues/3918

https://bugzilla.redhat.com/show_bug.cgi?id=2492247

https://access.redhat.com/security/cve/CVE-2026-58012

Details

Source: Mitre, NVD

Published: 2026-06-30

Updated: 2026-06-30

Risk Information

CVSS v2

Base Score: 6.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:P

Severity: Medium

CVSS v3

Base Score: 6.5

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Severity: Medium

EPSS

EPSS: 0.00264