VDB

ALPINE-CVE-2022-2309

ALPINE-CVE-2022-2309 PUBLISHED CVSS 7.5 HIGH

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.

Risk Scores

CVSS v3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected Products

VendorProductVersions
Alpine:v3.20py3-lxml4.9.1-r0, 4.9.0-r0, 4.8.0-r0
Alpine:v3.20libxml22.9.12-r3, 2.9.2-r1, 2.9.2-r0
Alpine:v3.14libxml22.9.8-r0, 2.9.7-r1, 2.9.9-r1
Alpine:v3.22libxml22.9.12-r3, 2.7.6-r2, 2.7.6-r1
Alpine:v3.22py3-lxml3.1.0-r0, 4.9.1-r1, 4.9.1-r0
Alpine:v3.23py3-lxml2.3.5-r0, 4.2.4-r0, 0
Alpine:v3.16libxml22.7.2-r0, 0, 2.7.2-r0
Alpine:v3.19libxml22.8.0-r0, 2.7.8-r8, 2.7.8-r7
Alpine:v3.18py3-lxml4.9.1-r1, 4.7.1-r1, 0
Alpine:v3.21py3-lxml4.7.1-r0, 4.7.1-r1, 4.8.0-r0
Alpine:v3.17libxml22.9.5-r0, 2.7.6-r3, 2.7.6-r2
Alpine:v3.21libxml22.9.1-r0, 2.9.7-r1, 2.9.10-r6
Alpine:v3.19py3-lxml3.7.2-r1, 3.7.2-r0, 3.7.1-r0
Alpine:v3.13libxml22.9.9-r3, 2.9.9-r2, 2.9.9-r1
Alpine:v3.23libxml22.9.10-r0, 2.7.3-r0, 2.7.2-r0
Alpine:v3.18libxml22.9.14-r0, 2.9.12-r3, 2.7.8-r7
Alpine:v3.17py3-lxml2.2.8-r1, 4.9.0-r0, 4.8.0-r0
Alpine:v3.15libxml22.9.10-r4, 0, 2.7.2-r0

Timeline

  • Jul 5, 2022 CVE Published
  • Dec 3, 2025 CVE Updated
  • Apr 30, 2026 Distribution Patch
Open in Interactive Console →
$ Console Community · 100/wk Open console ›