REDHAT-BUG-2492245: Medium severity GLib g_date_time_get_ymd() vulnerability

Published Jun 24, 2026
·
Updated

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.

Affected Software

2 affected components
GLib g_date_time_get_ymd()
GLib g_date_time_add_full()

Event History

Jun 24, 2026
Data Sourced
via Red Hat·04:41 PM
DescriptionSeverityAffected Software
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 REDHAT-BUG-2492245?

The severity of REDHAT-BUG-2492245 is classified as medium (4).

2

How do I fix REDHAT-BUG-2492245?

To fix REDHAT-BUG-2492245, update GLib to the latest version where the buffer overflow vulnerability is patched.

3

What causes REDHAT-BUG-2492245?

REDHAT-BUG-2492245 is caused by a global-buffer-overflow in the g_date_time_get_ymd() function due to the invalid GDateTime object produced by g_date_time_add_full().

4

Is REDHAT-BUG-2492245 exploitable?

Yes, REDHAT-BUG-2492245 is exploitable through an out-of-bounds read when handling invalid date parameters.

5

Which functions are affected by REDHAT-BUG-2492245?

The affected functions in REDHAT-BUG-2492245 are g_date_time_get_ymd() and g_date_time_add_full() in 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