Amazon Linux 2023 : php8.1, php8.1-bcmath, php8.1-cli (ALAS2023-2024-654)

medium Nessus Plugin ID 202925

Synopsis

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

Description

It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2023-2024-654 advisory.

The openssl_private_decrypt function in PHP, when using PKCS1 padding (OPENSSL_PKCS1_PADDING, which is the default), is vulnerable to the Marvin Attack unless it is used with an OpenSSL version that includes the changes from this pull request: https://github.com/openssl/openssl/pull/13817 (rsa_pkcs1_implicit_rejection). These changes are part of OpenSSL 3.2 and have also been backported to stable versions of various Linux distributions, as well as to the PHP builds provided for Windows since the previous release. All distributors and builders should ensure that this version is used to prevent PHP from being vulnerable.

PHP Windows builds for the versions 8.1.29, 8.2.20 and 8.3.8 and above include OpenSSL patches that fix the vulnerability. (CVE-2024-2408)

In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, due to a code logic error, filtering functions such as filter_var when validating URLs (FILTER_VALIDATE_URL) for certain types of URLs the function will result in invalid user information (username + password part of URLs) being treated as valid user information. This may lead to the downstream code accepting invalid URLs as valid and parsing them incorrectly. (CVE-2024-5458)

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 php8.1 --releasever 2023.5.20240722' to update your system.

See Also

https://alas.aws.amazon.com/AL2023/ALAS-2024-654.html

https://alas.aws.amazon.com/cve/html/CVE-2024-2408.html

https://alas.aws.amazon.com/cve/html/CVE-2024-5458.html

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

Plugin Details

Severity: Medium

ID: 202925

File Name: al2023_ALAS2023-2024-654.nasl

Version: 1.3

Type: local

Agent: unix

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

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 5.4

Temporal Score: 4.2

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

CVSS Score Source: CVE-2024-2408

CVSS v3

Risk Factor: Medium

Base Score: 5.9

Temporal Score: 5.3

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

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

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:php8.1-tidy, p-cpe:/a:amazon:linux:php8.1-odbc-debuginfo, p-cpe:/a:amazon:linux:php8.1-zip, p-cpe:/a:amazon:linux:php8.1-bcmath, p-cpe:/a:amazon:linux:php8.1-soap, cpe:/o:amazon:linux:2023, p-cpe:/a:amazon:linux:php8.1-enchant, p-cpe:/a:amazon:linux:php8.1-devel, p-cpe:/a:amazon:linux:php8.1-odbc, p-cpe:/a:amazon:linux:php8.1-process, p-cpe:/a:amazon:linux:php8.1-pgsql-debuginfo, p-cpe:/a:amazon:linux:php8.1-embedded-debuginfo, p-cpe:/a:amazon:linux:php8.1-common-debuginfo, p-cpe:/a:amazon:linux:php8.1-fpm, p-cpe:/a:amazon:linux:php8.1-xml, p-cpe:/a:amazon:linux:php8.1-mbstring-debuginfo, p-cpe:/a:amazon:linux:php8.1-pgsql, p-cpe:/a:amazon:linux:php8.1-ffi, p-cpe:/a:amazon:linux:php8.1-pspell, p-cpe:/a:amazon:linux:php8.1-xml-debuginfo, p-cpe:/a:amazon:linux:php8.1-ffi-debuginfo, p-cpe:/a:amazon:linux:php8.1, p-cpe:/a:amazon:linux:php8.1-snmp-debuginfo, p-cpe:/a:amazon:linux:php8.1-gmp-debuginfo, p-cpe:/a:amazon:linux:php8.1-dba, p-cpe:/a:amazon:linux:php8.1-ldap, p-cpe:/a:amazon:linux:php8.1-cli-debuginfo, p-cpe:/a:amazon:linux:php8.1-dbg-debuginfo, p-cpe:/a:amazon:linux:php8.1-common, p-cpe:/a:amazon:linux:php8.1-tidy-debuginfo, p-cpe:/a:amazon:linux:php8.1-opcache, p-cpe:/a:amazon:linux:php8.1-gd, p-cpe:/a:amazon:linux:php8.1-dba-debuginfo, p-cpe:/a:amazon:linux:php8.1-fpm-debuginfo, p-cpe:/a:amazon:linux:php8.1-cli, p-cpe:/a:amazon:linux:php8.1-gd-debuginfo, p-cpe:/a:amazon:linux:php8.1-pspell-debuginfo, p-cpe:/a:amazon:linux:php8.1-debugsource, p-cpe:/a:amazon:linux:php8.1-debuginfo, p-cpe:/a:amazon:linux:php8.1-pdo-debuginfo, p-cpe:/a:amazon:linux:php8.1-enchant-debuginfo, p-cpe:/a:amazon:linux:php8.1-bcmath-debuginfo, p-cpe:/a:amazon:linux:php8.1-intl, p-cpe:/a:amazon:linux:php8.1-ldap-debuginfo, p-cpe:/a:amazon:linux:php8.1-snmp, p-cpe:/a:amazon:linux:php8.1-mysqlnd-debuginfo, p-cpe:/a:amazon:linux:php8.1-zip-debuginfo, p-cpe:/a:amazon:linux:php8.1-process-debuginfo, p-cpe:/a:amazon:linux:php8.1-soap-debuginfo, p-cpe:/a:amazon:linux:php8.1-gmp, p-cpe:/a:amazon:linux:php8.1-intl-debuginfo, p-cpe:/a:amazon:linux:php8.1-dbg, p-cpe:/a:amazon:linux:php8.1-mbstring, p-cpe:/a:amazon:linux:php8.1-pdo, p-cpe:/a:amazon:linux:php8.1-embedded, p-cpe:/a:amazon:linux:php8.1-opcache-debuginfo, p-cpe:/a:amazon:linux:php8.1-mysqlnd

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: 7/18/2024

Vulnerability Publication Date: 6/4/2024

Reference Information

CVE: CVE-2024-2408, CVE-2024-5458