Vulnerability · Published May 6, 2025 · Assigned by redhat

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

Medium 4.8

In plain English

A medium-severity security flaw in glib. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.8Medium
Exploit odds (30 days)0.6%top 48.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8glib22.56.4-166.el8_10ALSA-2025:11327
AlmaLinux:9glib22.68.4-16.el9_6.2ALSA-2025:11140
AlmaLinux:8glib2-devel2.56.4-166.el8_10ALSA-2025:11327
AlmaLinux:9glib2-devel2.68.4-16.el9_6.2ALSA-2025:11140
AlmaLinux:8glib2-doc2.56.4-166.el8_10ALSA-2025:11327
AlmaLinux:9glib2-doc2.68.4-16.el9_6.2ALSA-2025:11140
AlmaLinux:8glib2-fam2.56.4-166.el8_10ALSA-2025:11327
AlmaLinux:8glib2-static2.56.4-166.el8_10ALSA-2025:11327
AlmaLinux:9glib2-static2.68.4-16.el9_6.2ALSA-2025:11140
AlmaLinux:8glib2-tests2.56.4-166.el8_10ALSA-2025:11327
AlmaLinux:9glib2-tests2.68.4-16.el9_6.2ALSA-2025:11140
Debian:12glib2.02.74.6-2+deb12u7DEBIAN-CVE-2025-4373
Debian:13glib2.02.84.1-3DEBIAN-CVE-2025-4373
Debian:14glib2.02.84.1-3DEBIAN-CVE-2025-4373
Rocky Linux:10glib20:2.80.4-4.el10_0.6RLSA-2025:10855
Rocky Linux:8glib20:2.56.4-166.el8_10RLSA-2025:11327
Rocky Linux:9glib20:2.68.4-16.el9_6.2RLSA-2025:11140
Ubuntu:22.04:LTSglib2.02.72.4-0ubuntu2.5USN-7532-1
Ubuntu:22.04:LTSglib2.02.72.4-0ubuntu2.5UBUNTU-CVE-2025-4373
Ubuntu:24.04:LTSglib2.02.80.0-6ubuntu3.4UBUNTU-CVE-2025-4373
Ubuntu:24.04:LTSglib2.02.80.0-6ubuntu3.4USN-7532-1

Affected products (as reported)

VendorProductVersions
glib 0 – before 2.84.2
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support see references
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On see references
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support see references
Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service see references
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support see references
Red Hat Red Hat Insights proxy 1.5 see references
Red Hat Red Hat OpenShift distributed tracing 3.6.0 see references
Red Hat Red Hat OpenShift distributed tracing 3.6.0 see references
Red Hat Red Hat OpenShift distributed tracing 3.6.0 see references
Red Hat Red Hat OpenShift distributed tracing 3.6.0 see references
Red Hat Red Hat OpenShift distributed tracing 3.6.0 see references
Red Hat Red Hat OpenShift distributed tracing 3.6.0 see references
Red Hat Red Hat OpenShift distributed tracing 3.6.0 see references
Red Hat Red Hat OpenShift distributed tracing 3.6.0 see references
Red Hat Red Hat OpenShift distributed tracing 3.6.0 see references
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 10 see references

Weakness: CWE-124 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L

References