GLSA-202508-06 : Composer: Multiple Vulnerabilities

high Nessus Plugin ID 244058

Description

The remote host is affected by the vulnerability described in GLSA-202508-06 (Composer: Multiple Vulnerabilities)

Integrators using Composer code to call `VcsDriver::getFileContent` can have a code injection vulnerability if the user can control the `$file` or `$identifier` argument. This leads to a vulnerability on packagist.org for example where the composer.json's `readme` field can be used as a vector for injecting parameters into hg/Mercurial via the `$file` argument, or git via the `$identifier` argument if you allow arbitrary data there (Packagist does not, but maybe other integrators do). Composer itself should not be affected by the vulnerability as it does not call `getFileContent` with arbitrary data into `$file`/`$identifier`.

Tenable has extracted the preceding description block directly from the Gentoo Linux 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

Gentoo has discontinued support for composer and the package should be removed:

# emerge --sync # emerge --ask --verbose --depclean dev-php/composer

See Also

https://security.gentoo.org/glsa/202508-06

https://bugs.gentoo.org/show_bug.cgi?id=838268

Plugin Details

Severity: High

ID: 244058

File Name: gentoo_GLSA-202508-06.nasl

Version: 1.1

Type: local

Published: 8/6/2025

Updated: 8/6/2025

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

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

CVSS Score Source: CVE-2022-24828

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

CVSS Score Source: CVE-2023-43655

Vulnerability Information

CPE: cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Ease: No known exploits are available

Patch Publication Date: 8/6/2025

Vulnerability Publication Date: 4/13/2022

Reference Information

CVE: CVE-2022-24828, CVE-2023-43655