cve.bz

CVE-2022-2309 NULL Pointer Dereference

7.5 highExploit referenceEPSS 2.4%Fix available

High (7.5). EPSS 2.4% estimated probability of exploitation activity in the next 30 days. Fixed in lxml 4.9.1.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
2.4% (unchanged from 2.4% a week ago; 2.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 85th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-2309 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-2309?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-2309?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-2309 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
lxml/lxmlbefore 4.9.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wrxv-2j5q-m38wPyPIlxml<4.9.14.9.1
PYSEC-2022-230PyPIlxml<4.9.14.9.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libxml22.9.10+dfsg-6.7+deb11u5DLA-3878-1
Debian12libxml22.9.14+dfsg-1.3~deb12u1DEBIAN-CVE-2022-2309
Debian12, 13, 14lxml4.9.1-1DEBIAN-CVE-2022-2309
Debian13, 14libxml22.9.14+dfsg-1.3DEBIAN-CVE-2022-2309
Ubuntu18.04:LTSlibxml22.9.4+dfsg1-6.1ubuntu1.8USN-5760-1
Ubuntu20.04:LTSlibxml22.9.10+dfsg-5ubuntu0.20.04.5UBUNTU-CVE-2022-2309 USN-5760-1
Ubuntu22.04:LTSlibxml22.9.13+dfsg-1ubuntu0.2UBUNTU-CVE-2022-2309 USN-5760-1
Ubuntu22.04:LTS, Pro:14.04:LTS, Pro:16.04:LTS and 2 morelxmlno fix listedUBUNTU-CVE-2022-2309
Red Hatenterprise_linux:9::appstreampython-lxml, python3-lxml, python3-lxml-debuginfo and 1 more0:4.6.5-3.el9RHSA-2022:8226
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 9 morepython-lxml4.7.1-150200.3.10.1SUSE-SU-2022:2908-1
SUSELinux Enterprise Module for Public Cloud 15python-lxml4.7.1-150100.6.6.1SUSE-SU-2022:2878-1
openSUSELeap 15.3, Leap 15.4python-lxml4.7.1-150200.3.10.1SUSE-SU-2022:2908-1
openSUSETumbleweedlibxml22.10.1-1.1openSUSE-SU-2024:12290-1
AlmaLinux9python3-lxml4.6.5-3.el9ALSA-2022:8226
Rocky Linux9python-lxml0:4.6.5-3.el9RLSA-2022:8226
Alpinev3.13, v3.14, v3.15 and 1 morelibxml22.9.14-r1ALPINE-CVE-2022-2309
Alpinev3.17, v3.18, v3.19 and 5 morelibxml22.10.0-r0ALPINE-CVE-2022-2309
Alpinev3.17, v3.18, v3.19 and 5 morepy3-lxml4.9.2-r0ALPINE-CVE-2022-2309
Azure Linux2libxml22.10.0-1AZL-10058
Azure Linux2python-lxml4.9.1-1AZL-10059

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9python-lxml-0:4.6.5-3.el9Fixed 2022-11-15RHSA-2022:8226
Red Hat Enterprise Linux 8python38:3.8/python-lxmlNot affected
Red Hat Enterprise Linux 8python39:3.9/python-lxmlNot affected
Red Hat Enterprise Linux 8python-lxmlNot affected
Red Hat Enterprise Linux 9inkscape:flatpak/python-lxmlAffected
Red Hat Software Collectionsrh-python38-python-lxmlNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-2309.

References

Check your stackJSON