Skip to content
Heist/ feed
Back to feed
HighFix available

Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2

Type: advisorySources: OSV

A flaw was found in libxml2's xmlBuildQName function, where integer overflows in buffer size calculations can lead to a stack-based buffer overflow. This issue can result in memory corruption or a denial of service when processing crafted input.

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

Source evidence

Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2

core-osv · Original source

Published 6 May 2026, 14:45 UTC

A flaw was found in libxml2's xmlBuildQName function, where integer overflows in buffer size calculations can lead to a stack-based buffer overflow. This issue can result in memory corruption or a denial of service when processing crafted input.

osv:BIT-java-2025-6021

java

Fixed versions: 1.8.0, 8.0.481

Complete source record
{
  "id": "d524e6bd2682522420c55ada3675e7f5742f021e2a1e1ef7dac707a3dab98bfe",
  "url": "https://osv.dev/vulnerability/BIT-java-2025-6021",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2",
    "summary": "A flaw was found in libxml2's xmlBuildQName function, where integer overflows in buffer size calculations can lead to a stack-based buffer overflow. This issue can result in memory corruption or a denial of service when processing crafted input.",
    "evidence": "osv:BIT-java-2025-6021",
    "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-6021",
      "aliases": [
        "BIT-java-2025-6021",
        "BIT-java-min-2025-6021",
        "BIT-jre-2025-6021",
        "CVE-2025-6021"
      ],
      "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-6021.json"
          }
        }
      ],
      "modified": "2026-10-16T09:45:11.051389713Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/errata/RHSA-2025:10630",
        "https://access.redhat.com/errata/RHSA-2025:10698",
        "https://access.redhat.com/errata/RHSA-2025:10699",
        "https://access.redhat.com/errata/RHSA-2025:11580",
        "https://access.redhat.com/errata/RHSA-2025:11673",
        "https://access.redhat.com/errata/RHSA-2025:12098",
        "https://access.redhat.com/errata/RHSA-2025:12099",
        "https://access.redhat.com/errata/RHSA-2025:12199",
        "https://access.redhat.com/errata/RHSA-2025:12237",
        "https://access.redhat.com/errata/RHSA-2025:12239",
        "https://access.redhat.com/errata/RHSA-2025:12240",
        "https://access.redhat.com/errata/RHSA-2025:12241",
        "https://access.redhat.com/errata/RHSA-2025:13267",
        "https://access.redhat.com/errata/RHSA-2025:13289",
        "https://access.redhat.com/errata/RHSA-2025:13325",
        "https://access.redhat.com/errata/RHSA-2025:13335",
        "https://access.redhat.com/errata/RHSA-2025:13336",
        "https://access.redhat.com/errata/RHSA-2025:14059",
        "https://access.redhat.com/errata/RHSA-2025:14396",
        "https://access.redhat.com/errata/RHSA-2025:15308",
        "https://access.redhat.com/errata/RHSA-2025:15672",
        "https://access.redhat.com/errata/RHSA-2025:19020",
        "https://access.redhat.com/errata/RHSA-2026:7519",
        "https://access.redhat.com/security/cve/CVE-2025-6021",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2372406",
        "https://gitlab.gnome.org/GNOME/libxml2/-/issues/926",
        "https://lists.debian.org/debian-lts-announce/2025/07/msg00014.html",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-6021"
      ],
      "provider_metadata": {
        "cpes": [
          "cpe:2.3:a:bellsoft:libericajdk:*:*:*:*:*:*:*:*"
        ],
        "severity": "High"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-6021",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/database_specific/severity"
  },
  "source_id": "core-osv",
  "document_id": 338196,
  "published_at": "2026-05-06T14:45:43.734+00:00"
}