CVE-2026-58011: Glib: out-of-bounds read in glib/gdatetime.c:g_date_time_get_ymd via invalid gdatetime

Published Jun 24, 2026
·
Updated

A flaw was found in GLib. An out-of-bounds read of only 2 bytes can occur in the gdatetimegetymd function in the glib/gdatetime.c file when an invalid GDateTime object produced by the gdatetimeaddfull function is processed. This flaw can corrupt the date output and potentially cause logic errors that may lead to a denial of service.

Other sources

A global-buffer-overflow (out-of-bounds read) exists in GLib's gdatetimegetymd() function, triggered when operating on an invalid GDateTime object produced by gdatetimeaddfull(). The gdatetimeaddfull() function does not validate that the resulting date falls within the supported range (years 1–9999), allowing construction of a GDateTime with a negative or zero days field. When any getter function (e.g., gdatetimegetmonth(), gdatetimegetyear()) is subsequently called, the internal gdatetimegetymd() routine computes a negative array index, causing a 2-byte OOB read from adjacent global data.

Red Hat

Glib: out-of-bounds read in glib/gdatetime.c:gdatetimegetymd via invalid gdatetime

Microsoft

Affected Software

9 affected componentsFixes available
GLib glib
Gnome GLib<2.86.5
Gnome GLib=2.88.0
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
redhat Enterprise Linux=10.0
Microsoft azl3 glib 2.78.6-9<2.78.6-10
2.78.6-10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.78.6-10

Event History

Jun 24, 2026
Data Sourced
via Red Hat·04:41 PM
DescriptionSeverityAffected Software
Jun 30, 2026
CVE Published
via MITRE·12:57 PM
Data Sourced
via MITRE·12:57 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:19 PM
DescriptionSeverityWeaknessAffected Software
Jul 1, 2026
Data Sourced
via Microsoft·08:02 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:02 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-58011?

The severity of CVE-2026-58011 is high, rated at 7.5.

2

How do I fix CVE-2026-58011?

To fix CVE-2026-58011, update to the latest version of GLib that addresses this vulnerability.

3

What causes CVE-2026-58011?

CVE-2026-58011 is caused by an out-of-bounds read in the g_date_time_get_ymd function due to an invalid GDateTime object.

4

What are the potential impacts of CVE-2026-58011?

The potential impacts of CVE-2026-58011 include corrupted date output and possible logic errors in applications using affected GLib versions.

5

Which software is affected by CVE-2026-58011?

CVE-2026-58011 affects Red Hat Enterprise Linux and Gnome GLib.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203