ALAS2023-2023-034
Active ImportantALAS2023-2023-034 (important): python-lxml
Related CVEs
CVE identifiers linked by this publisher.
Publisher relationship details 2 records
Shared by all 2 CVE relationships
Exact relationship value
advisory_listExact field value
referencesExact evidence value
https://alas.aws.amazon.com/AL2023/ALAS2023-2023-034.html| CVE |
|---|
| CVE-2021-43818 |
| CVE-2022-2309 |
Description
There's a flaw in python-lxml's HTML Cleaner component, which is responsible for sanitizing HTML and Javascript. An attacker who is able to submit a crafted payload to a web service using python-lxml's HTML Cleaner may be able to trigger script execution in clients such as web browsers. This can occur because the HTML Cleaner did not remove scripts within
Read full publisher description 1414 characters
There's a flaw in python-lxml's HTML Cleaner component, which is responsible for sanitizing HTML and Javascript. An attacker who is able to submit a crafted payload to a web service using python-lxml's HTML Cleaner may be able to trigger script execution in clients such as web browsers. This can occur because the HTML Cleaner did not remove scripts within SVG images in data URLs such as <img src=>. XSS can result in impacts to the integrity and availability of the web page, as well as a potential impact to data confidentiality in some circumstances. (CVE-2021-43818) 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. (CVE-2022-2309)
Solution
Run dnf update python-lxml --releasever 2023.0.20230322 or dnf update --advisory ALAS2023-2023-034 --releasever 2023.0.20230322 to update your system. More information on how to update your system can be found on this page: Amazon Linux 2023 documentation
Affected packages
Each item is one publisher package occurrence. Shared details are shown once; differences stay with the occurrence.
Shared package data
Applies to all 3 occurrences-
1python-lxml
Occurrence-specific details
- Architecture
- aarch64
Replacement RPMs
- python-lxml-debugsource-4.7.1-3.amzn2023.0.1.aarch64
- python3-lxml-debuginfo-4.7.1-3.amzn2023.0.1.aarch64
- python3-lxml-4.7.1-3.amzn2023.0.1.aarch64
-
2python-lxml
Occurrence-specific details
- Architecture
- src
Replacement RPMs
- python-lxml-4.7.1-3.amzn2023.0.1.src
-
3python-lxml
Occurrence-specific details
- Architecture
- x86_64
Replacement RPMs
- python-lxml-debugsource-4.7.1-3.amzn2023.0.1.x86_64
- python3-lxml-debuginfo-4.7.1-3.amzn2023.0.1.x86_64
- python3-lxml-4.7.1-3.amzn2023.0.1.x86_64
CVSS assessments
Publisher supplied scores and vectors; these do not replace the advisory severity above.
No CVSS assessments were provided.
Publisher references
5- Amazon Linux 2023 Release Notes https://docs.aws.amazon.com/linux/al2023/release-notes/relnotes.html
- CVE-2021-43818 https://access.redhat.com/security/cve/CVE-2021-43818
- CVE-2022-2309 https://access.redhat.com/security/cve/CVE-2022-2309
- CVE-2021-43818 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-43818
- CVE-2022-2309 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2309
Provenance
- Schema version
- Unknown
- Parser version
- amazon-alas/1
- Severity origin
- publisher
| Kind | Locator | Source commit | Document hash | Parser | Fetched |
|---|---|---|---|---|---|
| html_page | https://alas.aws.amazon.com/AL2023/ALAS2023-2023-034.html | Unknown | 369af97b8b1e21b9a9f2440ce74df631ce036bcde25b98edf989d172bef32073 | amazon-alas/1 | 2026-11-16T09:02:14Z |
| rss_entry | https://alas.aws.amazon.com/AL2023/ALAS2023-2023-034.html | Unknown | Unknown | amazon-alas/1 | 2026-11-16T09:02:14Z |
| catalog_entry | https://alas.aws.amazon.com/AL2023/ALAS2023-2023-034.html | Unknown | Unknown | amazon-alas/1 | 2026-11-16T09:02:14Z |