CVE-2025-6052
HIGH7.5EPSS 0.28%Glib: integer overflow in g_string_maybe_expand() leading to potential buffer overflow in glib gstring
Published: 6/13/2025Modified: 5/13/2026
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 (4)
- Bitnami/javafrom 0, < 1.8.0, >= 1.9.0, < 8.0.481
- Bitnami/java-minfrom 0, < 1.8.0, >= 1.9.0, < 8.0.481
- Bitnami/jrefrom 0, < 1.8.0, >= 1.9.0, < 8.0.481
- Debian/glib2.0from 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 |