| Name | CVE-2026-58012 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| glib2.0 (PTS) | bookworm | 2.74.6-2+deb12u9 | vulnerable |
| bookworm (security) | 2.74.6-2+deb12u2 | vulnerable |
| trixie | 2.84.4-3~deb13u5 | fixed |
| forky, sid | 2.90.0-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| glib2.0 | source | trixie | 2.84.4-3~deb13u4 | | | |
| glib2.0 | source | (unstable) | 2.88.1-2 | | | |
Notes
[bookworm] - glib2.0 <postponed> (Minor issue; g_regex_replace raw-mode over-read, needs G_REGEX_RAW)
[bullseye] - glib2.0 <postponed> (Minor issue; g_regex_replace raw-mode over-read, needs G_REGEX_RAW)
https://gitlab.gnome.org/GNOME/glib/-/work_items/3918
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/5132 (2.89.0)
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/5134 (2.88.1)
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/5135 (2.86.5)