Skip to main content
EPSS 0.9%top 44%

CVE-2026-58012: Buffer Over-read in GNOME GLib

0
Medium
VulnerabilityCVE-2026-58012cvecve-2026-58012gcvecwe-126
Published: 06/30/2026 (06/30/2026, 12:57:21 UTC)
Source: CVE Database V5
Vendor/Project: GNOME
Product: GLib

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.

CVSS v3.1

Score 6.5medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Affected software

GNOME

GLib

Affected versions
>=0 <2.86.5>=0 <2.88.1

Red Hat

Red Hat Enterprise Linux 10

Red Hat

Red Hat Enterprise Linux 10.0 Extended Update Support

Red Hat

Red Hat Enterprise Linux 7 Extended Lifecycle Support

Red Hat

Red Hat Enterprise Linux 8

Red Hat

Red Hat Enterprise Linux 8

Red Hat

Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support

Red Hat

Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

Red Hat

Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support

Red Hat

Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On

Red Hat

Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Red Hat

Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions

Red Hat

Red Hat Enterprise Linux 9

Red Hat

Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Red Hat

Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions

Red Hat

Red Hat Enterprise Linux 9.6 Extended Update Support

Red Hat

Cert Manager support for Red Hat OpenShift release 1.19

Red Hat

Cert Manager support for Red Hat OpenShift release 1.19

Red Hat

Cert Manager support for Red Hat OpenShift release 1.19

Red Hat

Red Hat Discovery 2

Red Hat

Red Hat Discovery 2

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Enterprise Linux 10

Red Hat

Red Hat Enterprise Linux 6

Red Hat

Red Hat Enterprise Linux 9

Red Hat

Red Hat Hardened Images

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/17/2026, 13:25:12 UTC

Technical Analysis

The vulnerability in GLib's g_regex_replace function occurs when the G_REGEX_RAW compile flag is used alongside case-change replacement escapes (\u, \l, \U, \L). The string_append function processes matched substrings with UTF-8 functions that expect valid UTF-8 input, but when the string is treated as raw bytes, this assumption leads to a buffer over-read of 1-5 bytes. This can cause minor information disclosure and denial of service due to application crashes when the over-read crosses a page boundary. The issue specifically affects applications that allow user-controlled replacement strings containing these case-change escapes. Mitigation involves sanitizing or rejecting such inputs or removing the G_REGEX_RAW flag.

Potential Impact

An attacker can cause a minor information disclosure of 1-5 bytes by triggering a buffer over-read in GLib's g_regex_replace function. Additionally, a denial of service can occur if the buffer over-read crosses an unmapped page boundary, leading to application crashes. The confidentiality impact is low, integrity impact is none, and availability impact is low. The vulnerability does not require privileges or user interaction and can be exploited remotely over the network.

Mitigation Recommendations

To mitigate this vulnerability, implement strict input validation to sanitize or reject user-supplied replacement strings containing case-change modifiers (\u, \l, \U, \L) before calling g_regex_replace() or g_regex_replace_eval() with the G_REGEX_RAW compile flag. Alternatively, removing the G_REGEX_RAW flag or hardcoding replacement strings will fully neutralize the issue. A security update fixing this vulnerability is available from Red Hat for affected products; applying this update is recommended.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
redhat
Date Reserved
2026-06-26T20:59:47.855Z
Cvss Version
3.1
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-58012","vendor":"Red Hat"}]

Threat ID: 6a43c34927e9c79719d5bd5b

Added to database: 06/30/2026, 13:23:21 UTC

Last enriched: 08/17/2026, 13:25:12 UTC

Last updated: 09/25/2026, 13:47:46 UTC

Views: 140

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses