CVE-2022-2309

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-2309
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-2309.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-2309
Aliases
Related
Published
2022-07-05T10:15:08Z
Modified
2024-09-11T04:42:09.429049Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Alpine:v3.13 / libxml2

Package

Name
libxml2
Purl
pkg:apk/alpine/libxml2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.14-r1

Affected versions

2.*

2.7.2-r0
2.7.3-r0
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.7-r0
2.7.7-r1
2.7.7-r2
2.7.7-r3
2.7.7-r4
2.7.8-r0
2.7.8-r1
2.7.8-r2
2.7.8-r4
2.7.8-r5
2.7.8-r6
2.7.8-r7
2.7.8-r8
2.8.0-r0
2.8.0-r1
2.9.0-r0
2.9.0-r1
2.9.0-r2
2.9.0-r3
2.9.1-r0
2.9.1-r1
2.9.1-r2
2.9.2-r0
2.9.2-r1
2.9.2-r2
2.9.3-r0
2.9.4-r0
2.9.4-r1
2.9.4-r2
2.9.4-r3
2.9.4-r4
2.9.5-r0
2.9.6-r0
2.9.6-r2
2.9.7-r0
2.9.7-r1
2.9.8-r0
2.9.8-r1
2.9.8-r2
2.9.9-r0
2.9.9-r1
2.9.9-r2
2.9.9-r3
2.9.10-r0
2.9.10-r1
2.9.10-r2
2.9.10-r3
2.9.10-r4
2.9.10-r5
2.9.10-r6
2.9.10-r7
2.9.11-r0
2.9.12-r0
2.9.13-r0
2.9.14-r0

Alpine:v3.14 / libxml2

Package

Name
libxml2
Purl
pkg:apk/alpine/libxml2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.14-r1

Affected versions

2.*

2.7.2-r0
2.7.3-r0
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.7-r0
2.7.7-r1
2.7.7-r2
2.7.7-r3
2.7.7-r4
2.7.8-r0
2.7.8-r1
2.7.8-r2
2.7.8-r4
2.7.8-r5
2.7.8-r6
2.7.8-r7
2.7.8-r8
2.8.0-r0
2.8.0-r1
2.9.0-r0
2.9.0-r1
2.9.0-r2
2.9.0-r3
2.9.1-r0
2.9.1-r1
2.9.1-r2
2.9.2-r0
2.9.2-r1
2.9.2-r2
2.9.3-r0
2.9.4-r0
2.9.4-r1
2.9.4-r2
2.9.4-r3
2.9.4-r4
2.9.5-r0
2.9.6-r0
2.9.6-r2
2.9.7-r0
2.9.7-r1
2.9.8-r0
2.9.8-r1
2.9.8-r2
2.9.9-r0
2.9.9-r1
2.9.9-r2
2.9.9-r3
2.9.10-r0
2.9.10-r1
2.9.10-r2
2.9.10-r3
2.9.10-r4
2.9.10-r5
2.9.10-r6
2.9.10-r7
2.9.12-r0
2.9.12-r1
2.9.13-r0
2.9.14-r0

Alpine:v3.15 / libxml2

Package

Name
libxml2
Purl
pkg:apk/alpine/libxml2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.14-r1

Affected versions

2.*

2.7.2-r0
2.7.3-r0
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.7-r0
2.7.7-r1
2.7.7-r2
2.7.7-r3
2.7.7-r4
2.7.8-r0
2.7.8-r1
2.7.8-r2
2.7.8-r4
2.7.8-r5
2.7.8-r6
2.7.8-r7
2.7.8-r8
2.8.0-r0
2.8.0-r1
2.9.0-r0
2.9.0-r1
2.9.0-r2
2.9.0-r3
2.9.1-r0
2.9.1-r1
2.9.1-r2
2.9.2-r0
2.9.2-r1
2.9.2-r2
2.9.3-r0
2.9.4-r0
2.9.4-r1
2.9.4-r2
2.9.4-r3
2.9.4-r4
2.9.5-r0
2.9.6-r0
2.9.6-r2
2.9.7-r0
2.9.7-r1
2.9.8-r0
2.9.8-r1
2.9.8-r2
2.9.9-r0
2.9.9-r1
2.9.9-r2
2.9.9-r3
2.9.10-r0
2.9.10-r1
2.9.10-r2
2.9.10-r3
2.9.10-r4
2.9.10-r5
2.9.10-r6
2.9.10-r7
2.9.12-r0
2.9.12-r1
2.9.12-r2
2.9.13-r0
2.9.14-r0

Alpine:v3.16 / libxml2

Package

Name
libxml2
Purl
pkg:apk/alpine/libxml2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.14-r1

Affected versions

2.*

2.7.2-r0
2.7.3-r0
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.7-r0
2.7.7-r1
2.7.7-r2
2.7.7-r3
2.7.7-r4
2.7.8-r0
2.7.8-r1
2.7.8-r2
2.7.8-r4
2.7.8-r5
2.7.8-r6
2.7.8-r7
2.7.8-r8
2.8.0-r0
2.8.0-r1
2.9.0-r0
2.9.0-r1
2.9.0-r2
2.9.0-r3
2.9.1-r0
2.9.1-r1
2.9.1-r2
2.9.2-r0
2.9.2-r1
2.9.2-r2
2.9.3-r0
2.9.4-r0
2.9.4-r1
2.9.4-r2
2.9.4-r3
2.9.4-r4
2.9.5-r0
2.9.6-r0
2.9.6-r2
2.9.7-r0
2.9.7-r1
2.9.8-r0
2.9.8-r1
2.9.8-r2
2.9.9-r0
2.9.9-r1
2.9.9-r2
2.9.9-r3
2.9.10-r0
2.9.10-r1
2.9.10-r2
2.9.10-r3
2.9.10-r4
2.9.10-r5
2.9.10-r6
2.9.10-r7
2.9.12-r0
2.9.12-r1
2.9.12-r2
2.9.12-r3
2.9.13-r0
2.9.14-r0

Alpine:v3.17 / libxml2

Package

Name
libxml2
Purl
pkg:apk/alpine/libxml2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.10.0-r0

Affected versions

2.*

2.7.2-r0
2.7.3-r0
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.7-r0
2.7.7-r1
2.7.7-r2
2.7.7-r3
2.7.7-r4
2.7.8-r0
2.7.8-r1
2.7.8-r2
2.7.8-r4
2.7.8-r5
2.7.8-r6
2.7.8-r7
2.7.8-r8
2.8.0-r0
2.8.0-r1
2.9.0-r0
2.9.0-r1
2.9.0-r2
2.9.0-r3
2.9.1-r0
2.9.1-r1
2.9.1-r2
2.9.2-r0
2.9.2-r1
2.9.2-r2
2.9.3-r0
2.9.4-r0
2.9.4-r1
2.9.4-r2
2.9.4-r3
2.9.4-r4
2.9.5-r0
2.9.6-r0
2.9.6-r2
2.9.7-r0
2.9.7-r1
2.9.8-r0
2.9.8-r1
2.9.8-r2
2.9.9-r0
2.9.9-r1
2.9.9-r2
2.9.9-r3
2.9.10-r0
2.9.10-r1
2.9.10-r2
2.9.10-r3
2.9.10-r4
2.9.10-r5
2.9.10-r6
2.9.10-r7
2.9.12-r0
2.9.12-r1
2.9.12-r2
2.9.12-r3
2.9.13-r0
2.9.14-r0
2.9.14-r1

Alpine:v3.17 / py3-lxml

Package

Name
py3-lxml
Purl
pkg:apk/alpine/py3-lxml?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.9.2-r0

Affected versions

2.*

2.2.6-r0
2.2.8-r0
2.2.8-r1
2.3.4-r1
2.3.5-r0

3.*

3.1.0-r0
3.2.3-r0
3.3.2-r0
3.4.0-r0
3.4.4-r0
3.5.0-r0
3.6.0-r0
3.6.0-r1
3.6.4-r0
3.7.1-r0
3.7.2-r0
3.7.2-r1
3.8.0-r0

4.*

4.0.0-r0
4.1.0-r0
4.1.0-r1
4.1.1-r0
4.2.0-r0
4.2.1-r0
4.2.2-r0
4.2.3-r0
4.2.4-r0
4.2.5-r0
4.3.2-r0
4.3.3-r0
4.3.3-r1
4.3.4-r0
4.4.0-r0
4.4.1-r0
4.4.1-r1
4.4.1-r2
4.4.1-r3
4.4.2-r0
4.4.3-r0
4.5.0-r0
4.5.1-r0
4.5.2-r0
4.6.0-r0
4.6.1-r0
4.6.2-r0
4.6.3-r0
4.6.3-r1
4.6.4-r0
4.6.5-r0
4.7.1-r0
4.7.1-r1
4.8.0-r0
4.9.0-r0
4.9.1-r0

Alpine:v3.18 / libxml2

Package

Name
libxml2
Purl
pkg:apk/alpine/libxml2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.10.0-r0

Affected versions

2.*

2.7.2-r0
2.7.3-r0
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.7-r0
2.7.7-r1
2.7.7-r2
2.7.7-r3
2.7.7-r4
2.7.8-r0
2.7.8-r1
2.7.8-r2
2.7.8-r4
2.7.8-r5
2.7.8-r6
2.7.8-r7
2.7.8-r8
2.8.0-r0
2.8.0-r1
2.9.0-r0
2.9.0-r1
2.9.0-r2
2.9.0-r3
2.9.1-r0
2.9.1-r1
2.9.1-r2
2.9.2-r0
2.9.2-r1
2.9.2-r2
2.9.3-r0
2.9.4-r0
2.9.4-r1
2.9.4-r2
2.9.4-r3
2.9.4-r4
2.9.5-r0
2.9.6-r0
2.9.6-r2
2.9.7-r0
2.9.7-r1
2.9.8-r0
2.9.8-r1
2.9.8-r2
2.9.9-r0
2.9.9-r1
2.9.9-r2
2.9.9-r3
2.9.10-r0
2.9.10-r1
2.9.10-r2
2.9.10-r3
2.9.10-r4
2.9.10-r5
2.9.10-r6
2.9.10-r7
2.9.12-r0
2.9.12-r1
2.9.12-r2
2.9.12-r3
2.9.13-r0
2.9.14-r0
2.9.14-r1

Alpine:v3.18 / py3-lxml

Package

Name
py3-lxml
Purl
pkg:apk/alpine/py3-lxml?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.9.2-r0

Affected versions

2.*

2.2.6-r0
2.2.8-r0
2.2.8-r1
2.3.4-r1
2.3.5-r0

3.*

3.1.0-r0
3.2.3-r0
3.3.2-r0
3.4.0-r0
3.4.4-r0
3.5.0-r0
3.6.0-r0
3.6.0-r1
3.6.4-r0
3.7.1-r0
3.7.2-r0
3.7.2-r1
3.8.0-r0

4.*

4.0.0-r0
4.1.0-r0
4.1.0-r1
4.1.1-r0
4.2.0-r0
4.2.1-r0
4.2.2-r0
4.2.3-r0
4.2.4-r0
4.2.5-r0
4.3.2-r0
4.3.3-r0
4.3.3-r1
4.3.4-r0
4.4.0-r0
4.4.1-r0
4.4.1-r1
4.4.1-r2
4.4.1-r3
4.4.2-r0
4.4.3-r0
4.5.0-r0
4.5.1-r0
4.5.2-r0
4.6.0-r0
4.6.1-r0
4.6.2-r0
4.6.3-r0
4.6.3-r1
4.6.4-r0
4.6.5-r0
4.7.1-r0
4.7.1-r1
4.8.0-r0
4.9.0-r0
4.9.1-r0
4.9.1-r1

Alpine:v3.19 / libxml2

Package

Name
libxml2
Purl
pkg:apk/alpine/libxml2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.10.0-r0

Affected versions

2.*

2.7.2-r0
2.7.3-r0
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.7-r0
2.7.7-r1
2.7.7-r2
2.7.7-r3
2.7.7-r4
2.7.8-r0
2.7.8-r1
2.7.8-r2
2.7.8-r4
2.7.8-r5
2.7.8-r6
2.7.8-r7
2.7.8-r8
2.8.0-r0
2.8.0-r1
2.9.0-r0
2.9.0-r1
2.9.0-r2
2.9.0-r3
2.9.1-r0
2.9.1-r1
2.9.1-r2
2.9.2-r0
2.9.2-r1
2.9.2-r2
2.9.3-r0
2.9.4-r0
2.9.4-r1
2.9.4-r2
2.9.4-r3
2.9.4-r4
2.9.5-r0
2.9.6-r0
2.9.6-r2
2.9.7-r0
2.9.7-r1
2.9.8-r0
2.9.8-r1
2.9.8-r2
2.9.9-r0
2.9.9-r1
2.9.9-r2
2.9.9-r3
2.9.10-r0
2.9.10-r1
2.9.10-r2
2.9.10-r3
2.9.10-r4
2.9.10-r5
2.9.10-r6
2.9.10-r7
2.9.12-r0
2.9.12-r1
2.9.12-r2
2.9.12-r3
2.9.13-r0
2.9.14-r0
2.9.14-r1

Alpine:v3.19 / py3-lxml

Package

Name
py3-lxml
Purl
pkg:apk/alpine/py3-lxml?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.9.2-r0

Affected versions

2.*

2.2.6-r0
2.2.8-r0
2.2.8-r1
2.3.4-r1
2.3.5-r0

3.*

3.1.0-r0
3.2.3-r0
3.3.2-r0
3.4.0-r0
3.4.4-r0
3.5.0-r0
3.6.0-r0
3.6.0-r1
3.6.4-r0
3.7.1-r0
3.7.2-r0
3.7.2-r1
3.8.0-r0

4.*

4.0.0-r0
4.1.0-r0
4.1.0-r1
4.1.1-r0
4.2.0-r0
4.2.1-r0
4.2.2-r0
4.2.3-r0
4.2.4-r0
4.2.5-r0
4.3.2-r0
4.3.3-r0
4.3.3-r1
4.3.4-r0
4.4.0-r0
4.4.1-r0
4.4.1-r1
4.4.1-r2
4.4.1-r3
4.4.2-r0
4.4.3-r0
4.5.0-r0
4.5.1-r0
4.5.2-r0
4.6.0-r0
4.6.1-r0
4.6.2-r0
4.6.3-r0
4.6.3-r1
4.6.4-r0
4.6.5-r0
4.7.1-r0
4.7.1-r1
4.8.0-r0
4.9.0-r0
4.9.1-r0
4.9.1-r1

Alpine:v3.20 / libxml2

Package

Name
libxml2
Purl
pkg:apk/alpine/libxml2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.10.0-r0

Affected versions

2.*

