CVE-2026-58014: GLib Off-by-One Error in Key File Parsing (CVSS 7.3)
A bug in GLib's key file parsing function can cause the application to read one byte beyond allocated memory when processing key files with empty values. This memory access violation may leak sensitive information, corrupt data, or crash the application. The vulnerability requires no user interaction and can be exploited over the network against systems that use the affected GLib versions to parse untrusted configuration or data files.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.3 HIGH · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- Weaknesses (CWE)
- CWE-193
- Affected products
- 6 configuration(s)
- Published / Modified
- 2026-06-30 / 2026-08-03
NVD description (verbatim)
A flaw was found in GLib. An off-by-one error can occur in the g_key_file_get_locale_string_list function in the gkeyfile.c file when loading a key file with an empty value. This flaw can cause an out-of-bounds access of 1 byte or a denial of service when the out-of-bounds access crosses a page boundary.
5 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-58014 is an off-by-one error in the g_key_file_get_locale_string_list function within gkeyfile.c (GLib). When parsing a key file containing an empty value, the function miscalculates buffer boundaries, allowing a single-byte out-of-bounds read. If this access crosses a memory page boundary, the kernel may terminate the process, resulting in denial of service. In other cases, the read may expose adjacent heap memory. The vulnerability is classified as CWE-193 (Off-by-one Error) and carries a CVSS 3.1 score of 7.3 (HIGH) with network accessibility, no authentication required, and potential impact to confidentiality, integrity, and availability.
Business impact
GLib is a foundational library used across Linux distributions, GNOME desktop environments, and numerous applications for data structure manipulation and system utilities. Exploitation could disrupt services that rely on GLib for configuration parsing or cause information leakage from memory. While denial of service is the primary risk when page boundaries are crossed, the confidentiality impact means sensitive data in adjacent memory regions could be exposed. Organizations dependent on GNOME/Red Hat ecosystems should prioritize assessment to understand if their deployed services parse untrusted key files.
Affected systems
The vulnerability affects GLib across multiple Red Hat Enterprise Linux versions. Any application statically or dynamically linked against vulnerable GLib versions that calls g_key_file_get_locale_string_list or uses key file parsing on untrusted input is exposed. This includes configuration management tools, system services, and desktop applications. Organizations should inventory GLib versions in their environment and identify which processes parse external or user-supplied key files.
Exploitability
Exploitation requires delivery of a malformed key file with an empty value to an application that uses the vulnerable GLib function. No user interaction, authentication, or special privileges are needed. The attack surface depends on whether the target application accepts key files from network sources, user uploads, or other untrusted channels. Automated tooling could craft such files, but practical exploitation scenarios depend on the specific application's parsing behavior and memory layout.
Remediation
Apply GLib security updates provided by your distribution vendor as soon as they are available. For Red Hat Enterprise Linux users, check your RHEL version and install the patched GLib package from official repositories. Systems that do not parse key files from untrusted sources face reduced risk. Temporarily, restrict access to applications that process key files if update timelines are extended. Verify patches against the official vendor advisory before deployment.
Patch guidance
Contact your Linux distribution vendor or check official security advisories for GLib updates addressing CVE-2026-58014. Red Hat Enterprise Linux users should use their respective package management tools (yum, dnf) to update the glib2 package once patches are released. For GNOME and other downstream projects, follow their security update channels. Test patches in non-production environments to confirm compatibility with your applications before production rollout.
Detection guidance
Monitor for segmentation faults, out-of-memory conditions, or unexpected process terminations in applications that use GLib's key file parsing functionality. Review application logs for errors related to gkeyfile operations. Network-based detection is difficult; focus on endpoint monitoring for crashes in known-vulnerable GLib processes. Vulnerability scanners that identify GLib versions can help inventory affected systems. Log analysis for repeated key file parsing failures may indicate exploitation attempts.
Why prioritize this
GLib is ubiquitous in Linux environments and the CVSS score of 7.3 reflects meaningful risk across confidentiality, integrity, and availability. The network-accessible attack vector and lack of authentication requirements elevate concern. While the vulnerability does not appear on the CISA KEV list, the broad distribution of GLib and potential for denial of service make timely patching important for operational stability. Prioritize based on whether your organization's services accept key files from untrusted sources.
Risk score, explained
The CVSS 3.1 score of 7.3 reflects network accessibility (AV:N), low attack complexity (AC:L), no authentication (PR:N), scope unchanged (S:U), and low impact to all three security properties (C:L, I:L, A:L). While individual impact metrics are rated low, the combination of easy exploitability and the potential for information disclosure or service disruption across multiple organizations using GLib justifies the HIGH severity classification. The score appropriately emphasizes the ease of triggering the vulnerability rather than maximum possible harm.
Frequently asked questions
Does this vulnerability require internet access to exploit?
No explicit internet access is required if an attacker can place a malformed key file on the system or if an application fetches and parses key files from a remote source. The vulnerability can be triggered by any untrusted key file delivered to a vulnerable application.
Will all GLib installations be vulnerable?
Not necessarily. Only applications that call the g_key_file_get_locale_string_list function or parse key files with empty values are at risk. Applications that do not use key file parsing or that validate input are unaffected. Check your application documentation and source code to confirm exposure.
Is there a public exploit for CVE-2026-58014?
No public exploit code has been reported. The vulnerability requires crafting a specific malformed key file, which any researcher could do once details are understood. Exploitation in the wild is unlikely until after patches are widely available and adoption lags.
Can I mitigate this without patching?
Partial mitigation is possible by restricting which sources your applications accept key files from, disabling key file parsing if not needed, or isolating vulnerable services in containers or sandboxes. However, official patches are the reliable long-term solution.
This analysis is provided for informational purposes to support vulnerability management decisions. The technical details, affected versions, and remediation guidance are based on publicly available CVE data and vendor advisories. Organizations must verify patch availability and compatibility with their specific environments before deployment. SEC.co makes no warranty regarding the completeness or accuracy of this intelligence. Always consult official vendor security advisories for definitive guidance on patches and affected product versions. Source: NVD (public-domain), retrieved 2026-08-09. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-58380HIGHGIMP PNM Parser Stack Buffer Overflow – Off-by-One Memory Corruption
- CVE-2026-13601HIGHGNOME Yelp CSP Bypass & Sandbox Escape – File Disclosure Risk
- CVE-2026-58016HIGHGLib D-Bus XML Parsing Denial of Service Vulnerability
- CVE-2026-12549MEDIUMGNOME libsoup Range Request Regression Leading to DoS and Log Flooding
- CVE-2026-1764MEDIUMGNOME localsearch MP3 Parser Heap Buffer Over-Read Vulnerability
- CVE-2026-1766MEDIUMGNOME Localsearch MP3 Heap Buffer Overflow & Memory Leak
- CVE-2026-1767MEDIUMGNOME Localsearch MP3 Parser Heap Overflow – Patching Guide
- CVE-2026-58010MEDIUMGLib Off-by-One Bounds Check Vulnerability – Information Disclosure and DoS