# JLSEC-2026-1245: A flaw was found in GLib. A buffer over-read can occur in the g_regex_replace function when used...

- Severity: High 8.2 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-08-11T13:55:26.657Z
- Modified: 2026-08-11T14:13:42.081Z
- Related: CVE-2026-58012, EUVD-2026-40314, GHSA-vwg8-37h9-g38g

## 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.

(As written by Julia Security Advisories.)

## Affected

- Glib_jll (Julia): before 2.88.3+0

## References

- <https://access.redhat.com/errata/RHSA-2026:49512> (web)
- <https://access.redhat.com/security/cve/CVE-2026-58012> (web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2492247> (web)
- <https://github.com/advisories/GHSA-vwg8-37h9-g38g> (web)
- <https://gitlab.gnome.org/GNOME/glib/-/issues/3918> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-58012> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-1245](https://osv.dev/vulnerability/JLSEC-2026-1245), CC-BY-4.0, modified 2026-08-11

---

Page: https://cve.day/JLSEC-2026-1245 · Whole record: https://cve.day/JLSEC-2026-1245.json · Rebuilt by cve.day 2026-11-25T22:56:25.913Z