2.7.2-r0
2.7.3-r0
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.7-r0
2.7.7-r1
2.7.7-r2
2.7.7-r3
2.7.7-r4
2.7.8-r0
2.7.8-r1
2.7.8-r2
2.7.8-r4
2.7.8-r5
2.7.8-r6
2.7.8-r7
2.7.8-r8
2.8.0-r0
2.8.0-r1
2.9.0-r0
2.9.0-r1
2.9.0-r2
2.9.0-r3
2.9.1-r0
2.9.1-r1
2.9.1-r2
2.9.2-r0
2.9.2-r1
2.9.2-r2
2.9.3-r0
2.9.4-r0
2.9.4-r1
2.9.4-r2
2.9.4-r3
2.9.4-r4
2.9.5-r0
2.9.6-r0
2.9.6-r2
2.9.7-r0
2.9.7-r1
2.9.8-r0
2.9.8-r1
2.9.8-r2
2.9.9-r0
2.9.9-r1
2.9.9-r2
2.9.9-r3
2.9.10-r0
2.9.10-r1
2.9.10-r2
2.9.10-r3
2.9.10-r4
2.9.10-r5
2.9.10-r6
2.9.10-r7
2.9.12-r0
2.9.12-r1
2.9.12-r2
2.9.12-r3
2.9.13-r0
2.9.14-r0
2.9.14-r1

Alpine:v3.20 / py3-lxml

Package

Name
py3-lxml
Purl
pkg:apk/alpine/py3-lxml?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.9.2-r0

Affected versions

2.*

2.2.6-r0
2.2.8-r0
2.2.8-r1
2.3.4-r1
2.3.5-r0

3.*

3.1.0-r0
3.2.3-r0
3.3.2-r0
3.4.0-r0
3.4.4-r0
3.5.0-r0
3.6.0-r0
3.6.0-r1
3.6.4-r0
3.7.1-r0
3.7.2-r0
3.7.2-r1
3.8.0-r0

4.*

4.0.0-r0
4.1.0-r0
4.1.0-r1
4.1.1-r0
4.2.0-r0
4.2.1-r0
4.2.2-r0
4.2.3-r0
4.2.4-r0
4.2.5-r0
4.3.2-r0
4.3.3-r0
4.3.3-r1
4.3.4-r0
4.4.0-r0
4.4.1-r0
4.4.1-r1
4.4.1-r2
4.4.1-r3
4.4.2-r0
4.4.3-r0
4.5.0-r0
4.5.1-r0
4.5.2-r0
4.6.0-r0
4.6.1-r0
4.6.2-r0
4.6.3-r0
4.6.3-r1
4.6.4-r0
4.6.5-r0
4.7.1-r0
4.7.1-r1
4.8.0-r0
4.9.0-r0
4.9.1-r0
4.9.1-r1

Debian:11 / libxml2

Package

Name
libxml2
Purl
pkg:deb/debian/libxml2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.10+dfsg-6.7+deb11u5

Affected versions

2.*

2.9.10+dfsg-6.7
2.9.10+dfsg-6.7+deb11u1
2.9.10+dfsg-6.7+deb11u2
2.9.10+dfsg-6.7+deb11u3
2.9.10+dfsg-6.7+deb11u4

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / libxml2

Package

Name
libxml2
Purl
pkg:deb/debian/libxml2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.14+dfsg-1.3~deb12u1

Affected versions

2.*

2.9.14+dfsg-1.2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / libxml2

Package

Name
libxml2
Purl
pkg:deb/debian/libxml2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.14+dfsg-1.3

Affected versions

2.*

2.9.14+dfsg-1.2
2.9.14+dfsg-1.3~deb12u1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:11 / lxml

Package

Name
lxml
Purl
pkg:deb/debian/lxml?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*

4.6.3+dfsg-0.1
4.6.3+dfsg-0.1+deb11u1
4.6.3+dfsg-1
4.6.4-1
4.7.1-1
4.8.0-1
4.9.1-1
4.9.2-1
4.9.3-1
4.9.4-1

5.*

5.1.0-1
5.2.0-1
5.2.1-1
5.2.2-1
5.2.2-2
5.3.0-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / lxml

Package

Name
lxml
Purl
pkg:deb/debian/lxml?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.9.1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / lxml

Package

Name
lxml
Purl
pkg:deb/debian/lxml?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.9.1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}