CVE-2025-6052
Glib: integer overflow in g_string_maybe_expand() leading to potential buffer overflow in glib gstring
7.5
HIGH
CVSS 3.1
EPSS 0.42%
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.
How to fix CVE-2025-6052
To remediate CVE-2025-6052, upgrade the affected package to a fixed version below.
- —upgrade to 1.8.0 or later
- —upgrade to 1.8.0 or later
- —upgrade to 1.8.0 or later
- —upgrade to 2.84.3-1 or later
Is CVE-2025-6052 being exploited?
Low — EPSS is 0.4%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- from 0, < 1.8.0, >= 1.9.0, < 8.0.481
- from 0, < 1.8.0, >= 1.9.0, < 8.0.481
- from 0, < 1.8.0, >= 1.9.0, < 8.0.481
- from 0, < 2.84.3-1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |