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… (CVE-2026-58012)
A buffer over-read vulnerability exists in the GLib library's g_regex_replace function when used with the G_REGEX_RAW compile flag and case-change replacement escapes. This occurs 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. The vulnerability can lead to minor information disclosure of 1-5 bytes and denial of service if the buffer over-read crosses a page boundary. Red Hat has issued security advisories providing patches for affected versions in Red Hat Enterprise Linux 8 and 9.
AI Analysis
Technical Summary
CVE-2026-58012 is a buffer over-read vulnerability in GLib's g_regex_replace function triggered when the G_REGEX_RAW compile flag is used alongside case-change replacement escapes. The root cause is that string_append uses UTF-8 processing functions that expect valid UTF-8 input, but the input is treated as raw bytes, leading to out-of-bounds reads. This flaw can cause minor information disclosure and denial of service conditions. Red Hat advisories RHSA-2026:49512 and RHSA-2026:55440 confirm the issue and provide patches for affected Red Hat Enterprise Linux 8 and 9 packages.
Potential Impact
The vulnerability allows an attacker to cause a minor information disclosure of 1-5 bytes and potentially trigger a denial of service if the buffer over-read crosses a memory page boundary. There is no indication of privilege escalation or remote code execution. No known exploits in the wild have been reported. The CVSS v3.1 base score is 6.5 (medium severity), reflecting network attack vector, low complexity, no privileges required, no user interaction, limited confidentiality impact, no integrity impact, and low availability impact.
Mitigation Recommendations
Official patches are available from Red Hat for affected packages in Red Hat Enterprise Linux 8 and 9. Users should apply the updates referenced in Red Hat advisories RHSA-2026:49512 and RHSA-2026:55440. The advisories provide detailed instructions and updated package versions. No additional mitigations are required beyond applying these official fixes.
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… (CVE-2026-58012)
Description
A buffer over-read vulnerability exists in the GLib library's g_regex_replace function when used with the G_REGEX_RAW compile flag and case-change replacement escapes. This occurs 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. The vulnerability can lead to minor information disclosure of 1-5 bytes and denial of service if the buffer over-read crosses a page boundary. Red Hat has issued security advisories providing patches for affected versions in Red Hat Enterprise Linux 8 and 9.
CVSS v3.1
Score 6.5medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-58012 is a buffer over-read vulnerability in GLib's g_regex_replace function triggered when the G_REGEX_RAW compile flag is used alongside case-change replacement escapes. The root cause is that string_append uses UTF-8 processing functions that expect valid UTF-8 input, but the input is treated as raw bytes, leading to out-of-bounds reads. This flaw can cause minor information disclosure and denial of service conditions. Red Hat advisories RHSA-2026:49512 and RHSA-2026:55440 confirm the issue and provide patches for affected Red Hat Enterprise Linux 8 and 9 packages.
Potential Impact
The vulnerability allows an attacker to cause a minor information disclosure of 1-5 bytes and potentially trigger a denial of service if the buffer over-read crosses a memory page boundary. There is no indication of privilege escalation or remote code execution. No known exploits in the wild have been reported. The CVSS v3.1 base score is 6.5 (medium severity), reflecting network attack vector, low complexity, no privileges required, no user interaction, limited confidentiality impact, no integrity impact, and low availability impact.
Mitigation Recommendations
Official patches are available from Red Hat for affected packages in Red Hat Enterprise Linux 8 and 9. Users should apply the updates referenced in Red Hat advisories RHSA-2026:49512 and RHSA-2026:55440. The advisories provide detailed instructions and updated package versions. No additional mitigations are required beyond applying these official fixes.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-vwg8-37h9-g38g
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58012"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Patch Information
Threat ID: 6a83335dbf8831d5392a655d
Added to database: 08/17/2026, 16:14:21 UTC
Last enriched: 08/17/2026, 16:30:16 UTC
Last updated: 08/18/2026, 00:41:14 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.