Amazon Linux 2 : python-lxml (ALAS-2024-2620)

critical Nessus Plugin ID 205707

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

The version of python-lxml installed on the remote host is prior to 3.2.1-4. It is, therefore, affected by a vulnerability as referenced in the ALAS2-2024-2620 advisory.

An XSS vulnerability was discovered in python-lxml's clean module versions before 4.6.3. When disabling the safe_attrs_only and forms arguments, the Cleaner class does not remove the formaction attribute allowing for JS to bypass the sanitizer. A remote attacker could exploit this flaw to run arbitrary JS code on users who interact with incorrectly sanitized HTML. This issue is patched in lxml 4.6.3.
(CVE-2021-28957)

Tenable has extracted the preceding description block directly from the tested product security advisory.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Run 'yum update python-lxml' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALAS-2024-2620.html

https://alas.aws.amazon.com/cve/html/CVE-2021-28957.html

https://alas.aws.amazon.com/faqs.html

Plugin Details

Severity: Critical

ID: 205707

File Name: al2_ALAS-2024-2620.nasl

Version: 1.3

Type: local

Agent: unix

Published: 8/17/2024

Updated: 12/11/2024

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.8

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.4

Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N

CVSS Score Source: CVE-2021-28957

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

CVSS v4

Risk Factor: Critical

Base Score: 9.3

Threat Score: 8.9

Threat Vector: CVSS:4.0/E:P

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:python-lxml-docs, p-cpe:/a:amazon:linux:python-lxml-debuginfo, p-cpe:/a:amazon:linux:python-lxml, cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:python3-lxml

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 8/1/2024

Vulnerability Publication Date: 3/21/2021

Reference Information

CVE: CVE-2021-28957