CVE-2026-58012
MEDIUMGlib: buffer over-read in g_regex_replace() via glib/gregex.c:string_append() and g_utf8_next_char()
Title source: cnaExploitation Summary
EIP tracks 1 public exploit for CVE-2026-58012. PoCs published by HermesNA-1.
AI-analyzed exploit summary This repository contains an auto-generated stub module for CVE-2026-58012, a buffer over-read vulnerability in GLib's `g_regex_replace` function when used with `G_REGEX_RAW` and case-change replacement escapes. The code includes placeholder logic for target probing but lacks actual exploit implementation.
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.
Exploits (1)
This repository contains an auto-generated stub module for CVE-2026-58012, a buffer over-read vulnerability in GLib's `g_regex_replace` function when used with `G_REGEX_RAW` and case-change replacement escapes. The code includes placeholder logic for target probing but lacks actual exploit implementation.
References (3)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L