CVE-2022-2309
published 2022-07-05CVE-2022-2309: 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…
PriorityP337high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
1.97%
77.9th percentile
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.
Affected
22 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | libxml2 | < libxml2 2.9.14+dfsg-1.3~deb12u1 (bookworm) | libxml2 2.9.14+dfsg-1.3~deb12u1 (bookworm) |
| debian | lxml | < libxml2 2.9.14+dfsg-1.3~deb12u1 (bookworm) | libxml2 2.9.14+dfsg-1.3~deb12u1 (bookworm) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| lxml | lxml | < 4.9.1 | 4.9.1 |
| lxml | lxml | >= 0 < 4.9.1-1 | 4.9.1-1 |
| lxml | lxml | >= 0 < 4.9.1-1 | 4.9.1-1 |
| lxml | lxml | >= 0 < 4.9.1-1 | 4.9.1-1 |
| lxml | lxml | >= 0 < 4.9.1 | 4.9.1 |
| lxml | lxml_lxml | >= unspecified < 4.9.1 | 4.9.1 |
| msrc | cbl2_libxml2_2.10.0-1_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_python-lxml_4.9.1-1_on_cbl_mariner_2.0 | — | — |
| msrc | cm1_libxml2_2.9.14-2_on_cbl_mariner_1.0 | — | — |
| msrc | cm1_python-lxml_4.7.1-2_on_cbl_mariner_1.0 | — | — |
| nokogiri | nokogiri | >= 0 < 1.13.9 | 1.13.9 |
| xmlsoft | libxml2 | >= 0 < 2.9.10+dfsg-6.7+deb11u5 | 2.9.10+dfsg-6.7+deb11u5 |
| xmlsoft | libxml2 | >= 0 < 2.9.14+dfsg-1.3~deb12u1 | 2.9.14+dfsg-1.3~deb12u1 |
| xmlsoft | libxml2 | >= 0 < 2.9.14+dfsg-1.3 | 2.9.14+dfsg-1.3 |
| xmlsoft | libxml2 | >= 0 < 2.9.14+dfsg-1.3 | 2.9.14+dfsg-1.3 |
| xmlsoft | libxml2 | >= 0 < 2.9.4+dfsg1-6.1ubuntu1.8 | 2.9.4+dfsg1-6.1ubuntu1.8 |
| xmlsoft | libxml2 | >= 0 < 2.9.10+dfsg-5ubuntu0.20.04.5 | 2.9.10+dfsg-5ubuntu0.20.04.5 |
| xmlsoft | libxml2 | >= 0 < 2.9.13+dfsg-1ubuntu0.2 | 2.9.13+dfsg-1ubuntu0.2 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv3.05.3MEDIUMCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
ghsa7.5HIGH
osv7.5HIGH
vendor_debian7.5HIGH
vendor_msrc7.5HIGH
vendor_redhat7.5HIGH
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
libxml2 vulnerabilities
osv·2022-12-05·CVSS 7.5
CVE-2022-2309 [HIGH] libxml2 vulnerabilities
libxml2 vulnerabilities
It was discovered that libxml2 incorrectly handled certain XML files.
An attacker could possibly use this issue to cause a crash.
(CVE-2022-2309)
It was discovered that libxml2 incorrectly handled certain XML files.
An attacker could possibly use this issue to expose sensitive information
or cause a crash. (CVE-2022-40303)
It was discovered that libxml2 incorrectly handled certain XML files.
An attacker could possibly use this issue to execute arbitrary code.
(CVE-2022-40304)
OSV
Update bundled libxml2 to v2.10.3 to resolve multiple CVEs
osv·2022-10-18·CVSS 7.5
CVE-2022-2309 [HIGH] Update bundled libxml2 to v2.10.3 to resolve multiple CVEs
Update bundled libxml2 to v2.10.3 to resolve multiple CVEs
### Summary
Nokogiri v1.13.9 upgrades the packaged version of its dependency libxml2 to [v2.10.3](https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.10.3) from v2.9.14.
libxml2 v2.10.3 addresses the following known vulnerabilities:
- [CVE-2022-2309](https://nvd.nist.gov/vuln/detail/CVE-2022-2309)
- [CVE-2022-40304](https://nvd.nist.gov/vuln/detail/CVE-2022-40304)
- [CVE-2022-40303](https://nvd.nist.gov/vuln/detail/CVE-2022-40303)
Please note that this advisory only applies to the CRuby implementation of Nokogiri `= 1.13.9`.
Users who are unable to upgrade Nokogiri may also choose a more complicated mitigation: compile and link Nokogiri against external libraries libxml2 `>= 2.10.3` which will also address these same issues.
GHSA
Update bundled libxml2 to v2.10.3 to resolve multiple CVEs
ghsa·2022-10-18·CVSS 7.5
CVE-2022-2309 [HIGH] Update bundled libxml2 to v2.10.3 to resolve multiple CVEs
Update bundled libxml2 to v2.10.3 to resolve multiple CVEs
### Summary
Nokogiri v1.13.9 upgrades the packaged version of its dependency libxml2 to [v2.10.3](https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.10.3) from v2.9.14.
libxml2 v2.10.3 addresses the following known vulnerabilities:
- [CVE-2022-2309](https://nvd.nist.gov/vuln/detail/CVE-2022-2309)
- [CVE-2022-40304](https://nvd.nist.gov/vuln/detail/CVE-2022-40304)
- [CVE-2022-40303](https://nvd.nist.gov/vuln/detail/CVE-2022-40303)
Please note that this advisory only applies to the CRuby implementation of Nokogiri `= 1.13.9`.
Users who are unable to upgrade Nokogiri may also choose a more complicated mitigation: compile and link Nokogiri against external libraries libxml2 `>= 2.10.3` which will also address these same issues.
OSV
lxml NULL Pointer Dereference allows attackers to cause a denial of service
osv·2022-07-06
CVE-2022-2309 [MEDIUM] lxml NULL Pointer Dereference allows attackers to cause a denial of service
lxml NULL Pointer Dereference allows attackers to cause a denial of service
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 untru
GHSA
lxml NULL Pointer Dereference allows attackers to cause a denial of service
ghsa·2022-07-06
CVE-2022-2309 [MEDIUM] CWE-476 lxml NULL Pointer Dereference allows attackers to cause a denial of service
lxml NULL Pointer Dereference allows attackers to cause a denial of service
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 untru
OSV
CVE-2022-2309: NULL Pointer Dereference allows attackers to cause a denial of service (or application crash)
osv·2022-07-05·CVSS 7.5
CVE-2022-2309 [HIGH] CVE-2022-2309: NULL Pointer Dereference allows attackers to cause a denial of service (or application crash)
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
Ubuntu
libxml2 vulnerabilities
vendor_ubuntu·2023-06-07·CVSS 7.5
CVE-2022-2309 [HIGH] libxml2 vulnerabilities
Title: libxml2 vulnerabilities
Summary: Several security issues were fixed in libxml2.
USN-6028-1 fixed vulnerabilities in libxml2. This update provides the
corresponding updates for Ubuntu 23.04.
Original advisory details:
It was discovered that libxml2 incorrectly handled certain XML files.
An attacker could possibly use this issue to cause a crash.
(CVE-2022-2309)
It was discovered that lixml2 incorrectly handled certain XML files.
An attacker could possibly use this issue to cause a crash or execute
arbitrary code. (CVE-2023-28484)
It was discovered that libxml2 incorrectly handled certain XML files.
An attacker could possibly use this issue to cause a crash.
(CVE-2023-29469)
Instructions: In general, a standard system update will make all the necessary changes.
Ubuntu
libxml2 vulnerabilities
vendor_ubuntu·2022-12-05·CVSS 7.5
CVE-2022-40304 [HIGH] libxml2 vulnerabilities
Title: libxml2 vulnerabilities
Summary: Several security issues were fixed in libxml2.
It was discovered that libxml2 incorrectly handled certain XML files.
An attacker could possibly use this issue to cause a crash.
(CVE-2022-2309)
It was discovered that libxml2 incorrectly handled certain XML files.
An attacker could possibly use this issue to expose sensitive information
or cause a crash. (CVE-2022-40303)
It was discovered that libxml2 incorrectly handled certain XML files.
An attacker could possibly use this issue to execute arbitrary code.
(CVE-2022-40304)
Instructions: In general, a standard system update will make all the necessary changes.
Microsoft
NULL Pointer Dereference in lxml/lxml
vendor_msrc·2022-07-12·CVSS 7.5
CVE-2022-2309 [HIGH] CWE-476 NULL Pointer Dereference in lxml/lxml
NULL Pointer Dereference in lxml/lxml
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
@huntrdev: @huntrdev
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https://learn.microsoft
Red Hat
lxml: NULL Pointer Dereference in lxml
vendor_redhat·2022-07-05·CVSS 7.5
CVE-2022-2309 [HIGH] CWE-476 lxml: NULL Pointer Dereference in lxml
lxml: NULL Pointer Dereference in lxml
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
Debian
CVE-2022-2309: libxml2 - NULL Pointer Dereference allows attackers to cause a denial of service (or appli...
vendor_debian·2022·CVSS 7.5
CVE-2022-2309 [HIGH] CVE-2022-2309: libxml2 - NULL Pointer Dereference allows attackers to cause a denial of service (or appli...
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
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/lxml/lxml/commit/86368e9cf70a0ad23cccd5ee32de847149af0c6fhttps://huntr.dev/bounties/8264e74f-edda-4c40-9956-49de635105bahttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HGYC6L7ENH5VEGN3YWFBYMGKX6WNS7HZ/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/URHHSIBTPTALXMECRLAC2EVDNAFSR5NO/https://security.gentoo.org/glsa/202208-06https://security.netapp.com/advisory/ntap-20220915-0006/https://github.com/lxml/lxml/commit/86368e9cf70a0ad23cccd5ee32de847149af0c6fhttps://huntr.dev/bounties/8264e74f-edda-4c40-9956-49de635105bahttps://lists.debian.org/debian-lts-announce/2024/09/msg00021.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HGYC6L7ENH5VEGN3YWFBYMGKX6WNS7HZ/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/URHHSIBTPTALXMECRLAC2EVDNAFSR5NO/https://security.gentoo.org/glsa/202208-06https://security.netapp.com/advisory/ntap-20220915-0006/
2022-07-05
Published