Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 838268 (CVE-2022-24828, CVE-2023-43655) - dev-php/composer: multiple vulnerabilities
Summary: dev-php/composer: multiple vulnerabilities
Status: CONFIRMED
Alias: CVE-2022-24828, CVE-2023-43655
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
URL: https://github.com/composer/composer/...
Whiteboard: B2 [ebuild]
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-13 23:42 UTC by John Helmert III
Modified: 2023-11-25 19:27 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-04-13 23:42:17 UTC
CVE-2022-24828 (https://github.com/composer/composer/commit/2c40c53637c5c7e43fff7c09d3d324d632734709):

Composer is a dependency manager for the PHP programming language. 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`. To the best of our knowledge this was not abused, and the vulnerability has been patched on packagist.org and Private Packagist within a day of the vulnerability report.

Please bump.
Comment 1 Hans de Graaff gentoo-dev Security 2023-10-15 08:51:34 UTC
Ping. Please mask this package for removal or bump to at least version 2.2.12.
Comment 2 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-11-25 19:27:25 UTC
CVE-2023-43655 (https://github.com/composer/composer/security/advisories/GHSA-jm6m-4632-36hf):

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.