CVE-2025-14512: Glib: integer overflow in glib gio attribute escaping causes heap buffer overflow

Published Dec 11, 2025
·
Updated

A flaw was found in glib. This vulnerability allows a heap buffer overflow and denial-of-service (DoS) via an integer overflow in GLib's GIO (GLib Input/Output) escapebytestring() function when processing malicious file or remote filesystem attribute values.

Other sources

Glib: integer overflow in glib gio attribute escaping causes heap buffer overflow

Microsoft

This vulnerability stems from an integer overflow in GLib’s GIO escapebytestring() function, where the count of invalid characters is multiplied using a signed integer, resulting in a too-small memory allocation for escaped output. When a malicious file or remote filesystem supplies attribute values with a large number of invalid bytes, the subsequent escaping loop writes beyond the allocated buffer, triggering a heap buffer overflow and crashing the process.

Red Hat

Affected Software

13 affected componentsFixes available
Microsoft azl3 glib 2.78.6-5
Microsoft cbl2 glib 2.71.0-8
Microsoft cbl2 glib 2.71.0-9
Gnome GLib<2.86.3
redhat Openshift=4.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
redhat Enterprise Linux=10.0
IBM CICS Transaction Gateway for Multiplatforms<=9.1
IBM CICS Transaction Gateway for Multiplatforms<=9.2
IBM CICS Transaction Gateway for Multiplatforms<=9.3
IBM CICS Transaction Gateway for Multiplatforms<=10.1

Event History

Dec 11, 2025
Data Sourced
via Red Hat·06:30 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·07:11 AM
Data Sourced
via MITRE·07:11 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 AM
DescriptionSeverityWeaknessAffected Software
Dec 13, 2025
Data Sourced
via Microsoft·01:02 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:02 AM
Affected Software
Updated
via Microsoft·01:02 AM
DescriptionSeverity
Jul 29, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

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-2025-14512?

CVE-2025-14512 has been classified as a high severity vulnerability due to the potential for heap buffer overflow and denial-of-service.

2

How do I fix CVE-2025-14512?

To mitigate CVE-2025-14512, update GLib to the latest version that addresses this vulnerability.

3

What systems are affected by CVE-2025-14512?

CVE-2025-14512 affects systems that utilize GLib's GIO module, particularly those dealing with file or remote filesystem attributes.

4

What happens if CVE-2025-14512 is exploited?

Exploiting CVE-2025-14512 can lead to a denial-of-service condition, causing affected applications to crash or become unresponsive.

5

How can I determine if my system is vulnerable to CVE-2025-14512?

You can determine vulnerability to CVE-2025-14512 by checking the version of GLib installed on your system and comparing it with the fixed versions.

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