Approved changes feed: RSS · Atom
cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*
part: a version: * update: *
| Vendor | Getcomposer (e0bb4b7a-2fd0-5157-8692-1e509cd674da) |
|---|---|
| Product | Composer (2295e9c1-8c0c-5a78-ada8-82d842a89fe1) |
| Edition | * |
| Language | * |
| Software edition | * |
| Target software | * |
| Target hardware | * |
| Other | * |
| Notes | Imported from purl2cpe mapping |
PURL mappings
| PURL | Source | Last updated |
|---|---|---|
pkg:deb/debian/composer |
purl2cpe | 2026-06-01 10:15:35.716066 |
pkg:deb/ubuntu/composer |
purl2cpe | 2026-06-01 10:15:35.716071 |
pkg:docker/composer |
purl2cpe | 2026-06-01 10:15:35.716074 |
pkg:github/composer/composer |
purl2cpe | 2026-06-01 10:15:35.716077 |
pkg:rpm/fedora/composer |
purl2cpe | 2026-06-01 10:15:35.716080 |
pkg:rpm/opensuse/composer |
purl2cpe | 2026-06-01 10:15:35.716083 |
pkg:sourceforge/composer.mirror |
purl2cpe | 2026-06-01 10:15:35.716086 |
Vulnerability references
| Identifier | cpeApplicability | Submitted | db.gcve.eu details | Rationale |
|---|---|---|---|---|
CVE:CVE-2026-40261 |
vulnerable | 2026-06-08 08:01:20.104174 |
Composer has Command Injection via Malicious Perforce Reference
HIGH (8.8)
Composer is a dependency manager for PHP. Versions 1.0 through 2.2.26 and 2.3 through 2.9.5 contain a command injection vulnerability in the Perforce::syncCodeBase() method, which appends the $sourceReference parameter to a shell command without proper escaping, and additionally in the Perforce::generateP4Command() method as in GHSA-wg36-wvj6-r67p / CVE-2026-40176, which interpolates user-supplied Perforce connection parameters (port, user, client) from the source url field without proper escaping. An attacker can inject arbitrary commands through crafted source reference or source url values containing shell metacharacters, even if Perforce is not installed. Unlike CVE-2026-40176, the source reference and url are provided as part of package metadata, meaning any compromised or malicious Composer repository can serve package metadata declaring perforce as a source type with malicious values. This vulnerability is exploitable when installing or updating dependencies from source, including the default behavior when installing dev-prefixed versions. This issue has been fixed in Composer 2.2.27 (2.2 LTS) and 2.9.6 (mainline). If developers are unable to immediately update, they can avoid installing dependencies from source by using --prefer-dist or the preferred-install: dist config setting, and only use trusted Composer repositories as a workaround.
Published: 2026-04-15T20:56:32.182Z
Updated: 2026-07-15T01:01:10.106Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2026-40176 |
vulnerable | 2026-06-08 08:01:20.001139 |
Composer is vulnerable to Command Injection via Malicious Perforce Repository
HIGH (7.8)
Composer is a dependency manager for PHP. Versions 1.0 through 2.2.26 and 2.3 through 2.9.5 contain a command injection vulnerability in the Perforce::generateP4Command() method, which constructs shell commands by interpolating user-supplied Perforce connection parameters (port, user, client) without proper escaping. An attacker can inject arbitrary commands through these values in a malicious composer.json declaring a Perforce VCS repository, leading to command execution in the context of the user running Composer, even if Perforce is not installed. VCS repositories are only loaded from the root composer.json or the composer config directory, so this cannot be exploited through composer.json files of packages installed as dependencies. Users are at risk if they run Composer commands on untrusted projects with attacker-supplied composer.json files. This issue has been fixed in Composer 2.2.27 (2.2 LTS) and 2.9.6 (mainline).
Published: 2026-04-15T20:47:39.839Z
Updated: 2026-07-15T01:01:19.144Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-67746 |
vulnerable | 2026-06-08 07:41:20.401764 |
Composer vulnerable to ANSI sequence injection
Composer is a dependency manager for PHP. In versions on the 2.x branch prior to 2.2.26 and 2.9.3, attackers controlling remote sources that Composer downloads from might in some way inject ANSI control characters in the terminal output of various Composer commands, causing mangled output and potentially leading to confusion or DoS of the terminal application. There is no proven exploit and this has thus a low severity but we still publish a CVE as it has potential for abuse, and we want to be on the safe side informing users that they should upgrade. Versions 2.2.26 and 2.9.3 contain a patch for the issue.
Published: 2025-12-30T16:11:04.776Z
Updated: 2025-12-30T17:30:04.562Z Reference links
|
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2024-24821 |
vulnerable | 2026-06-08 06:29:41.835619 |
Code execution and possible privilege escalation via compromised InstalledVersions.php or installed.php in Composer
HIGH (8.8)
Composer is a dependency Manager for the PHP language. In affected versions several files within the local working directory are included during the invocation of Composer and in the context of the executing user. As such, under certain conditions arbitrary code execution may lead to local privilege escalation, provide lateral user movement or malicious code execution when Composer is invoked within a directory with tampered files. All Composer CLI commands are affected, including composer.phar's self-update. The following scenarios are of high risk: Composer being run with sudo, Pipelines which may execute Composer on untrusted projects, Shared environments with developers who run Composer individually on the same project. This vulnerability has been addressed in versions 2.7.0 and 2.2.23. It is advised that the patched versions are applied at the earliest convenience. Where not possible, the following should be addressed: Remove all sudo composer privileges for all users to mitigate root privilege escalation, and avoid running Composer within an untrusted directory, or if needed, verify that the contents of `vendor/composer/InstalledVersions.php` and `vendor/composer/installed.php` do not include untrusted code. A reset can also be done on these files by the following:```sh
rm vendor/composer/installed.php vendor/composer/InstalledVersions.php
composer install --no-scripts --no-plugins
```
Published: 2024-02-08T23:54:04.058Z
Updated: 2025-06-17T21:29:29.230Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2023-43655 |
vulnerable | 2026-06-08 06:12:37.663638 |
Remote Code Execution via web-accessible composer.phar
MEDIUM (6.4)
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.
Published: 2023-09-29T19:33:32.183Z
Updated: 2025-06-18T13:59:58.568Z Reference links
|
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2022-24828 |
vulnerable | 2026-06-08 05:41:44.708373 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2021-41116 |
vulnerable | 2026-06-08 05:35:19.768103 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2021-29472 |
vulnerable | 2026-06-08 05:31:26.426495 | db.gcve.eu details were skipped to keep the page responsive. | Imported from gcve-enriched-dumps CVE data |
Contribute
You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.