# CVE-2025-6021: Libxml2: integer overflow in xmlbuildqname() leads to stack buffer overflow in libxml2

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2025-06-12 · Modified: 2026-11-05
- Aliases: ALPINE-CVE-2025-6021, UBUNTU-CVE-2025-6021, DEBIAN-CVE-2025-6021, CGA-24hw-j4cq-h2j9, CGA-2cp7-m6q7-4fxg, CGA-2f24-p3vq-m2fw, CGA-2wp6-m74c-wgr3, CGA-3294-48q9-9w46, CGA-3j7r-6j74-37mf, CGA-3xqw-j37p-cwm9, CGA-428f-6c58-qx7v, CGA-4c48-v87p-gh94, CGA-4mw3-33c7-x745, CGA-4pmg-9w6g-868q, CGA-4qj6-gg24-9r6g, CGA-56p8-5x3q-6357, CGA-5vmm-86mh-hmjh, CGA-6xwj-xvhr-vrcc, CGA-7cgp-jp6v-vrrg, CGA-7g29-9x3x-hcv6, CGA-7h8f-48mm-cw6f, CGA-87fm-27vx-wvw8, CGA-8h4w-26mh-7rh3, CGA-8h7g-jjcq-r7jf, CGA-8jjp-p2xr-cp66, CGA-8vf6-57jg-f9m6, CGA-8w7j-fmmq-m9qg, CGA-8wq7-57qr-cw69, CGA-8x5x-7xxr-6gj6, CGA-93x2-qg2r-vghm, CGA-95q3-w797-jg3p, CGA-9grw-jjrm-jh32, CGA-9hq8-mm38-c2pg, CGA-9p5m-x738-899g, CGA-9qhp-hf5r-x527, CGA-9rvv-ppf5-48hg, CGA-c7fj-r28v-m3qh, CGA-cg9r-gxc9-c7jx, CGA-cq69-mgf5-p3g2, CGA-cx7v-g3qm-7mwj, CGA-f6p4-wc2h-rqh3, CGA-f8vw-fhwf-fjwx, CGA-f8x3-pfwr-jp28, CGA-f9jv-gvpg-48pw, CGA-fc8j-pmph-rxhh, CGA-fg6w-99q8-fwhp, CGA-fhm5-q96j-29f4, CGA-g29r-24hv-8c2h, CGA-g5g5-6hpj-pf75, CGA-g6g6-x5g5-53gw, CGA-g8rc-xm53-wg57, CGA-gv79-mj4w-2485, CGA-gxq5-hm9c-xxw6, CGA-h64r-7jvf-7vqj, CGA-h756-8934-gf56, CGA-hcfx-hcm7-w7g6, CGA-hpq4-4fc5-gv28, CGA-hvq6-jjrc-hvpm, CGA-j2x8-ch5h-wv37, CGA-j34w-fqr9-9cm2, CGA-j7g9-38gp-cgpf, CGA-jgrj-4gr2-w248, CGA-m5wc-78jj-mm7g, CGA-m66f-gq22-8f72, CGA-mmw9-5v73-cfgv, CGA-mpw4-fgg9-c2cm, CGA-p5qh-32m7-f4wj, CGA-pcmq-2m62-p5fx, CGA-pjcc-8qwr-44rh, CGA-pwrp-f696-5hg8, CGA-q2h8-mjjq-ch44, CGA-r53m-82cx-3m26, CGA-rchq-r8vv-h4f7, CGA-rvgv-2928-pp6m, CGA-rxv2-4xhf-3qgf, CGA-vc2v-m3jm-5wx3, CGA-w3xc-x8wc-8c2g, CGA-w4vh-qc6c-mcv5, CGA-wjh5-98m5-2j2v, CGA-wv59-h3jw-7fwx, CGA-xhgg-wvcr-rj67
- Record: https://cvemate.com/vulnerability/CVE-2025-6021 · JSON: https://cvemate.com/vulnerability/CVE-2025-6021/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.469%, percentile 74.627%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected (first 20 of 63)

- alpine libxml2 (Alpine Linux): \< 2.13.9-r0
- alpine qt6-qtwebengine (Alpine Linux): \< 6.8.3-r5
- chainguard openjdk-11-openj9 (Chainguard): \< 0.59.0-r2
- chainguard openjdk-11-openj9-dbg (Chainguard): \< 0.59.0-r2
- chainguard openjdk-11-openj9-default-jdk (Chainguard): \< 0.59.0-r2
- chainguard openjdk-11-openj9-default-jvm (Chainguard): \< 0.59.0-r2
- chainguard openjdk-11-openj9-doc (Chainguard): \< 0.59.0-r2
- chainguard openjdk-11-openj9-jmods (Chainguard): \< 0.59.0-r2
- chainguard openjdk-11-openj9-jre (Chainguard): \< 0.59.0-r2
- chainguard openjdk-17-openj9 (Chainguard): \< 0.59.0-r1
- chainguard openjdk-17-openj9-dbg (Chainguard): \< 0.59.0-r1
- chainguard openjdk-17-openj9-default-jdk (Chainguard): \< 0.59.0-r1
- chainguard openjdk-17-openj9-default-jvm (Chainguard): \< 0.59.0-r1
- chainguard openjdk-17-openj9-doc (Chainguard): \< 0.59.0-r1
- chainguard openjdk-17-openj9-jmods (Chainguard): \< 0.59.0-r1
- chainguard openjdk-17-openj9-jre (Chainguard): \< 0.59.0-r1
- chainguard openjdk-21-openj9 (Chainguard): \< 0.59.0-r1
- chainguard openjdk-21-openj9-dbg (Chainguard): \< 0.59.0-r1
- chainguard openjdk-21-openj9-default-jdk (Chainguard): \< 0.59.0-r1
- chainguard openjdk-21-openj9-default-jvm (Chainguard): \< 0.59.0-r1

## References (first 20 of 38)

- <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>

---

Data as of 2026-12-05T03:05:06.926Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
