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
jre
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:54 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 8 May 2026, 05:47 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-jre-2025-6052

jre

Fixed versions: 1.8.0, 8.0.481

Complete source record
{
  "id": "140975d82151cd1d280b8ebd7a3458c512bf656a624c0216cb27efe49b1d0bcb",
  "url": "https://osv.dev/vulnerability/BIT-jre-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-jre-2025-6052",
    "products": [
      {
        "name": {
          "value": "jre",
          "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-jre-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": "jre",
            "purl": "pkg:bitnami/jre",
            "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/jre/BIT-jre-2025-6052.json"
          }
        }
      ],
      "modified": "2026-10-16T09:45:25.538881908Z",
      "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:libericajre:*:*:*:*:*:*:*:*"
        ],
        "severity": "High"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-6052",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/database_specific/severity"
  },
  "source_id": "core-osv",
  "document_id": 338445,
  "published_at": "2026-05-08T05:47:27.428+00:00"
}