7.5

CVE-2022-2309: NULL Pointer Dereference in lxml/lxml

Modified
AliasesALPINE-CVE-2022-2309MGASA-2022-0331SUSE-SU-2022:2878-1
Published 05-07-2022Last modified 04-11-2025

Vulnerability summary

CVE-2022-2309 is a high (CVSS 7.5) NULL Pointer Dereference vulnerability in fedoraproject fedora. EPSS estimates a 2.45% chance of exploitation in the next 30 days, higher than 84.8% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
2.45%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 3 · Related 1

Timeline

  1. 05-07-2022
    PublishedVulnerability first disclosed.
  2. 04-11-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

11 scores · 7 sources · 4 versions

EPSS trend

Probability

2.45%

Chance of exploitation in the next 30 days

Percentile

85%

Versus all other CVEs

30-day change

No change 0.00 pp

From 2.45% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.dev)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Suse13 products
  • python-lxml&distro=SUSE Enterprise Storage 7< 4.7.1-150200.3.10.1
  • python-lxml&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS< 4.7.1-150200.3.10.1
  • python-lxml&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS< 4.7.1-150200.3.10.1
  • python-lxml&distro=SUSE Linux Enterprise Module for Basesystem 15 SP3< 4.7.1-150200.3.10.1
  • python-lxml&distro=SUSE Linux Enterprise Module for Basesystem 15 SP4< 4.7.1-150200.3.10.1
Redhat4 products
  • python-lxml< 0:4.6.5-3.el9
  • python-lxml-debugsource< 0:4.6.5-3.el9
  • python3-lxml< 0:4.6.5-3.el9
  • python3-lxml-debuginfo< 0:4.6.5-3.el9
Opensuse3 products
  • libxml2&distro=openSUSE Tumbleweed< 2.10.1-1.1
  • python-lxml&distro=openSUSE Leap 15.3< 4.7.1-150200.3.10.1
  • python-lxml&distro=openSUSE Leap 15.4< 4.7.1-150200.3.10.1
Alpine2 products
  • libxml2< 2.9.14-r1 | < 2.10.0-r0
  • py3-lxml< 4.9.2-r0
Debian2 products
  • libxml2< 2.9.14+dfsg-1.3~deb12u1 | < 2.9.14+dfsg-1.3
  • lxml< 4.9.1-1
Lxml2 products
Ubuntu2 products
  • libxml2< 2.9.10+dfsg-5ubuntu0.20.04.5 | < 2.9.13+dfsg-1ubuntu0.2
  • lxmlAll versions (No fix recorded)
Fedoraproject1 product
Mageia1 product
  • python-lxml< 4.9.1-1.mga8
PyPI1 product
  • lxml< 86368e9cf70a0ad23cccd5ee32de847149af0c6f | < 4.9.1

10 vendors · 31 products

References

38 links
Show all 38 references