CVE-2025-6052
glib: Integer overflow in g_string_maybe_expand() leading to potential buffer overflow in GLib GString
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-190
Affected packages · 4
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | java | <1.8.0>=1.9.0, <8.0.481 | 1.8.08.0.481 |
| Bitnami | java-min | <1.8.0>=1.9.0, <8.0.481 | 1.8.08.0.481 |
| Bitnami | jre | <1.8.0>=1.9.0, <8.0.481 | 1.8.08.0.481 |
| Julia | Glib_jll | >=2.76.5+0, <2.86.0+0 | 2.86.0+0 |
Open a package to see all its vulnerabilities.
Operating systems · 17 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | glib | 0:2.78.6-3.azl3 |
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | mingw-glib2 +4 | affected |
SUSE Linux Enterprise 2 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.6 | glib2-devel +11 | 2.78.6-150600.4.16.1 | SUSE-SU-2025:02167-1 |
| 15.7 | glib2-devel +11 | 2.78.6-150600.4.16.1 | SUSE-SU-2025:02167-1 |
SUSE Linux Enterprise Micro 2 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 6.0 | glib2-tools +4 | 2.76.2-9.1 | SUSE-SU-2025:20508-1 |
| 6.1 | glib2-tools +4 | 2.78.6-slfo.1.1_4.1 | SUSE-SU-2025:20673-1 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | glib2 +8 | 2.82.2-766.amzn2023 |
chainguard 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| openjdk-17-openj9 +4 | 0.59.0-r1 | |
| openjdk-11-openj9 | 0.59.0-r2 |
debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 13 | glib2-0 | 2.84.3-1 |
| 14 | glib2-0 | 2.84.3-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| glib2-0 | 2.84.3-1 |
minimos 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| glib | 2.84.4-r0 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | gio-branding-upstream +24 | 2.84.3-1.1 | openSUSE-SU-2025:15221-1 |
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 13 | rootio-glib2-0 | 2.84.3-1 |
seal debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| glib2-0 +1 | 2.74.6-2+deb12u7+sp999 |
ubuntu 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 24.04 | glib2-0 | 2.80.0-6ubuntu3.6 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2025-6052
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2372666
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-032379.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-253495.html
- gitlab.gnome.org https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4655
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-6052
- openjdk.org https://openjdk.org/groups/vulnerability/advisories/2026-01-20
- ubuntu.com https://ubuntu.com/security/notices/USN-7942-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2025-6052
- www.oracle.com https://www.oracle.com/security-alerts/cpuapr2026.html
Show all 11 references
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.