Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

Security advisory

ALAS2023-2023-034

Active Important

ALAS2023-2023-034 (important): python-lxml

Published
22 Mar 2023
Updated
22 Mar 2023

Related CVEs

CVE identifiers linked by this publisher.

2
Publisher relationship details 2 records
Explicit publisher CVE relationships
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.

3

Shared package data

Applies to all 3 occurrences
  1. 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
  2. 2python-lxml

    Occurrence-specific details
    Architecture
    src

    Replacement RPMs

    • python-lxml-4.7.1-3.amzn2023.0.1.src
  3. 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.

0

No CVSS assessments were provided.

Publisher references

5
  • Amazon Linux 2023 Release Notes article · Tags: Release Notes https://docs.aws.amazon.com/linux/al2023/release-notes/relnotes.html
  • CVE-2021-43818 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2021-43818
  • CVE-2022-2309 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-2309
  • CVE-2021-43818 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-43818
  • CVE-2022-2309 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2309

Provenance

Schema version
Unknown
Parser version
amazon-alas/1
Severity origin
publisher
Publisher document provenance records
KindLocatorSource commitDocument hashParserFetched
html_pagehttps://alas.aws.amazon.com/AL2023/ALAS2023-2023-034.htmlUnknown369af97b8b1e21b9a9f2440ce74df631ce036bcde25b98edf989d172bef32073amazon-alas/12026-11-16T09:02:14Z
rss_entryhttps://alas.aws.amazon.com/AL2023/ALAS2023-2023-034.htmlUnknownUnknownamazon-alas/12026-11-16T09:02:14Z
catalog_entryhttps://alas.aws.amazon.com/AL2023/ALAS2023-2023-034.htmlUnknownUnknownamazon-alas/12026-11-16T09:02:14Z

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected