# CVE-2022-43680: Use after free in n/a

> A use-after-free vulnerability in libexpat allows attackers to cause denial of service or potentially execute code via crafted XML input.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 24 Oct 2022
- **Updated:** 14 Oct 2026
- **Also known as:** A-255449293, ALPINE-CVE-2022-43680, ALSA-2023:0103, ALSA-2023:0337, ASB-A-255449293, AZL-11316, CLEANSTART-2026-BO53666, CLSA-2022-1667412057, CLSA-2022-1667412749, CLSA-2022-1667493762, CLSA-2022-1667494718, CLSA-2022-1667495485, DEBIAN-CVE-2022-43680, DLA-3165-1, DSA-5266-1, GHSA-4hjv-8mmr-jxwv, JLSEC-2025-58, MGASA-2022-0409, OESA-2022-2037, RHSA-2023:0103, RHSA-2023:0337, RHSA-2024:0421, RLSA-2023:0103, RLSA-2023:0337, SUSE-SU-2022:3874-1, SUSE-SU-2022:3884-1, SUSE-SU-2022:3912-1, UBUNTU-CVE-2022-43680, USN-5638-3, openSUSE-SU-2024:12449-1

## What is CVE-2022-43680?

CVE-2022-43680 is a high-severity use after free vulnerability in Debian Debian Linux, published on 24 Oct 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

In libexpat through 2.4.9, there is a use-after free caused by overeager destruction of a shared DTD in XML_ExternalEntityParserCreate in out-of-memory situations.

Weakness: CWE-416 (Use After Free)

## Which versions are affected by CVE-2022-43680?

