# CVE-2022-40304

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-11-23 · Modified: 2026-10-14
- Aliases: ALPINE-CVE-2022-40304, UBUNTU-CVE-2022-40304, DEBIAN-CVE-2022-40304, CGA-3x5f-hjjj-43q8, CGA-qp8r-9hrf-42q5
- Record: https://cvemate.com/vulnerability/CVE-2022-40304 · JSON: https://cvemate.com/vulnerability/CVE-2022-40304/json

## Description

```text
An issue was discovered in libxml2 before 2.10.3. Certain invalid XML entity definitions can corrupt a hash table key, potentially leading to subsequent logic errors. In one case, a double-free can be provoked.
```

## Signals

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

## Affected (first 20 of 22)

- alpine libxml2 (Alpine Linux): \< 2.9.14-r2 \| \< 2.10.3-r0
- chainguard libxml2 (Chainguard): All versions (No fix recorded)
- wolfi libxml2 (Wolfi): All versions (No fix recorded)
- apple ipados: \< 15.7.2
- apple iphone\_os: \< 15.7.2
- apple macos: ≥ 11.0, \< 11.7.2 \| ≥ 12.0, \< 12.6.2
- apple tvos: \< 16.2
- apple watchos: \< 9.2
- debian libxml2 (Debian): \< 2.9.14+dfsg-1.1
- ubuntu libxml2 (Ubuntu): \< 2.9.1+dfsg1-3ubuntu4.13+esm4 \| \< 2.9.3+dfsg1-1ubuntu0.7+esm4 \| \< 2.9.4+dfsg1-6.1ubuntu1.8 \| \< 2.9.10+dfsg-5ubuntu0.20.04.5 \| \< 2.9.13+dfsg-1ubuntu0.2
- netapp active\_iq\_unified\_manager: na
- netapp clustered\_data\_ontap: na
- netapp clustered\_data\_ontap\_antivirus\_connector: na
- netapp h300s\_firmware: na
- netapp h410c\_firmware: na
- netapp h410s\_firmware: na
- netapp h500s\_firmware: na
- netapp h700s\_firmware: na
- netapp manageability\_software\_development\_kit: na
- netapp smi-s\_provider: na

## References (first 20 of 28)

- <https://gitlab.gnome.org/GNOME/libxml2/-/tags>
- <https://gitlab.gnome.org/GNOME/libxml2/-/tags/v2.10.3>
- <https://gitlab.gnome.org/GNOME/libxml2/-/commit/1b41ec4e9433b05bb0376be4725804c54ef1d80b>
- <https://security.netapp.com/advisory/ntap-20221209-0003/>
- <https://support.apple.com/kb/HT213534>
- <https://support.apple.com/kb/HT213533>
- <https://support.apple.com/kb/HT213531>
- <https://support.apple.com/kb/HT213536>
- <https://support.apple.com/kb/HT213535>
- <http://seclists.org/fulldisclosure/2022/Dec/21>
- <http://seclists.org/fulldisclosure/2022/Dec/25>
- <http://seclists.org/fulldisclosure/2022/Dec/26>
- <http://seclists.org/fulldisclosure/2022/Dec/24>
- <http://seclists.org/fulldisclosure/2022/Dec/27>
- <https://security.alpinelinux.org/vuln/CVE-2022-40304>
- <https://ubuntu.com/security/CVE-2022-40304>
- <https://ubuntu.com/security/notices/USN-5760-1>
- <https://ubuntu.com/security/notices/USN-5760-2>
- <https://www.cve.org/CVERecord?id=CVE-2022-40304>
- <https://security-tracker.debian.org/tracker/CVE-2022-40304>

---

Data as of 2026-12-05T03:06:42.754Z. 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
