FreeBSD : Remote Code Execution via web-accessible composer (33922b84-5f09-11ee-b63d-0897988a1c07)

high Nessus Plugin ID 182378

Language:

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

The version of FreeBSD installed on the remote host is prior to tested version. It is, therefore, affected by a vulnerability as referenced in the 33922b84-5f09-11ee-b63d-0897988a1c07 advisory.

- Composer is a dependency manager for PHP. Users publishing a composer.phar to a public web-accessible server where the composer.phar can be executed as a php file may be subject to a remote code execution vulnerability if PHP also has `register_argc_argv` enabled in php.ini. Versions 2.6.4, 2.2.22 and 1.10.27 patch this vulnerability. Users are advised to upgrade. Users unable to upgrade should make sure `register_argc_argv` is disabled in php.ini, and avoid publishing composer.phar to the web as this is not best practice. (CVE-2023-43655)

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

Solution

Update the affected packages.

See Also

http://www.nessus.org/u?cadfcc27

http://www.nessus.org/u?59df4df4

Plugin Details

Severity: High

ID: 182378

File Name: freebsd_pkg_33922b845f0911eeb63d0897988a1c07.nasl

Version: 1.2

Type: local

Published: 9/29/2023

Updated: 10/4/2023

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 6.7

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

CVSS Score Source: CVE-2023-43655

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

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

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

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:php80-composer, p-cpe:/a:freebsd:freebsd:php80-composer2, p-cpe:/a:freebsd:freebsd:php81-composer, p-cpe:/a:freebsd:freebsd:php81-composer2, p-cpe:/a:freebsd:freebsd:php82-composer, p-cpe:/a:freebsd:freebsd:php82-composer2, p-cpe:/a:freebsd:freebsd:php83-composer, p-cpe:/a:freebsd:freebsd:php83-composer2, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Ease: No known exploits are available

Patch Publication Date: 9/29/2023

Vulnerability Publication Date: 9/29/2023

Reference Information

CVE: CVE-2023-43655