It affects 12 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `expat` | AlmaLinux:8 | All versions | 2.2.5-10.el8_7.1 |
| `expat-devel` | AlmaLinux:8 | All versions | 2.2.5-10.el8_7.1 |
| `expat` | AlmaLinux:9 | All versions | 2.4.9-1.el9_1.1 |
| `expat-devel` | AlmaLinux:9 | All versions | 2.4.9-1.el9_1.1 |
| `expat` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.2.5-10.el8_7.1 |
| `expat-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.2.5-10.el8_7.1 |
| `expat-debugsource` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.2.5-10.el8_7.1 |
| `expat-devel` | Red Hat:enterprise_linux:8::baseos | All versions | 0:2.2.5-10.el8_7.1 |
| `expat-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.9-1.el9_1.1 |
| `expat-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.9-1.el9_1.1 |
| `expat-devel` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.4.9-1.el9_1.1 |
| `expat` | Red Hat:enterprise_linux:9::baseos | All versions | 0:2.4.9-1.el9_1.1 |
| `expat-debuginfo` | Red Hat:enterprise_linux:9::baseos | All versions | 0:2.4.9-1.el9_1.1 |
| `expat-debugsource` | Red Hat:enterprise_linux:9::baseos | All versions | 0:2.4.9-1.el9_1.1 |
| `expat` | Red Hat:rhel_eus:8.6::baseos | All versions | 0:2.2.5-8.el8_6.4 |
| `expat-debuginfo` | Red Hat:rhel_eus:8.6::baseos | All versions | 0:2.2.5-8.el8_6.4 |
| `expat-debugsource` | Red Hat:rhel_eus:8.6::baseos | All versions | 0:2.2.5-8.el8_6.4 |
| `expat-devel` | Red Hat:rhel_eus:8.6::baseos | All versions | 0:2.2.5-8.el8_6.4 |
| `expat` | Rocky Linux:8 | All versions | 0:2.2.5-10.el8_7.1 |
| `expat` | Rocky Linux:9 | All versions | 0:2.4.9-1.el9_1.1 |
| `expat` | SUSE:Enterprise Storage 6 | All versions | 2.2.5-150000.3.25.1 |
| `expat` | SUSE:Enterprise Storage 7 | All versions | 2.2.5-150000.3.25.1 |
| `expat` | SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | All versions | 2.2.5-150000.3.25.1 |
| `expat` | SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 2.2.5-150000.3.25.1 |
| `expat` | SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS | All versions | 2.2.5-150000.3.25.1 |
| `expat` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 2.2.5-150000.3.25.1 |
| `expat` | SUSE:Linux Enterprise High Performance Computing 15-ESPOS | All versions | 2.2.5-150000.3.25.1 |
| `expat` | SUSE:Linux Enterprise High Performance Computing 15-LTSS | All versions | 2.2.5-150000.3.25.1 |
| `expat` | SUSE:Linux Enterprise Micro 5.1 | All versions | 2.2.5-150000.3.25.1 |
| `expat` | SUSE:Linux Enterprise Micro 5.2 | All versions | 2.2.5-150000.3.25.1 |
| `expat` | SUSE:Linux Enterprise Micro 5.3 | All versions | 2.4.4-150400.3.12.1 |
| `expat` | SUSE:Linux Enterprise Module for Basesystem 15 SP3 | All versions | 2.2.5-150000.3.25.1 |
| `expat` | SUSE:Linux Enterprise Module for Basesystem 15 SP4 | All versions | 2.4.4-150400.3.12.1 |
| `expat` | SUSE:Linux Enterprise Server 12 SP2-BCL | All versions | 2.1.0-21.28.1 |
| `expat` | SUSE:Linux Enterprise Server 12 SP3-BCL | All versions | 2.1.0-21.28.1 |
| `expat` | SUSE:Linux Enterprise Server 12 SP4-LTSS | All versions | 2.1.0-21.28.1 |
| `expat` | SUSE:Linux Enterprise Server 12 SP5 | All versions | 2.1.0-21.28.1 |
| `expat` | SUSE:Linux Enterprise Server 15 SP1-BCL | All versions | 2.2.5-150000.3.25.1 |
| `expat` | SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 2.2.5-150000.3.25.1 |
| `expat` | SUSE:Linux Enterprise Server 15 SP2-BCL | All versions | 2.2.5-150000.3.25.1 |

Products: Debian Debian Linux, Fedoraproject Fedora, Libexpat Project Libexpat, Netapp Active Iq Unified Manager, Netapp H300s Firmware, Netapp H410c Firmware, Netapp H410s Firmware, Netapp H500s Firmware, Netapp H700s Firmware, Netapp Hci Compute Node Firmware, Netapp Oncommand Workflow Automation, Netapp Solidfire \& Hci Management Node.

## How do I fix CVE-2022-43680?

Upgrade to a fixed version.

## Is CVE-2022-43680 being exploited?

There is no known exploitation of CVE-2022-43680 in the wild and no public exploit code.

Public exploit code:

- https://github.com/Trinadh465/external_expat-2.1.0_CVE-2022-43680 (github_poc): https://github.com/Trinadh465/external_expat-2.1.0_CVE-2022-43680
- https://github.com/nidhihcl/external_expat_2.1.0_CVE-2022-43680 (github_poc): https://github.com/nidhihcl/external_expat_2.1.0_CVE-2022-43680

## Other vulnerabilities in Debian Debian Linux

- [CVE-2015-3306](https://insights.sbomify.com/CVE-2015-3306/): ProFTPD Improper Access Control (critical 10.0, exploited in the wild)
- [CVE-2025-49113](https://insights.sbomify.com/CVE-2025-49113/): RoundCube Webmail Deserialization of Untrusted Data (critical 9.9, exploited in the wild)
- [CVE-2026-24061](https://insights.sbomify.com/CVE-2026-24061/): GNU InetUtils Argument Injection (critical 9.8, exploited in the wild)
- [CVE-2025-39682](https://insights.sbomify.com/CVE-2025-39682/): Linux Kernel Improper Check for Unusual or Exceptional Conditions (critical 9.8, exploited in the wild)
- [CVE-2024-9680](https://insights.sbomify.com/CVE-2024-9680/): Mozilla Firefox Use-After-Free (critical 9.8, exploited in the wild)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-43680 and fix it if it is affected.

What it is: CVE-2022-43680 is a high-severity use after free vulnerability in Debian Debian Linux, published on 24 Oct 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2022-43680 in the wild and no public exploit code.

Affected product: Debian Debian Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2022-43680/ (Markdown: https://insights.sbomify.com/CVE-2022-43680/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2022-43680
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-43680
- OSV: https://osv.dev/vulnerability/CVE-2022-43680

---
From sbomify Insights: https://insights.sbomify.com/CVE-2022-43680/
Summaries are generated and may contain mistakes; the official description above is the record.
