CVE-2022-2309
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
lxmlPyPI | < 4.9.1 | 4.9.1 |
Affected products
22cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
- ghsa-coords18 versionspkg:pypi/lxmlpkg:rpm/almalinux/python3-lxmlpkg:rpm/opensuse/libxml2&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python-lxml&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/python-lxml&distro=openSUSE%20Leap%2015.4pkg:rpm/suse/python-lxml&distro=SUSE%20Enterprise%20Storage%207pkg:rpm/suse/python-lxml&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-ESPOSpkg:rpm/suse/python-lxml&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/python-lxml&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3pkg:rpm/suse/python-lxml&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4pkg:rpm/suse/python-lxml&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015pkg:rpm/suse/python-lxml&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%202%2015%20SP3pkg:rpm/suse/python-lxml&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-BCLpkg:rpm/suse/python-lxml&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/python-lxml&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/python-lxml&distro=SUSE%20Manager%20Proxy%204.1pkg:rpm/suse/python-lxml&distro=SUSE%20Manager%20Retail%20Branch%20Server%204.1pkg:rpm/suse/python-lxml&distro=SUSE%20Manager%20Server%204.1
< 4.9.1+ 17 more
- (no CPE)range: < 4.9.1
- (no CPE)range: < 4.6.5-3.el9
- (no CPE)range: < 2.10.1-1.1
- (no CPE)range: < 4.7.1-150200.3.10.1
- (no CPE)range: < 4.7.1-150200.3.10.1
- (no CPE)range: < 4.7.1-150200.3.10.1
- (no CPE)range: < 4.7.1-150200.3.10.1
- (no CPE)range: < 4.7.1-150200.3.10.1
- (no CPE)range: < 4.7.1-150200.3.10.1
- (no CPE)range: < 4.7.1-150200.3.10.1
- (no CPE)range: < 4.7.1-150100.6.6.1
- (no CPE)range: < 4.7.1-150200.3.10.1
- (no CPE)range: < 4.7.1-150200.3.10.1
- (no CPE)range: < 4.7.1-150200.3.10.1
- (no CPE)range: < 4.7.1-150200.3.10.1
- (no CPE)range: < 4.7.1-150200.3.10.1
- (no CPE)range: < 4.7.1-150200.3.10.1
- (no CPE)range: < 4.7.1-150200.3.10.1
Patches
Vulnerability mechanics
References
16- github.com/lxml/lxml/commit/86368e9cf70a0ad23cccd5ee32de847149af0c6fnvdPatchThird Party AdvisoryWEB
- huntr.dev/bounties/8264e74f-edda-4c40-9956-49de635105banvdExploitIssue TrackingPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-wrxv-2j5q-m38wghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-2309ghsaADVISORY
- security.gentoo.org/glsa/202208-06nvdThird Party AdvisoryWEB
- security.netapp.com/advisory/ntap-20220915-0006/nvdThird Party Advisory
- github.com/lxml/lxml/blob/master/CHANGES.txtghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/lxml/PYSEC-2022-230.yamlghsaWEB
- lists.debian.org/debian-lts-announce/2024/09/msg00021.htmlnvdWEB
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HGYC6L7ENH5VEGN3YWFBYMGKX6WNS7HZghsaWEB
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/URHHSIBTPTALXMECRLAC2EVDNAFSR5NOghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/HGYC6L7ENH5VEGN3YWFBYMGKX6WNS7HZghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/URHHSIBTPTALXMECRLAC2EVDNAFSR5NOghsaWEB
- security.netapp.com/advisory/ntap-20220915-0006ghsaWEB
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HGYC6L7ENH5VEGN3YWFBYMGKX6WNS7HZ/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/URHHSIBTPTALXMECRLAC2EVDNAFSR5NO/nvd
News mentions
0No linked articles in our index yet.