CVE-2025-4373: Glib: buffer underflow on glib through glib/gstring.c via function g_string_insert_unichar

Published May 6, 2025
·
Updated

A flaw was found in GLib, which is vulnerable to an integer overflow in the gstringinsertunichar() function. When the position at which to insert the character is large, the position will overflow, leading to a buffer underwrite.

Other sources

GLib prior to 2.84.2 is vulnerable to an integer overflow in the gstringinsertunichar() function. When the position at which to insert the character is large, the position will overflow, leading to buffer under-write.

— Red Hat

Glib: buffer underflow on glib through glib/gstring.c via function gstringinsertunichar

— Microsoft

Affected Software

17 affected componentsFixes available
Gnome GLib<2.84.2
Microsoft cbl2 glib 2.71.0-6<2.71.0-7
2.71.0-7
Microsoft cbl2 glib 2.71.0-5<2.71.0-6
2.71.0-6
Microsoft cbl2 glib 2.71.0-7<2.71.0-7
2.71.0-7
Microsoft azl3 glib 2.78.6-3<2.78.6-3
2.78.6-3
IBM DS8A00( R10.0 - R10.1 )<=10.1.3.0 - 10.10.106.1
IBM DS8900F ( R9.4)<=89.40.83.0-89.44.5.0
ubuntu/glib2.0*
ubuntu/glib2.0*
ubuntu/glib2.0*
ubuntu/glib2.0<2.64.6-1~ubuntu20.04.9
2.64.6-1~ubuntu20.04.9
ubuntu/glib2.0<2.72.4-0ubuntu2.5
2.72.4-0ubuntu2.5
ubuntu/glib2.0<2.80.0-6ubuntu3.4
2.80.0-6ubuntu3.4
debian/glib2.0<2.74.6-2+deb12u7
2.74.6-2+deb12u7
debian/glib2.0<2.84.1-3
2.84.1-3
debian/glib2.0<2.84.1-3
2.84.1-3
debian/glib2.0<=2.74.6-2+deb12u2
2.66.8-1+deb11u72.74.6-2+deb12u72.84.1-3

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.71.0-7
  2. Upgrade

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

    Fixed in 2.78.6-3
  3. Upgrade

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

    Fixed in 2.71.0-6
  4. Upgrade

    Upgrade ubuntu/glib2.0 to a version that resolves this vulnerability.

    Fixed in 2.64.6-1~ubuntu20.04.9
  5. Upgrade

    Upgrade ubuntu/glib2.0 to a version that resolves this vulnerability.

    Fixed in 2.72.4-0ubuntu2.5
  6. Upgrade

    Upgrade ubuntu/glib2.0 to a version that resolves this vulnerability.

    Fixed in 2.80.0-6ubuntu3.4
  7. Upgrade

    Upgrade debian/glib2.0 to a version that resolves this vulnerability.

    Fixed in 2.74.6-2+deb12u7
  8. Upgrade

    Upgrade debian/glib2.0 to a version that resolves this vulnerability.

    Fixed in 2.84.1-3
  9. Upgrade

    Upgrade debian/glib2.0 to a version that resolves this vulnerability.

    Fixed in 2.66.8-1+deb11u7Fixed in 2.74.6-2+deb12u7Fixed in 2.84.1-3

Event History

May 6, 2025
Data Sourced
via Red Hat·12:36 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·02:48 PM
Data Sourced
via MITRE·02:48 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:16 PM
DescriptionSeverityWeakness
May 12, 2025
Event
via FIRST·12:00 AM
Sep 4, 2025
Data Sourced
via Microsoft·09:58 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·09:58 AM
Affected Software
Event
via Microsoft·09:58 AM
Dec 18, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Jan 15, 2026
Updated
via IBM·12:00 AM
Affected Software
Mar 2, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 24, 2026
Data Sourced
via OSV·02:55 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-4373?

CVE-2025-4373 has been classified as a moderate severity vulnerability due to the potential for buffer underwrites.

2

How do I fix CVE-2025-4373?

To fix CVE-2025-4373, update GLib to version 2.84.2 or later.

3

Which versions of GLib are affected by CVE-2025-4373?

GLib versions prior to 2.84.2 are affected by CVE-2025-4373.

4

What type of vulnerability is CVE-2025-4373?

CVE-2025-4373 is an integer overflow vulnerability that can lead to a buffer underwrite.

5

What function in GLib is associated with CVE-2025-4373?

CVE-2025-4373 is associated with the g_string_insert_unichar() function 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