Amazon Linux 2 : ant (ALAS-2022-1880)

medium Nessus Plugin ID 168454

Synopsis

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

Description

The version of ant installed on the remote host is prior to 1.9.16-1. It is, therefore, affected by a vulnerability as referenced in the ALAS2-2022-1880 advisory.

When reading a specially crafted ZIP archive, or a derived formats, an Apache Ant build can be made to allocate large amounts of memory that leads to an out of memory error, even for small inputs. This can be used to disrupt builds using Apache Ant. Commonly used derived formats from ZIP archives are for instance JAR files and many office files. Apache Ant prior to 1.9.16 and 1.10.11 were affected. (CVE-2021-36374)

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 ant' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALAS-2022-1880.html

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

Plugin Details

Severity: Medium

ID: 168454

File Name: al2_ALAS-2022-1880.nasl

Version: 1.4

Type: local

Agent: unix

Published: 12/7/2022

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.6

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.2

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

CVSS Score Source: CVE-2021-36374

CVSS v3

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 4.8

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

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

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:ant-antlr, p-cpe:/a:amazon:linux:ant-javadoc, p-cpe:/a:amazon:linux:ant-javamail, cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:ant, p-cpe:/a:amazon:linux:ant-apache-bsf, p-cpe:/a:amazon:linux:ant-apache-log4j, p-cpe:/a:amazon:linux:ant-apache-regexp, p-cpe:/a:amazon:linux:ant-apache-bcel, p-cpe:/a:amazon:linux:ant-jmf, p-cpe:/a:amazon:linux:ant-commons-net, p-cpe:/a:amazon:linux:ant-commons-logging, p-cpe:/a:amazon:linux:ant-swing, p-cpe:/a:amazon:linux:ant-junit, p-cpe:/a:amazon:linux:ant-testutil, p-cpe:/a:amazon:linux:ant-apache-oro, p-cpe:/a:amazon:linux:ant-apache-resolver, p-cpe:/a:amazon:linux:ant-apache-xalan2, p-cpe:/a:amazon:linux:ant-jsch, p-cpe:/a:amazon:linux:ant-manual, p-cpe:/a:amazon:linux:ant-jdepend

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: 12/1/2022

Vulnerability Publication Date: 7/14/2021

Reference Information

CVE: CVE-2021-36374