CVE-2025-6052
Glib: integer overflow in g_string_maybe_expand() leading to potential buffer overflow in glib gstring
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
3.7
Glib: integer overflow in g_string_maybe_expand() leading to potential buffer overflow in glib gstring
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.
- Record
CVE-2025-6052- 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 - Weakness
- CWE-190
- Updated
- 2026-11-02
EUVDEUVD-2025-18285
3.7
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.
- Record
EUVD-2025-18285- 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-99rj-3595-5frj
3.7
A flaw was found in how GLib’s GString manages memory when adding data to strings. If a string is...
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.
- Record
GHSA-99rj-3595-5frj- 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 - Weakness
- CWE-190
- Updated
- 2026-11-02
NVD
3.7
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.
- Record
CVE-2025-6052- 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 - 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 - Weakness
- CWE-190
- Updated
- 2026-11-02
OSVBELL-CVE-2025-6052
7.5
- Record
BELL-CVE-2025-6052- 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 - Updated
- 2026-11-02
OSV
3.7
Glib: integer overflow in g_string_maybe_expand() leading to potential buffer overflow in glib gstring
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.
- Record
CVE-2025-6052- 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 - Weakness
- CWE-190
- Updated
- 2026-11-02
Show 16 moreShow less
OSVDEBIAN-CVE-2025-6052
7.5
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.
- Record
DEBIAN-CVE-2025-6052- 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 - Updated
- 2026-11-02
OSVJLSEC-2025-167
7.5
A flaw was found in how GLib’s GString manages memory when adding data to strings
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.
- Record
JLSEC-2025-167- 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 - Updated
- 2026-11-02
OSVOESA-2025-1795
3.7
glib2 security update
GLib is a bundle of three (formerly five) low-level system libraries written in C and developed mainly by GNOME. GLib's code was separated from GTK, so it can be used by software other than GNOME and has been developed in parallel ever since.
Security Fix(es):
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.(CVE-2025-6052)
- Record
OESA-2025-1795- 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 - Updated
- 2026-11-02
OSVOESA-2025-1796
3.7
glib2 security update
GLib is a bundle of three (formerly five) low-level system libraries written in C and developed mainly by GNOME. GLib's code was separated from GTK, so it can be used by software other than GNOME and has been developed in parallel ever since.
Security Fix(es):
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.(CVE-2025-6052)
- Record
OESA-2025-1796- 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 - Updated
- 2026-11-02
OSVOESA-2025-1797
3.7
glib2 security update
GLib is a bundle of three (formerly five) low-level system libraries written in C and developed mainly by GNOME. GLib's code was separated from GTK, so it can be used by software other than GNOME and has been developed in parallel ever since.
Security Fix(es):
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.(CVE-2025-6052)
- Record
OESA-2025-1797- 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 - Updated
- 2026-11-02
OSVUBUNTU-CVE-2025-6052
3.7
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.
- Record
UBUNTU-CVE-2025-6052- 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 - 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 - Updated
- 2026-11-02
OSVAZL-63912 No score
CVE-2025-6052 affecting package glib for versions less than 2.78.6-3
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.
- Record
AZL-63912- Updated
- 2026-11-05
OSVBIT-java-2025-6052 No score
Glib: integer overflow in g_string_maybe_expand() leading to potential buffer overflow in glib gstring
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.
- Record
BIT-java-2025-6052- Updated
- 2026-11-02
OSVBIT-java-min-2025-6052 No score
Glib: integer overflow in g_string_maybe_expand() leading to potential buffer overflow in glib gstring
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.
- Record
BIT-java-min-2025-6052- Updated
- 2026-11-02
OSVBIT-jre-2025-6052 No score
Glib: integer overflow in g_string_maybe_expand() leading to potential buffer overflow in glib gstring
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.
- Record
BIT-jre-2025-6052- Updated
- 2026-11-02
OSVMGASA-2025-0216 No score
Updated glib2.0 packages fix security vulnerability
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.
- Record
MGASA-2025-0216- Updated
- 2026-11-02
OSVopenSUSE-SU-2025:15221-1 No score
gio-branding-upstream-2.84.3-1.1 on GA media
These are all security issues fixed in the gio-branding-upstream-2.84.3-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:15221-1- Updated
- 2026-11-02
OSVSUSE-SU-2025:02167-1 No score
Security update for glib2
This update for glib2 fixes the following issues:
- CVE-2025-6052: Fixed integer overflow in g_string_maybe_expand() leads to potential buffer overflow in GString (bsc#1244596).
- CVE-2025-4373: Fixed buffer underflow through glib/gstring.c via function g_string_insert_unichar (bsc#1242844).
- Record
SUSE-SU-2025:02167-1- Updated
- 2026-11-02
OSVSUSE-SU-2025:20508-1 No score
Security update for glib2
This update for glib2 fixes the following issues:
- CVE-2025-4373: Fixed buffer underflow through glib/gstring.c via function g_string_insert_unichar (bsc#1242844)
- CVE-2025-6052: Fixed integer overflow in g_string_maybe_expand() leads to potential buffer overflow in GString (bsc#1244596)
- Record
SUSE-SU-2025:20508-1- Updated
- 2026-11-02
OSVSUSE-SU-2025:20673-1 No score
Security update for glib2
This update for glib2 fixes the following issues:
- CVE-2025-6052: Fix overflow check when expanding a GString (bsc#1244596).
- Record
SUSE-SU-2025:20673-1- Updated
- 2026-11-02
OSVUSN-7942-1 No score
glib2.0 vulnerabilities
It was discovered that GLib incorrectly handled escaping URI strings. An attacker could use this issue to cause GLib to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2025-13601)
It was discovered that GLib incorrectly parsed certain GVariants. An attacker could use this issue to cause GLib to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2025-14087)
It was discovered that GLib incorrectly parsed certain long invalid ISO 8601 timestamps. An attacker could possibly use this issue to cause GLib to crash, resulting in a denial of service. This issue only affected Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2025-3360)
It was discovered that GLib incorrectly handled GString memory operations. An attacker could use this issue to cause GLib to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 24.04 LTS and Ubuntu 25.04. (CVE-2025-6052)
It was discovered that GLib incorrectly handled creating temporary files. An attacker could possibly use this issue to access unauthorized data. This issue only affected Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, and Ubuntu 25.04. (CVE-2025-7039)
- Record
USN-7942-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
glibAzure Linux:3 |
before 2.78.6-3 | 2.78.6-3 |
glibAlpaquita:25 |
2.84.2-r0 up to 2.84.3-r0 | 2.84.3-r0 |
glibAlpaquita:stream |
2.76.0-r1 up to 2.84.3-r0 | 2.84.3-r0 |
javaBitnami |
before 1.8.0, 1.9.0 up to 8.0.481 | 1.8.08.0.481 |
java-minBitnami |
before 1.8.0, 1.9.0 up to 8.0.481 | 1.8.08.0.481 |
jreBitnami |
before 1.8.0, 1.9.0 up to 8.0.481 | 1.8.08.0.481 |
glib2.0Debian:13 |
before 2.84.3-1 | 2.84.3-1 |
glib2.0Debian:14 |
before 2.84.3-1 | 2.84.3-1 |
Glib_jllJulia |
2.76.5+0 up to 2.86.0+0 | 2.86.0+0 |
glib2.0Mageia:9 |
before 2.76.3-1.5.mga9 | 2.76.3-1.5.mga9 |
Show 14 moreShow less
| Package | Affected | Fixed |
|---|---|---|
glib2openEuler:24.03-LTS |
before 2.78.3-9.oe2403 | 2.78.3-9.oe2403 |
glib2openEuler:24.03-LTS-SP1 |
before 2.78.3-9.oe2403sp1 | 2.78.3-9.oe2403sp1 |
glib2openEuler:24.03-LTS-SP2 |
before 2.78.3-9.oe2403sp2 | 2.78.3-9.oe2403sp2 |
glib2SUSE:Linux Enterprise Module for Basesystem 15 SP6 From an advisory covering 2 CVEs |
before 2.78.6-150600.4.16.1 | 2.78.6-150600.4.16.1 |
glib2SUSE:Linux Enterprise Module for Basesystem 15 SP7 From an advisory covering 2 CVEs |
before 2.78.6-150600.4.16.1 | 2.78.6-150600.4.16.1 |
glib2openSUSE:Leap 15.6 From an advisory covering 2 CVEs |
before 2.78.6-150600.4.16.1 | 2.78.6-150600.4.16.1 |
glib2-docopenSUSE:Leap 15.6 From an advisory covering 2 CVEs |
before 2.78.6-150600.4.16.1 | 2.78.6-150600.4.16.1 |
glib2SUSE:Linux Micro 6.0 From an advisory covering 2 CVEs |
before 2.76.2-9.1 | 2.76.2-9.1 |
glib2SUSE:Linux Micro 6.1 |
before 2.78.6-slfo.1.1_4.1 | 2.78.6-slfo.1.1_4.1 |
glib2.0Ubuntu:24.04:LTS |
before 2.80.0-6ubuntu3.6, plus listed versions 2.78.0-22.78.1-42.78.3-12.78.3-22.79.1-1 Show 8 moreShow less2.79.2-1~ubuntu12.79.3-3ubuntu52.80.0-6ubuntu12.80.0-6ubuntu32.80.0-6ubuntu3.12.80.0-6ubuntu3.22.80.0-6ubuntu3.42.80.0-6ubuntu3.5 |
2.80.0-6ubuntu3.6 |
glib2.0Ubuntu:22.04:LTS From an advisory covering 5 CVEs |
before 2.72.4-0ubuntu2.7, plus listed versions 2.68.4-1ubuntu12.70.1-12.70.2-12.71.0-22.71.1-1 Show 11 moreShow less2.71.2-12.71.3-12.72.0-12.72.1-12.72.4-0ubuntu12.72.4-0ubuntu22.72.4-0ubuntu2.22.72.4-0ubuntu2.32.72.4-0ubuntu2.42.72.4-0ubuntu2.52.72.4-0ubuntu2.6 |
2.72.4-0ubuntu2.7 |
glib2.0Ubuntu:24.04:LTS From an advisory covering 5 CVEs |
before 2.80.0-6ubuntu3.6, plus listed versions 2.78.0-22.78.1-42.78.3-12.78.3-22.79.1-1 Show 8 moreShow less2.79.2-1~ubuntu12.79.3-3ubuntu52.80.0-6ubuntu12.80.0-6ubuntu32.80.0-6ubuntu3.12.80.0-6ubuntu3.22.80.0-6ubuntu3.42.80.0-6ubuntu3.5 |
2.80.0-6ubuntu3.6 |
glib2.0Ubuntu:25.10 From an advisory covering 5 CVEs |
before 2.86.0-2ubuntu0.1, plus listed versions 2.84.1-12.84.1-22.84.2-12.84.3-12.85.1-22.85.2-22.85.3-12.86.0-2 |
2.86.0-2ubuntu0.1 |
glib2openSUSE:Tumbleweed |
before 2.84.3-1.1 | 2.84.3-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-6052 is a low vulnerability (CVSS 3.7) in Gnome Glib, published June 13, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.52%, the 44th percentile. Fixed in glib 2.78.6-3.
References
access.redhat.com/security/cve/CVE-2025-6052
bugzilla.redhat.com/show_bug.cgi?id=2372666
cert-portal.siemens.com/productcert/html/ssa-032379.html
cert-portal.siemens.com/productcert/html/ssa-253495.html
nvd.nist.gov/vuln/detail/CVE-2025-6052
github.com/advisories/GHSA-99rj-3595-5frj
Show 28 moreShow less
docs.bell-sw.com/security/cves/CVE-2025-6052
openjdk.org/groups/vulnerability/advisories/2026-01-20
oracle.com/security-alerts/cpuapr2026.html
oracle.com/security-alerts/cpujan2026.html
access.redhat.com/downloads/content/package-browser
github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6052.json
security-tracker.debian.org/tracker/CVE-2025-6052
advisories.mageia.org/MGASA-2025-0216.html
bugs.mageia.org/show_bug.cgi?id=34412
lists.opensuse.org/archives/list/[email protected]/message/JCF4CXWHQ7T6REXQFZTU4OS54OXUZ2HW
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-1795
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-1796
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-1797
suse.com/support/update/announcement/2025/suse-su-202502167-1
bugzilla.suse.com/1242844
bugzilla.suse.com/1244596
suse.com/security/cve/CVE-2025-4373
suse.com/security/cve/CVE-2025-6052
suse.com/support/update/announcement/2025/suse-su-202520508-1
suse.com/support/update/announcement/2025/suse-su-202520673-1
ubuntu.com/security/CVE-2025-6052
cve.org/CVERecord?id=CVE-2025-6052
gitlab.gnome.org/GNOME/glib/-/merge_requests/4655
ubuntu.com/security/notices/USN-7942-1
ubuntu.com/security/CVE-2025-3360
ubuntu.com/security/CVE-2025-7039
ubuntu.com/security/CVE-2025-13601
ubuntu.com/security/CVE-2025-14087