Live threats

All CVEs / Getcomposer

CVE-2021-41116Getcomposer Composer

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
2.8%
probability of exploitation in 30 days · percentile 87
Auth required
No
Published
Oct 5, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-77
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

Composer is an open source dependency manager for the PHP language. In affected versions windows users running Composer to install untrusted dependencies are subject to command injection and should upgrade their composer version. Other OSs and WSL are not affected. The issue has been resolved in composer versions 1.10.23 and 2.1.9. There are no workarounds for this issue.

Original NVD text.

What to do

  1. Apply the vendor's security update for Composer.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist composer/composer < 1.10.23 1.10.23 composer require "composer/composer:^1.10.23"
Packagist composer/composer ≥ 2.0.0-alpha1 < 2.1.9 2.1.9 composer require "composer/composer:^2.1.9"

Per OSV / GitHub Advisories (GHSA-frqg-7g38-6gcf). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
getcomposercomposer< 1.10.23
getcomposercomposer≥ 2.0.0 < 2.1.9
tenabletenable.sc< 5.21.0

Official sources

References

Links published by the sources. Open them with care.