CVE-2025-6052 json
Glib: integer overflow in g_string_maybe_expand() leading to potential buffer overflow in glib gstring
published last yr. modified 24d ago also BIT-java-2025-6052 , BIT-java-min-2025-6052 , BIT-jre-2025-6052 , EUVD-2025-18285 , JLSEC-2025-167
- cvss
- 3.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 45%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami java 1.8.0, 8.0.481
- bitnami java-min 1.8.0, 8.0.481
- bitnami jre 1.8.0, 8.0.481
- julia Glib_jll 2.86.0+0
- Siemens RUGGEDCOM RST2428P V4.0
- Siemens SIMATIC CN 4100 V5.0
- glib2.0 Debian 14, Debian 13 2.84.3-1
debian advisories DEBIAN-CVE-2025-6052
- glib2.0 Ubuntu 24.04 LTS 2.80.0-6ubuntu3.6
ubuntu advisories UBUNTU-CVE-2025-6052
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- glib2 Linux Micro 6.1 2.78.6-slfo.1.1_4.1
- glib2 Linux Micro 6.0 2.76.2-9.1
- glib2 SLE Module for Basesystem 15 SP7, SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 2.78.6-150600.4.16.1
suse advisories SUSE-SU-2025:20673-1SUSE-SU-2025:20508-1SUSE-SU-2025:02167-1
- glib2 openSUSE Tumbleweed 2.84.3-1.1
opensuse advisories openSUSE-SU-2025:15221-1
Is CVE-2025-6052 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-6052 updated cvss 3.7
glib: Integer overflow in g_string_maybe_expand() leading to potential buffer overflow in GLib GString
-
Red Hat Enterprise Linux 9 mingw-glib2, mingw32-glib2, mingw64-glib2 Red Hat Enterprise Linux 10 glib2, mingw-glib2, mingw32-glib2, mingw64-glib2affected: workaround, no fix available “Currently, no mitigation is available for this vulnerability.”
-
Red Hat Enterprise Linux 6 glib2 Red Hat Enterprise Linux 7 glib2, glib2-fam, glib2-tests Red Hat Enterprise Linux 8 glib2, librsvg2, glib2-fam, glib2-tests, mingw-glib2, mingw32-glib2, +2 more Red Hat Enterprise Linux 9 bootc, glib2, librsvg2, glib2-tests, librsvg2-tools, system-reinstall-bootc Red Hat Enterprise Linux 10 bootc, loupe, rpm-ostree, glycin-loadersnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-26-188-05 updated cvss 3.7
Siemens SINEC OS
-
Siemens RUGGEDCOM RST2428P (6GK6242-6PA00) < 4.0affected: fixed in V4.0 support.industry.siemens.com
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
cisa ICSA-26-134-10 updated cvss 3.7
Siemens SIMATIC
-
Siemens SIMATIC CN 4100 < 5.0affected: fixed in V5.0 support.industry.siemens.com
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.54% chance of exploitation in the next 30 days, higher than 45% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | java | <1.8.0 >=1.9.0, <8.0.481 |
1.8.0 8.0.481 |
| bitnami | java-min | <1.8.0 >=1.9.0, <8.0.481 |
1.8.0 8.0.481 |
| bitnami | jre | <1.8.0 >=1.9.0, <8.0.481 |
1.8.0 8.0.481 |
| julia | Glib_jll | >=2.76.5+0, <2.86.0+0 |
2.86.0+0 |
Affected products
- Red Hat Red Hat Enterprise Linux 10
- Red Hat Red Hat Enterprise Linux 6
- Red Hat Red Hat Enterprise Linux 7
- Red Hat Red Hat Enterprise Linux 8
- Red Hat Red Hat Enterprise Linux 9
- Siemens RUGGEDCOM RST2428P
- Siemens SIMATIC CN 4100
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
References
-
access.redhat.com
/security/cve/CVE-2025-6052
vdb-entry, third-party-advisory, advisory, web
-
bugzilla.redhat.com
/show_bug.cgi?id=2372666
issue-tracking, third-party-advisory, advisory, web
-
cert-portal.siemens.com
/productcert/html/ssa-032379.html
web
-
cert-portal.siemens.com
/productcert/html/ssa-253495.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-6052
web
-
openjdk.org
/groups/vulnerability/advisories/2026-01-20
web
-
oracle.com
/security-alerts/cpuapr2026.html
web
-
oracle.com
/security-alerts/cpujan2026.html
web
Sources
- CVE List CVE-2025-6052
- NVD CVE-2025-6052
- OSV BIT-java-2025-6052
- OSV BIT-java-min-2025-6052
- OSV BIT-jre-2025-6052
- OSV JLSEC-2025-167
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.