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

- Severity: Low 3.7 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 47% of CVEs (2026-12-01)
- Published: 2025-06-13T15:40:38.541Z
- Modified: 2026-10-16T09:45:25.538Z
- Also known as: BIT-JAVA-2025-6052, BIT-JAVA-MIN-2025-6052, BIT-JRE-2025-6052
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- bootc: no versions given
- glib2: no versions given
- glycin-loaders: no versions given
- loupe: no versions given
- mingw-glib2: no versions given
- rpm-ostree: no versions given
- librsvg2: no versions given
- gnome glib: from 2.75.3 up to 2.84.3
- java (Bitnami): before 1.8.0; from 1.9.0 before 8.0.481
- java-min (Bitnami): before 1.8.0; from 1.9.0 before 8.0.481
- jre (Bitnami): before 1.8.0; from 1.9.0 before 8.0.481

## Every score

- redhat: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://access.redhat.com/security/cve/CVE-2025-6052> (advisory, third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2372666> (advisory, issue-tracking, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-253495.html>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-6052> (web)
- <https://openjdk.org/groups/vulnerability/advisories/2026-01-20> (web)
- <https://www.oracle.com/security-alerts/cpuapr2026.html> (web)
- <https://www.oracle.com/security-alerts/cpujan2026.html> (web)

## Sources

- CVE List: [CVE-2025-6052](https://www.cve.org/CVERecord?id=CVE-2025-6052), CVE Terms of Use, modified 2026-06-02
- NVD: [CVE-2025-6052](https://nvd.nist.gov/vuln/detail/CVE-2025-6052), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-JAVA-2025-6052](https://osv.dev/vulnerability/BIT-JAVA-2025-6052), Apache-2.0, modified 2026-10-16
- Bitnami Vulnerability Database: [BIT-JAVA-MIN-2025-6052](https://osv.dev/vulnerability/BIT-JAVA-MIN-2025-6052), Apache-2.0, modified 2026-10-16
- Bitnami Vulnerability Database: [BIT-JRE-2025-6052](https://osv.dev/vulnerability/BIT-JRE-2025-6052), Apache-2.0, modified 2026-10-16

---

Page: https://cve.day/CVE-2025-6052 · Whole record: https://cve.day/CVE-2025-6052.json · Rebuilt by cve.day 2026-11-25T22:58:59.208Z
