CVE-2022-2309
published medium CVSS 3.0 · 5.3NULL Pointer Dereference in lxml/lxml
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| lxml | — | lxml/lxmlunspecified to < 4.9.1 | Affected | Not stated | @huntrdev |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-034 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 9 | python3-lxml | Advisory build | 4.6.5-3.el9 | ALSA-2022:8226 |
| Alpine Linux | edge | libxml2 | Fixed | 2.10.0-r0 | Package fix record |
| Debian | bullseye | libxml2 | Advisory build | 2.9.10+dfsg-6.7+deb11u5 | DLA-3878-1 |
| Oracle Linux | 9 | python3-lxmlaarch64 | Advisory build | 0:4.6.5-3.el9 | ELSA-2022-8226 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-9 | python-lxmlsrc | Advisory build | 4.6.5-3.el9 | RHSA-2022:8226 |
| SUSE / openSUSE | SLE-15 | python3-lxmlaarch64 | Advisory build | 4.7.1-150100.6.6.1 | SUSE-SU-2022:2878-1 |
| Alpine Linux | edge | py3-lxml | Fixed | 4.9.2-r0 | Package fix record |
| Alpine Linux | v3.13 | libxml2 | Fixed | 2.9.14-r1 | Package fix record |
| Alpine Linux | v3.14 | libxml2 | Fixed | 2.9.14-r1 | Package fix record |
| Alpine Linux | v3.15 | libxml2 | Fixed | 2.9.14-r1 | Package fix record |
| Alpine Linux | v3.16 | libxml2 | Fixed | 2.9.14-r1 | Package fix record |
| Alpine Linux | v3.17 | libxml2 | Fixed | 2.10.0-r0 | Package fix record |
| Alpine Linux | v3.17 | py3-lxml | Fixed | 4.9.2-r0 | Package fix record |
| Alpine Linux | v3.18 | libxml2 | Fixed | 2.10.0-r0 | Package fix record |
| Alpine Linux | v3.18 | py3-lxml | Fixed | 4.9.2-r0 | Package fix record |
| Alpine Linux | v3.19 | libxml2 | Fixed | 2.10.0-r0 | Package fix record |
| Alpine Linux | v3.19 | py3-lxml | Fixed | 4.9.2-r0 | Package fix record |
| Alpine Linux | v3.20 | libxml2 | Fixed | 2.10.0-r0 | Package fix record |
| Alpine Linux | v3.20 | py3-lxml | Fixed | 4.9.2-r0 | Package fix record |
| Alpine Linux | v3.21 | libxml2 | Fixed | 2.10.0-r0 | Package fix record |
| Alpine Linux | v3.21 | py3-lxml | Fixed | 4.9.2-r0 | Package fix record |
| Alpine Linux | v3.22 | libxml2 | Fixed | 2.10.0-r0 | Package fix record |
| Alpine Linux | v3.22 | py3-lxml | Fixed | 4.9.2-r0 | Package fix record |
| Alpine Linux | v3.23 | libxml2 | Fixed | 2.10.0-r0 | Package fix record |
| Alpine Linux | v3.23 | py3-lxml | Fixed | 4.9.2-r0 | Package fix record |
| Alpine Linux | v3.24 | libxml2 | Fixed | 2.10.0-r0 | Package fix record |
| Alpine Linux | v3.24 | py3-lxml | Fixed | 4.9.2-r0 | Package fix record |
| Oracle Linux | 9 | python3-lxmlx86_64 | Advisory build | 0:4.6.5-3.el9 | ELSA-2022-8226 |
| Red Hat Enterprise Linux | RHEL-9 | python-lxml-debugsourceaarch64 | Advisory build | 4.6.5-3.el9 | RHSA-2022:8226 |
| Red Hat Enterprise Linux | RHEL-9 | python-lxml-debugsourceppc64le | Advisory build | 4.6.5-3.el9 | RHSA-2022:8226 |
| Red Hat Enterprise Linux | RHEL-9 | python-lxml-debugsources390x | Advisory build | 4.6.5-3.el9 | RHSA-2022:8226 |
| Red Hat Enterprise Linux | RHEL-9 | python-lxml-debugsourcex86_64 | Advisory build | 4.6.5-3.el9 | RHSA-2022:8226 |
| Red Hat Enterprise Linux | RHEL-9 | python3-lxmlaarch64 | Advisory build | 4.6.5-3.el9 | RHSA-2022:8226 |
| Red Hat Enterprise Linux | RHEL-9 | python3-lxmlppc64le | Advisory build | 4.6.5-3.el9 | RHSA-2022:8226 |
| Red Hat Enterprise Linux | RHEL-9 | python3-lxmls390x | Advisory build | 4.6.5-3.el9 | RHSA-2022:8226 |
| Red Hat Enterprise Linux | RHEL-9 | python3-lxmlx86_64 | Advisory build | 4.6.5-3.el9 | RHSA-2022:8226 |
| Red Hat Enterprise Linux | RHEL-9 | python3-lxml-debuginfoaarch64 | Advisory build | 4.6.5-3.el9 | RHSA-2022:8226 |
| Red Hat Enterprise Linux | RHEL-9 | python3-lxml-debuginfoppc64le | Advisory build | 4.6.5-3.el9 | RHSA-2022:8226 |
| Red Hat Enterprise Linux | RHEL-9 | python3-lxml-debuginfos390x | Advisory build | 4.6.5-3.el9 | RHSA-2022:8226 |
| Red Hat Enterprise Linux | RHEL-9 | python3-lxml-debuginfox86_64 | Advisory build | 4.6.5-3.el9 | RHSA-2022:8226 |
| SUSE / openSUSE | SLE-15 | python3-lxmlppc64le | Advisory build | 4.7.1-150100.6.6.1 | SUSE-SU-2022:2878-1 |
| SUSE / openSUSE | SLE-15 | python3-lxmls390x | Advisory build | 4.7.1-150100.6.6.1 | SUSE-SU-2022:2878-1 |
| SUSE / openSUSE | SLE-15 | python3-lxmlx86_64 | Advisory build | 4.7.1-150100.6.6.1 | SUSE-SU-2022:2878-1 |
| SUSE / openSUSE | SLE-15 | python3-lxml-develaarch64 | Advisory build | 4.7.1-150100.6.6.1 | SUSE-SU-2022:2878-1 |
| SUSE / openSUSE | SLE-15 | python3-lxml-develppc64le | Advisory build | 4.7.1-150100.6.6.1 | SUSE-SU-2022:2878-1 |
| SUSE / openSUSE | SLE-15 | python3-lxml-devels390x | Advisory build | 4.7.1-150100.6.6.1 | SUSE-SU-2022:2878-1 |
| SUSE / openSUSE | SLE-15 | python3-lxml-develx86_64 | Advisory build | 4.7.1-150100.6.6.1 | SUSE-SU-2022:2878-1 |
| SUSE / openSUSE | SLE-15 | python3-lxml-docnoarch | Advisory build | 4.7.1-150100.6.6.1 | SUSE-SU-2022:2878-1 |
| SUSE / openSUSE | SLE-15-SP2 | python2-lxmlaarch64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP2 | python2-lxmlppc64le | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP2 | python2-lxmls390x | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP2 | python2-lxmlx86_64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP2 | python2-lxml-develaarch64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP2 | python2-lxml-develppc64le | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP2 | python2-lxml-devels390x | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP2 | python2-lxml-develx86_64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-lxmlaarch64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-lxmlppc64le | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-lxmls390x | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-lxmlx86_64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-lxml-develaarch64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-lxml-develppc64le | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-lxml-devels390x | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-lxml-develx86_64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-lxmlaarch64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-lxmlppc64le | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-lxmls390x | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-lxmlx86_64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-lxml-develaarch64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-lxml-develppc64le | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-lxml-devels390x | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-lxml-develx86_64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-lxmlaarch64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-lxmlppc64le | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-lxmls390x | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-lxmlx86_64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-lxml-develaarch64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-lxml-develppc64le | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-lxml-devels390x | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-lxml-develx86_64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-2-SP3 | python2-lxmlaarch64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-2-SP3 | python2-lxmlppc64le | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-2-SP3 | python2-lxmls390x | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-2-SP3 | python2-lxmlx86_64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-2-SP3 | python2-lxml-develaarch64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-2-SP3 | python2-lxml-develppc64le | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-2-SP3 | python2-lxml-devels390x | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | SLE-2-SP3 | python2-lxml-develx86_64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-lxmlaarch64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-lxmlppc64le | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-lxmls390x | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-lxmlx86_64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-lxml-develaarch64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-lxml-develppc64le | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-lxml-devels390x | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-lxml-develx86_64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-lxmlaarch64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-lxmlppc64le | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-lxmls390x | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-lxmlx86_64 | Advisory build | 4.7.1-150200.3.10.1 | SUSE-SU-2022:2908-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- @huntrdev · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| lxml | lxml/lxml | unspecified to < 4.9.1 (affected · custom) | @huntrdev · cna |
Weaknesses
1- CWE-476 CWE-476 NULL Pointer Dereference
References
7- https://github.com/lxml/lxml/commit/86368e9cf70a0ad23cccd5ee32de847149af0c6f
- https://huntr.dev/bounties/8264e74f-edda-4c40-9956-49de635105ba
- https://lists.debian.org/debian-lts-announce/2024/09/msg00021.html
- FEDORA-2022-ed17f59c1d https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HGYC6L7ENH5VEGN3YWFBYMGKX6WNS7HZ/
- FEDORA-2022-ed0eeb6a20 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/URHHSIBTPTALXMECRLAC2EVDNAFSR5NO/
- GLSA-202208-06 https://security.gentoo.org/glsa/202208-06
- https://security.netapp.com/advisory/ntap-20220915-0006/
Provider assertions
2@huntrdev · cna
NULL Pointer Dereference in lxml/lxml
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 320b821faa37133200b52f4da5636b9241ddb2c6b015377e34fe1252bc5595ab
- Ingested
- 23 Sep 2026, 08:00:01 UTC
- Source record
- Official CVE record