Amazon Linux 2 : maven-shared-utils (ALAS-2022-1794)

critical Nessus Plugin ID 160579

Synopsis

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

Description

The version of maven-shared-utils installed on the remote host is prior to 0.4-4. It is, therefore, affected by a vulnerability as referenced in the ALAS2-2022-1794 advisory.

org.apache.maven.shared:maven-shared-utils is a functional replacement for plexus-utils in Maven. Affected versions of this package are vulnerable to Command Injection. The Commandline class can emit double-quoted strings without proper escaping, allowing shell injection attacks. The BourneShell class should unconditionally single-quote emitted strings (including the name of the command itself being quoted), with {{'''}} used for embedded single quotes, for maximum safety across shells implementing a superset of POSIX quoting rules. (CVE-2022-29599)

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 maven-shared-utils' to update your system.

See Also

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

https://alas.aws.amazon.com/cve/html/CVE-2022-29599.html

Plugin Details

Severity: Critical

ID: 160579

File Name: al2_ALAS-2022-1794.nasl

Version: 1.4

Type: local

Agent: unix

Published: 5/5/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: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

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

CVSS Score Source: CVE-2022-29599

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

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

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

Vulnerability Information

CPE: cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:maven-shared-utils, p-cpe:/a:amazon:linux:maven-shared-utils-javadoc

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

Exploit Ease: No known exploits are available

Patch Publication Date: 5/4/2022

Vulnerability Publication Date: 4/27/2022

Reference Information

CVE: CVE-2022-29599