Amazon Linux 2022 : php, php-bcmath, php-cli (ALAS2022-2022-073)

critical Nessus Plugin ID 164734

Synopsis

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

Description

It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2022-2022-073 advisory.

A flaw was found in php. The main cause of this vulnerability is improper input validation while parsing an Extensible Markup Language(XML) entity. A special character could allow an attacker to traverse directories. The highest threat from this vulnerability is confidentiality. (CVE-2021-21707)

A flaw was found in PHP. The vulnerability occurs due to the malformed php_filter_float() function and leads to a use-after-free vulnerability. This flaw allows an attacker to inject a malicious file, leading to a crash or a Segmentation fault. (CVE-2021-21708)

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

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

Solution

Run 'dnf update --releasever=2022.0.20220518 php' to update your system.

See Also

https://alas.aws.amazon.com/AL2022/ALAS-2022-073.html

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

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

Plugin Details

Severity: Critical

ID: 164734

File Name: al2022_ALAS2022-2022-073.nasl

Version: 1.5

Type: local

Agent: unix

Published: 9/6/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: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.3

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

CVSS Score Source: CVE-2021-21708

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:php-snmp, p-cpe:/a:amazon:linux:php-json-debuginfo, p-cpe:/a:amazon:linux:php-embedded, p-cpe:/a:amazon:linux:php-gd-debuginfo, p-cpe:/a:amazon:linux:php-xmlrpc, p-cpe:/a:amazon:linux:php-common-debuginfo, p-cpe:/a:amazon:linux:php-sodium-debuginfo, p-cpe:/a:amazon:linux:php-xmlrpc-debuginfo, p-cpe:/a:amazon:linux:php-ldap, p-cpe:/a:amazon:linux:php-mysqlnd, p-cpe:/a:amazon:linux:php-tidy-debuginfo, p-cpe:/a:amazon:linux:php-fpm-debuginfo, p-cpe:/a:amazon:linux:php-enchant-debuginfo, p-cpe:/a:amazon:linux:php-tidy, cpe:/o:amazon:linux:2022, p-cpe:/a:amazon:linux:php-debuginfo, p-cpe:/a:amazon:linux:php-ffi, p-cpe:/a:amazon:linux:php-xml, p-cpe:/a:amazon:linux:php-opcache-debuginfo, p-cpe:/a:amazon:linux:php-intl-debuginfo, p-cpe:/a:amazon:linux:php-odbc-debuginfo, p-cpe:/a:amazon:linux:php-debugsource, p-cpe:/a:amazon:linux:php-embedded-debuginfo, p-cpe:/a:amazon:linux:php-mysqlnd-debuginfo, p-cpe:/a:amazon:linux:php-devel, p-cpe:/a:amazon:linux:php-dba, p-cpe:/a:amazon:linux:php-mbstring, p-cpe:/a:amazon:linux:php-process, p-cpe:/a:amazon:linux:php-ldap-debuginfo, p-cpe:/a:amazon:linux:php-pdo-debuginfo, p-cpe:/a:amazon:linux:php-process-debuginfo, p-cpe:/a:amazon:linux:php-dba-debuginfo, p-cpe:/a:amazon:linux:php-ffi-debuginfo, p-cpe:/a:amazon:linux:php-common, p-cpe:/a:amazon:linux:php-gmp-debuginfo, p-cpe:/a:amazon:linux:php, p-cpe:/a:amazon:linux:php-dbg, p-cpe:/a:amazon:linux:php-opcache, p-cpe:/a:amazon:linux:php-soap, p-cpe:/a:amazon:linux:php-bcmath-debuginfo, p-cpe:/a:amazon:linux:php-intl, p-cpe:/a:amazon:linux:php-snmp-debuginfo, p-cpe:/a:amazon:linux:php-soap-debuginfo, p-cpe:/a:amazon:linux:php-gmp, p-cpe:/a:amazon:linux:php-pdo, p-cpe:/a:amazon:linux:php-gd, p-cpe:/a:amazon:linux:php-cli-debuginfo, p-cpe:/a:amazon:linux:php-mbstring-debuginfo, p-cpe:/a:amazon:linux:php-cli, p-cpe:/a:amazon:linux:php-odbc, p-cpe:/a:amazon:linux:php-xml-debuginfo, p-cpe:/a:amazon:linux:php-dbg-debuginfo, p-cpe:/a:amazon:linux:php-sodium, p-cpe:/a:amazon:linux:php-enchant, p-cpe:/a:amazon:linux:php-bcmath, p-cpe:/a:amazon:linux:php-fpm, p-cpe:/a:amazon:linux:php-pgsql, p-cpe:/a:amazon:linux:php-pgsql-debuginfo, p-cpe:/a:amazon:linux:php-json

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: 5/18/2022

Vulnerability Publication Date: 11/29/2021

Reference Information

CVE: CVE-2021-21707, CVE-2021-21708

IAVA: 2021-A-0566-S