CVE-2025-6052

Source
https://cve.org/CVERecord?id=CVE-2025-6052
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-6052.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-6052
Aliases
Downstream
Related
Published
2025-06-13T15:40:38.541Z
Modified
2026-05-31T04:00:24.134877604Z
Severity
  • 3.7 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
Glib: integer overflow in g_string_maybe_expand() leading to potential buffer overflow in glib gstring
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6052.json",
    "cwe_ids": [
        "CWE-190"
    ],
    "cna_assigner": "redhat"
}
References

Affected packages

Git / github.com/gnome/glib

Affected ranges

Type
GIT
Repo
https://github.com/gnome/glib
Events
Database specific
{
    "source": "CPE_RANGE",
    "cpe": "cpe:2.3:a:gnome:glib:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "2.75.3"
        },
        {
            "last_affected": "2.84.3"
        }
    ]
}

Affected versions

2.*
2.75.3
2.75.4
2.76.0
2.76.1
2.77.0
2.77.1
2.77.2
2.77.3
2.78.0
2.79.0
2.79.1
2.79.2
2.79.3
2.80.0
2.81.0
2.81.2
2.83.0
2.83.1
2.83.2
2.83.3
2.83.4
2.83.5
2.84.0
2.84.1
2.84.2
2.84.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-6052.json"

Git / gitlab.gnome.org/gnome/glib

Affected ranges

Type
GIT
Repo
https://gitlab.gnome.org/gnome/glib
Events
Database specific
{
    "source": "CPE_RANGE",
    "cpe": "cpe:2.3:a:gnome:glib:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "2.75.3"
        },
        {
            "last_affected": "2.84.3"
        }
    ]
}

Affected versions

2.*
2.75.3
2.75.4
2.76.0
2.76.1
2.77.0
2.77.1
2.77.2
2.77.3
2.78.0
2.79.0
2.79.1
2.79.2
2.79.3
2.80.0
2.81.0
2.81.2
2.83.0
2.83.1
2.83.2
2.83.3
2.83.4
2.83.5
2.84.0
2.84.1
2.84.2
2.84.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-6052.json"