# CVE-2026-58011: GNOME GLib out-of-bounds read in g_date_time_get_ymd

Source: https://junglewise.ai/threats/cve-2026-58011-gnome-glib-out-of-bounds-read-in-g-date-time-get-ymd  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-30. Updated: 2026-06-30  
License: CC BY 4.0 with a link back

CVE-2026-58011 · Severity: medium · CVSS 6.5 · Published 2026-06-30

A vulnerability was found in GLib, a core utility library used by many Linux applications and desktop environments. The flaw occurs when an application performs date calculations that result in an invalid date (such as a year before 0001), which can cause the program to crash or produce incorrect data. This could lead to a denial of service for affected software, such as calendar applications or date pickers, when processing user-supplied input.

Technologies: [Gnome Glib](https://junglewise.ai/threats/technologies/glib), [Red Hat Enterprise Linux 10](https://junglewise.ai/threats/technologies/enterprise-linux-10), [Red Hat Enterprise Linux 6](https://junglewise.ai/threats/technologies/enterprise-linux-6), [Red Hat Enterprise Linux 7](https://junglewise.ai/threats/technologies/enterprise-linux-7), [Red Hat Enterprise Linux 8](https://junglewise.ai/threats/technologies/enterprise-linux-8), [Red Hat Enterprise Linux 9](https://junglewise.ai/threats/technologies/enterprise-linux-9). Vendors: [Gnome](https://junglewise.ai/threats/vendors/gnome), [Red Hat](https://junglewise.ai/threats/vendors/red-hat).

## Quick answers

**Is CVE-2026-58011 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-58011 being exploited in the wild.

**How severe is CVE-2026-58011?** Medium severity, with a CVSS score of 6.5, published 30 June 2026.

**Which products and versions are affected?** Gnome Glib Since 2.26.

**Is there a fix for CVE-2026-58011?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-58011 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-58011?** Check whether you run Gnome Glib, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6 or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

An out-of-bounds (OOB) read exists in GLib's g_date_time_get_ymd() function within glib/gdatetime.c. The root cause is that g_date_time_add_full() fails to validate if a resulting date falls within the supported range (years 1–9999), allowing the creation of a GDateTime object with a negative or zero 'days' field. When subsequent getter functions like g_date_time_get_month() are called, the internal routine computes a negative array index, resulting in a 2-byte OOB read from the global 'days_in_year' array. This can be triggered by any application using g_date_time_add_full() with user-influenced offsets. The vulnerability has existed since GLib 2.26.

## Affected products

- GNOME GLib Since 2.26
- Red Hat Red Hat Enterprise Linux 6
- Red Hat Red Hat Enterprise Linux 7
- Red Hat Red Hat Enterprise Linux 8
- Red Hat Red Hat Enterprise Linux 9
- Red Hat Red Hat Enterprise Linux 10

## Timeline

- 2026-01-30: disclosed: Reported via YesWeHack
- 2026-06-24: other: Reported to Red Hat Bugzilla
- 2026-06-30: advisory: CVE published and NVD entry created

## References

- [https://access.redhat.com/downloads/content/package-browser/](https://access.redhat.com/downloads/content/package-browser/)
- [https://access.redhat.com/security/cve/CVE-2026-58011](https://access.redhat.com/security/cve/CVE-2026-58011)
- [https://bugzilla.redhat.com/show_bug.cgi?id=2492245](https://bugzilla.redhat.com/show_bug.cgi?id=2492245)
- [https://gitlab.gnome.org/GNOME/glib/-/issues/3917](https://gitlab.gnome.org/GNOME/glib/-/issues/3917)

## Related threats

- [FreeIPA TGS impersonation authentication bypass in trust relationships](https://junglewise.ai/threats/cve-2026-11861-freeipa-tgs-impersonation-authentication-bypass-in-trust)
- [GNOME GLib denial of service in GDBus authentication](https://junglewise.ai/threats/cve-2026-15588-gnome-glib-denial-of-service-in-gdbus-authentication)
- [GNOME GLib out-of-bounds read in D-Bus introspection XML parsing](https://junglewise.ai/threats/cve-2026-58016-gnome-glib-out-of-bounds-read-in-d-bus-introspection-xml-parsing)
- [GLib path traversal in GDBus DBUS_COOKIE_SHA1 authentication](https://junglewise.ai/threats/cve-2026-58015-glib-path-traversal-in-gdbus-dbus-cookie-sha1-authentication)
- [GNOME GLib off-by-one error in g_key_file_get_locale_string_list](https://junglewise.ai/threats/cve-2026-58014-gnome-glib-off-by-one-error-in-g-key-file-get-locale-string-list)
