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… (CVE-2026-58013)
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.
AI Analysis
Technical Summary
CVE-2026-58013 describes a buffer over-read in GLib's g_io_channel_read_line_backend() function within giochannel.c. When a custom line terminator with length greater than one is set, the memcmp operation reads past the end of the GString buffer, causing an out-of-bounds read. This can result in minor information disclosure (7 bytes) or a denial of service if the read crosses a page boundary. The vulnerability affects GLib versions before 2.70.1. Red Hat has issued a security advisory (RHSA-2026:49512) providing patches for affected products.
Potential Impact
The vulnerability can lead to a minor information disclosure of 7 bytes or cause a denial of service condition if the buffer over-read crosses a memory page boundary. 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
A security update fixing this vulnerability is available and should be applied. Red Hat has released an advisory (RHSA-2026:49512) with patches for affected GLib versions. Users should update to GLib version 2.70.1 or later where this issue is resolved. No additional mitigation actions are indicated by the vendor advisory.
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… (CVE-2026-58013)
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
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-58013 describes a buffer over-read in GLib's g_io_channel_read_line_backend() function within giochannel.c. When a custom line terminator with length greater than one is set, the memcmp operation reads past the end of the GString buffer, causing an out-of-bounds read. This can result in minor information disclosure (7 bytes) or a denial of service if the read crosses a page boundary. The vulnerability affects GLib versions before 2.70.1. Red Hat has issued a security advisory (RHSA-2026:49512) providing patches for affected products.
Potential Impact
The vulnerability can lead to a minor information disclosure of 7 bytes or cause a denial of service condition if the buffer over-read crosses a memory page boundary. 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
A security update fixing this vulnerability is available and should be applied. Red Hat has released an advisory (RHSA-2026:49512) with patches for affected GLib versions. Users should update to GLib version 2.70.1 or later where this issue is resolved. No additional mitigation actions are indicated by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-4x46-h598-64qr
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58013"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
- State
- PUBLISHED
Patch Information
Threat ID: 6a83335dbf8831d5392a656f
Added to database: 08/17/2026, 16:14:21 UTC
Last enriched: 09/29/2026, 05:06:31 UTC
Last updated: 10/02/2026, 02:46:37 UTC
Views: 42
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.
External Links
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.