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

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, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9. Vendors: Gnome, 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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.