Skip to main content
EPSS 0.9%top 43%

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

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

Description

A flaw was found in GLib. A buffer over-read can occur in g_io_channel_read_line_backend() in the giochannel.c file when a custom line terminator with a length greater than one is set, causing memcmp to read past the GString buffer. This vulnerability can cause a minor information disclosure of 7 bytes or 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.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:23 UTC

Technical Analysis

The vulnerability exists in the g_io_channel_read_line_backend() function within giochannel.c of GLib. When an application sets a custom line terminator string longer than one byte via g_io_channel_set_line_term() and then calls g_io_channel_read_line_backend(), memcmp reads beyond the allocated GString buffer, causing a buffer over-read. This can disclose up to 7 bytes of memory or cause a denial of service through application crash if the over-read crosses an unmapped page boundary. The issue is confirmed by Red Hat and tracked under Bugzilla 2492248. The CVSS v3.1 base score is 6.5 (medium severity) with network attack vector, low complexity, no privileges required, no user interaction, and low confidentiality and availability impacts. Red Hat has issued advisories and updates addressing this vulnerability.

Potential Impact

An attacker can cause a minor information disclosure of up to 7 bytes of memory or trigger a denial of service by crashing the application using GLib's g_io_channel_read_line_backend() function with a multi-byte custom line terminator. The information disclosure could potentially aid in bypassing protection mechanisms like ASLR. The denial of service impact is considered low as crashes are reliably reproducible in ASan builds but not typically in production environments.

Mitigation Recommendations

To mitigate this vulnerability, applications should restrict any custom line terminator string passed to g_io_channel_set_line_term() to a maximum length of one byte before calling g_io_channel_read_line_backend(). Using the default line terminators completely neutralizes the issue. Red Hat has released security updates for affected packages, and applying these official patches is recommended. Check the Red Hat advisory for details on applying updates. No other specific mitigations are required.

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-58013","vendor":"Red Hat"}]

Threat ID: 6a43c34927e9c79719d5bd60

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

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

Last updated: 09/27/2026, 01:47:43 UTC

Views: 167

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