# CVE-2025-6052: Glib: integer overflow in g\_string\_maybe\_expand() leading to potential buffer overflow in glib gstring

- Priority: **Routine**
- Reason: Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-06-13 · Modified: 2026-06-02
- Aliases: MGASA-2025-0216, SUSE-SU-2025:20673-1, UBUNTU-CVE-2025-6052, DEBIAN-CVE-2025-6052, openSUSE-SU-2025:15221-1, CGA-269m-qwmp-xqwr, CGA-2qfr-54rx-9qh5, CGA-366c-92c8-r87f, CGA-388w-vwgj-9ch5, CGA-3h23-x9mf-jrc3, CGA-3rx6-3rx2-gf26, CGA-4m66-vxjm-mpqf, CGA-4v88-9r36-vh3c, CGA-4w5h-m9fj-467w, CGA-5593-vrx5-7gj3, CGA-5fcq-883q-pqmq, CGA-5g2c-c9f3-mg7x, CGA-5m3j-5795-8788, CGA-5q6v-79q7-g9xq, CGA-6297-2q92-85gr, CGA-62w9-cq7w-ch6m, CGA-695r-fxr5-pvpx, CGA-6j89-fw3c-3qpv, CGA-6jjr-vj6q-575v, CGA-6vh5-269c-qgqv, CGA-6wg5-jmjh-77cg, CGA-75gp-7fg2-c9x2, CGA-7692-cjgm-445r, CGA-7f27-v3vr-mm3g, CGA-7hfg-8j63-344m, CGA-7qg7-w47g-6gjr, CGA-7rwc-2qp8-gpgf, CGA-83jg-p4fm-h2x5, CGA-878x-7jfp-5x9m, CGA-89vw-26gr-r3c5, CGA-8rw5-4vhq-xmh2, CGA-9h3q-fpf6-97wr, CGA-9jgq-h9gj-v2c7, CGA-c3r9-xx94-crwg, CGA-c474-mhwm-r8j4, CGA-c4wp-gh7q-8jfm, CGA-cp2p-xg5c-grp7, CGA-cr4q-9ch3-r52j, CGA-cw69-x8p6-vp8v, CGA-f5xx-w2rh-533j, CGA-fp43-2m6p-23m9, CGA-fpmf-gw5x-j7mg, CGA-fr56-365w-5jv7, CGA-frcx-6v4r-97c4, CGA-g2r4-qch9-8h5x, CGA-g2x2-qgq6-27c6, CGA-g64x-4hx9-r565, CGA-g8g4-4jww-94v3, CGA-gc6h-jr9f-hvg3, CGA-gh8j-vvr5-gj85, CGA-ghxr-8mhc-qfwp, CGA-hg56-g9xh-37mc, CGA-hw5h-5grw-j5r5, CGA-hxx2-xvm7-74jw, CGA-j23h-w69p-qmg9, CGA-j63g-46hw-2r5w, CGA-jq4r-c3hj-x3mx, CGA-m2wm-fqm8-76jx, CGA-mgjg-v2gf-7229, CGA-mhrm-r7jf-8mf9, CGA-mjqw-h8qx-r5hw, CGA-mq92-64cw-fq6v, CGA-p2vj-cm4r-xq49, CGA-p7h9-25j7-cf73, CGA-p84h-rm7j-q8wf, CGA-q9jh-2677-hf55, CGA-qmvv-m34g-m38g, CGA-qpj7-p3hh-f77j, CGA-qvcp-pjxq-488r, CGA-qwv3-2wf3-fjhg, CGA-r649-mp5v-4cxm, CGA-rg3m-v9fm-chx6, CGA-rg6h-r5j8-rcrv, CGA-v86p-pxf8-3h8j, CGA-w969-r9mw-2xmq, CGA-wmqc-2vxp-x769, CGA-wv7g-p332-h849, CGA-x9cw-cmrf-5qx6
- Record: https://cvemate.com/vulnerability/CVE-2025-6052 · JSON: https://cvemate.com/vulnerability/CVE-2025-6052/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.544%, percentile 47.146%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 45)

- chainguard openjdk-11-openj9 (Chainguard): \< 0.59.0-r2
- chainguard openjdk-11-openj9-dbg (Chainguard): \< 0.59.0-r2
- chainguard openjdk-11-openj9-default-jdk (Chainguard): \< 0.59.0-r2
- chainguard openjdk-11-openj9-default-jvm (Chainguard): \< 0.59.0-r2
- chainguard openjdk-11-openj9-doc (Chainguard): \< 0.59.0-r2
- chainguard openjdk-11-openj9-jmods (Chainguard): \< 0.59.0-r2
- chainguard openjdk-11-openj9-jre (Chainguard): \< 0.59.0-r2
- chainguard openjdk-17-openj9 (Chainguard): \< 0.59.0-r1
- chainguard openjdk-17-openj9-dbg (Chainguard): \< 0.59.0-r1
- chainguard openjdk-17-openj9-default-jdk (Chainguard): \< 0.59.0-r1
- chainguard openjdk-17-openj9-default-jvm (Chainguard): \< 0.59.0-r1
- chainguard openjdk-17-openj9-doc (Chainguard): \< 0.59.0-r1
- chainguard openjdk-17-openj9-jmods (Chainguard): \< 0.59.0-r1
- chainguard openjdk-17-openj9-jre (Chainguard): \< 0.59.0-r1
- chainguard openjdk-21-openj9 (Chainguard): \< 0.59.0-r1
- chainguard openjdk-21-openj9-dbg (Chainguard): \< 0.59.0-r1
- chainguard openjdk-21-openj9-default-jdk (Chainguard): \< 0.59.0-r1
- chainguard openjdk-21-openj9-default-jvm (Chainguard): \< 0.59.0-r1
- chainguard openjdk-21-openj9-doc (Chainguard): \< 0.59.0-r1
- chainguard openjdk-21-openj9-jmods (Chainguard): \< 0.59.0-r1

## References

- <https://access.redhat.com/security/cve/CVE-2025-6052>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2372666>
- <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-253495.html>
- <https://advisories.mageia.org/MGASA-2025-0216.html>
- <https://bugs.mageia.org/show_bug.cgi?id=34412>
- <https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/message/JCF4CXWHQ7T6REXQFZTU4OS54OXUZ2HW/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202520673-1/>
- <https://bugzilla.suse.com/1244596>
- <https://www.suse.com/security/cve/CVE-2025-6052>
- <https://ubuntu.com/security/CVE-2025-6052>
- <https://www.cve.org/CVERecord?id=CVE-2025-6052>
- <https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4655>
- <https://ubuntu.com/security/notices/USN-7942-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-6052>
- <https://access.redhat.com/downloads/content/package-browser/>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6052.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-6052>

---

Data as of 2026-12-05T03:06:41.739Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
