CVE-2022-2309
No exploitation reported by the sources we read.
- Published2022-07-05
- Fixed in4.9.1
- WeaknessCWE-476
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
NULL Pointer Dereference allows attackers to cause a denial of service (or application crash). This only applies when lxml is used together with libxml2 2.9.10 through 2.9.14. libxml2 2.9.9 and earlier are not affected. It allows triggering crashes through forged input data, given a vulnerable code sequence in the application. The vulnerability is caused by the iterwalk function (also used by the canonicalize function). Such code shouldn't be in wide-spread use, given that parsing + iterwalk would usually be replaced with the more efficient iterparse function. However, an XML converter that serialises to C14N would also be vulnerable, for example, and there are legitimate use cases for this code sequence. If untrusted input is received (also remotely) and processed via iterwalk function, a crash can be triggered.
Timeline
dates in UTC- 2022-07-0510:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.9 | < 4.9.1 | 4.9.1 | NVD · OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 36.x | = 36 | no fix published | NVD |
| 37.x | = 37 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- libxml2Ubuntu:22.04:LTSall versions · fixed in 2.9.13+dfsg-1ubuntu0.2
- libxml2Ubuntu:20.04:LTSall versions · fixed in 2.9.10+dfsg-5ubuntu0.20.04.5
- libxml2Ubuntu:18.04:LTSall versions · fixed in 2.9.4+dfsg1-6.1ubuntu1.8
- libxml2TuxCare:AlmaLinux:9.6all versions · fixed in 2.9.13-12.el9_6.tuxcare.els4and 3 other packages
- libxml2openSUSE:Tumbleweedall versions · fixed in 2.10.1-1.1
- libxml2openEuler:20.03-LTS-SP4all versions · fixed in 2.9.10-40.oe2003sp4
- libxml2openEuler:20.03-LTS-SP1all versions · fixed in 2.9.10-38.oe1
- libxml2Mageia:8all versions · fixed in 2.9.10-7.7.mga8
59 more package ranges on OSV.dev
Vendor advisories
lxml: NULL Pointer Dereference in lxml
python-lxml.src (inkscape:flatpak) as a component of Red Hat Enterprise Linux 9 · python3-lxml (inkscape:flatpak) as a component of Red Hat Enterprise Linux 9
Red Hat Security Advisory: python-lxml security update
Fix
- Update Lxml to 4.9.1
- Vendor fix Red Hat Product Security RHSA-2022:8226 · 13 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- No fix available, says the vendor Red Hat Product Security CVE-2022-2309 · 2 productsAffected
Advisories and patches
- github.comPatch
- huntr.devPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-10
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.17.5read 2026-10-23
- CNACVSS 3.05.3known since 2026-10-23
- NVDCVSS 2.05read 2026-10-23
- CNAweakness (CWE)CWE-476known since 2026-10-23
- FIRST EPSSEPSS score2.4 %2026-11-09
- OSVaffected packages—
- GitHub AdvisoriesadvisoryMODERATE2022-07-06
Identifiers
- AZL-10058same flawAzure Linux · MIT
- AZL-10059same flawAzure Linux · MIT
- EUVD-2022-0148same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-wrxv-2j5q-m38wsame flawGitHub Advisory Database · CC-BY-4.0
- PYSEC-2022-230same flawPyPA Advisory Database · CC-BY-4.0
- ALSA-2022:8226advisory covering several CVEsAlmaLinux · MIT
- DLA-3878-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2022-0331advisory covering several CVEsMageia · LicenseRef-unstated
- MGASA-2023-0157advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2022-1790advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2024-1413advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2024-1414advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2024:12290-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2022:8226advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2022:8226advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2022:2878-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:2908-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-5760-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Published
- 2022-07-05
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-wrxv-2j5q-m38w
Frequently asked questions
What is CVE-2022-2309?
Is CVE-2022-2309 actively exploited?
What is the CVSS score for CVE-2022-2309?
Running lxml? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-wrxv-2j5q-m38w
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0