Skip to content
Fencer Vulns
low 3.7

CVE-2025-6052 json

Glib: integer overflow in g_string_maybe_expand() leading to potential buffer overflow in glib gstring

published 2025-06-13 16 mo ago modified 2026-10-16 23 d 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 44%
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

  • glib Azure Linux 3.0 2.78.6-3

azure linux advisories AZL-63912

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor 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-glib2
    affected: 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-loaders
    not 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 SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
16 mo ago

Exploit prediction

0.52% chance of exploitation in the next 30 days, higher than 44% of all scored CVEs (FIRST EPSS, 2026-11-08).

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

Sources

Fencer Vulns 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.