# CVE-2022-23308: libxml2: valid.c in libxml2 before 2.9.13 has a use-after-free of ID and IDREF attributes.

CVE-2022-23308 is fixed in 9 products on 1 platform, first by libxml2 2.9.4+dfsg1-6.1ubuntu1.5, released February 25, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-23308
- Priority: High
- CVSS: 8.1 (Medium)
- EPSS: 0.0512
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 25, 2022

## Description

valid.c in libxml2 before 2.9.13 has a use-after-free of ID and IDREF attributes.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libxml2 Debian 12.15 (bookworm) | 2.9.13+dfsg-1 | [DEBIAN-CVE-2022-23308](https://patchblox.com/security/data/fix/linux/debian-cve-2022-23308.md) | Feb 26, 2022 |
| Linux | libxml2 Debian 13.5 (trixie) | 2.9.13+dfsg-1 | [DEBIAN-CVE-2022-23308](https://patchblox.com/security/data/fix/linux/debian-cve-2022-23308.md) | Feb 26, 2022 |
| Linux | libxml2 Debian 14 | 2.9.13+dfsg-1 | [DEBIAN-CVE-2022-23308](https://patchblox.com/security/data/fix/linux/debian-cve-2022-23308.md) | Feb 26, 2022 |
| Linux | libxml2 RHEL 8 | 0:2.9.7-12.el8_5 | [RHSA-2022:0899](https://patchblox.com/security/data/fix/linux/rhsa-2022-0899.md) | Mar 15, 2022 |
| Linux | libxml2 Ubuntu 18.04.6 LTS (bionic) | 2.9.4+dfsg1-6.1ubuntu1.5 | [libxml2 2.9.4+dfsg1-6.1ubuntu1.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libxml2-2.9.4-dfsg1-6.1ubuntu1.5.md) | Feb 25, 2022 |
| Linux | libxml2 Ubuntu 20.04 LTS (focal) | 2.9.10+dfsg-5ubuntu0.20.04.2 | [libxml2 2.9.10+dfsg-5ubuntu0.20.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libxml2-2.9.10-dfsg-5ubuntu0.20.04.2.md) | Feb 25, 2022 |
| Linux | libxml2 amzn 2023 | 2.10.3-2.amzn2023.0.1 | [ALAS2023-2023-096](https://patchblox.com/security/data/fix/linux/alas2023-2023-096.md) | Feb 17, 2023 |
| Linux | libxml2 ol 8 | 0:2.9.7-12.el8_5 | [ELSA-2022-0899](https://patchblox.com/security/data/fix/linux/elsa-2022-0899.md) | Mar 16, 2022 |
| Linux | libxml2 rocky 8 | 0:2.9.7-12.el8_5 | [RLSA-2022:0899](https://patchblox.com/security/data/fix/linux/rlsa-2022-0899.md) | Mar 15, 2022 |
| Linux | libxml2-debuginfo amzn 2023 | 2.10.3-2.amzn2023.0.1 | [ALAS2023-2023-096](https://patchblox.com/security/data/fix/linux/alas2023-2023-096.md) | Feb 17, 2023 |
| Linux | libxml2-debugsource amzn 2023 | 2.10.3-2.amzn2023.0.1 | [ALAS2023-2023-096](https://patchblox.com/security/data/fix/linux/alas2023-2023-096.md) | Feb 17, 2023 |
| Linux | libxml2-devel RHEL 8 | 0:2.9.7-12.el8_5 | [RHSA-2022:0899](https://patchblox.com/security/data/fix/linux/rhsa-2022-0899.md) | Mar 15, 2022 |
| Linux | libxml2-devel almalinux 8 | 2.9.7-12.el8_5 | [ALSA-2022:0899](https://patchblox.com/security/data/fix/linux/alsa-2022-0899.md) | Mar 15, 2022 |
| Linux | libxml2-devel amzn 2023 | 2.10.3-2.amzn2023.0.1 | [ALAS2023-2023-096](https://patchblox.com/security/data/fix/linux/alas2023-2023-096.md) | Feb 17, 2023 |
| Linux | libxml2-devel ol 8 | 0:2.9.7-12.el8_5 | [ELSA-2022-0899](https://patchblox.com/security/data/fix/linux/elsa-2022-0899.md) | Mar 16, 2022 |
| Linux | libxml2-static amzn 2023 | 2.10.3-2.amzn2023.0.1 | [ALAS2023-2023-096](https://patchblox.com/security/data/fix/linux/alas2023-2023-096.md) | Feb 17, 2023 |
| Linux | libxml2-utils Ubuntu 18.04.6 LTS (bionic) | 2.9.4+dfsg1-6.1ubuntu1.5 | [libxml2-utils 2.9.4+dfsg1-6.1ubuntu1.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libxml2-utils-2.9.4-dfsg1-6.1ubuntu1.5.md) | Feb 25, 2022 |
| Linux | libxml2-utils Ubuntu 20.04 LTS (focal) | 2.9.10+dfsg-5ubuntu0.20.04.2 | [libxml2-utils 2.9.10+dfsg-5ubuntu0.20.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libxml2-utils-2.9.10-dfsg-5ubuntu0.20.04.2.md) | Feb 25, 2022 |
| Linux | python-libxml2 Ubuntu 18.04.6 LTS (bionic) | 2.9.4+dfsg1-6.1ubuntu1.5 | [python-libxml2 2.9.4+dfsg1-6.1ubuntu1.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-libxml2-2.9.4-dfsg1-6.1ubuntu1.5.md) | Feb 25, 2022 |
| Linux | python-libxml2 Ubuntu 20.04 LTS (focal) | 2.9.10+dfsg-5ubuntu0.20.04.2 | [python-libxml2 2.9.10+dfsg-5ubuntu0.20.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python-libxml2-2.9.10-dfsg-5ubuntu0.20.04.2.md) | Feb 25, 2022 |
| Linux | python3-libxml2 RHEL 8 | 0:2.9.7-12.el8_5 | [RHSA-2022:0899](https://patchblox.com/security/data/fix/linux/rhsa-2022-0899.md) | Mar 15, 2022 |
| Linux | python3-libxml2 Ubuntu 18.04.6 LTS (bionic) | 2.9.4+dfsg1-6.1ubuntu1.5 | [python3-libxml2 2.9.4+dfsg1-6.1ubuntu1.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python3-libxml2-2.9.4-dfsg1-6.1ubuntu1.5.md) | Feb 25, 2022 |
| Linux | python3-libxml2 Ubuntu 20.04 LTS (focal) | 2.9.10+dfsg-5ubuntu0.20.04.2 | [python3-libxml2 2.9.10+dfsg-5ubuntu0.20.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python3-libxml2-2.9.10-dfsg-5ubuntu0.20.04.2.md) | Feb 25, 2022 |
| Linux | python3-libxml2 amzn 2023 | 2.10.3-2.amzn2023.0.1 | [ALAS2023-2023-096](https://patchblox.com/security/data/fix/linux/alas2023-2023-096.md) | Feb 17, 2023 |
| Linux | python3-libxml2 ol 8 | 0:2.9.7-12.el8_5 | [ELSA-2022-0899](https://patchblox.com/security/data/fix/linux/elsa-2022-0899.md) | Mar 16, 2022 |
| Linux | python3-libxml2-debuginfo amzn 2023 | 2.10.3-2.amzn2023.0.1 | [ALAS2023-2023-096](https://patchblox.com/security/data/fix/linux/alas2023-2023-096.md) | Feb 17, 2023 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
