Vulnerability · Published Jun 13, 2025 · Assigned by redhat

CVE-2025-6052Glib: integer overflow in g_string_maybe_expand() leading to potential buffer overflow in glib gstring

Low 3.7

In plain English

A low-severity integer overflow in Red Hat Enterprise Linux 10 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.7Low
Exploit odds (30 days)0.5%top 55.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

A flaw was found in how GLib’s GString manages memory when adding data to strings. If a string is already very large, combining it with more input can cause a hidden overflow in the size calculation. This makes the system think it has enough memory when it doesn’t. As a result, data may be written past the end of the allocated memory, leading to crashes or memory corruption.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13glib2.02.84.3-1DEBIAN-CVE-2025-6052
Debian:14glib2.02.84.3-1DEBIAN-CVE-2025-6052
Ubuntu:22.04:LTSglib2.02.72.4-0ubuntu2.7USN-7942-1
Ubuntu:24.04:LTSglib2.02.80.0-6ubuntu3.6USN-7942-1
Ubuntu:24.04:LTSglib2.02.80.0-6ubuntu3.6UBUNTU-CVE-2025-6052
Ubuntu:25.10glib2.02.86.0-2ubuntu0.1USN-7942-1

Affected products (as reported)

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

References