Skip to content
Heist/ feed
Back to feed
HighFix available

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

Type: advisorySources: OSV

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.

Products
java
Affected versions
Not specified
Fixed versions
1.8.0, 8.0.481
CVEs
CVE-2025-6052
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 19:50 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 6 May 2026, 14:45 UTC

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.

osv:BIT-java-2025-6052

java

Fixed versions: 1.8.0, 8.0.481

Complete source record
{
  "id": "2968fbadc64d013ca7e504d2b931abb3dc95e9f9679ece1be49c182c24ff9f44",
  "url": "https://osv.dev/vulnerability/BIT-java-2025-6052",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Glib: integer overflow in g_string_maybe_expand() leading to potential buffer overflow in glib gstring",
    "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.",
    "evidence": "osv:BIT-java-2025-6052",
    "products": [
      {
        "name": {
          "value": "java",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.8.0",
            "evidence": "/affected/0/ranges"
          },
          {
            "value": "8.0.481",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "BIT-java-2025-6052",
      "aliases": [
        "BIT-java-2025-6052",
        "BIT-java-min-2025-6052",
        "BIT-jre-2025-6052",
        "CVE-2025-6052"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.8.0"
                },
                {
                  "introduced": "1.9.0"
                },
                {
                  "fixed": "8.0.481"
                }
              ]
            }
          ],
          "package": {
            "name": "java",
            "purl": "pkg:bitnami/java",
            "ecosystem": "Bitnami"
          },
          "severity": [
            {
              "type": "CVSS_V3",
              "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
            }
          ],
          "database_specific": {
            "source": "https://github.com/bitnami/vulndb/tree/main/data/java/BIT-java-2025-6052.json"
          }
        }
      ],
      "modified": "2026-10-16T09:45:11.125306724Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/security/cve/CVE-2025-6052",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2372666",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-6052",
        "https://openjdk.org/groups/vulnerability/advisories/2026-01-20",
        "https://www.oracle.com/security-alerts/cpuapr2026.html",
        "https://www.oracle.com/security-alerts/cpujan2026.html"
      ],
      "provider_metadata": {
        "cpes": [
          "cpe:2.3:a:bellsoft:libericajdk:*:*:*:*:*:*:*:*"
        ],
        "severity": "High"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-6052",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/database_specific/severity"
  },
  "source_id": "core-osv",
  "document_id": 338198,
  "published_at": "2026-05-06T14:45:45.337+00:00"
}