Advisory

GHSA-frqg-7g38-6gcf

Also known as: BIT-composer-2021-41116, CVE-2021-41116

Summary

Improper escaping of command arguments on Windows leading to command injection

Details

Impact
Windows users running Composer to install untrusted dependencies are affected and should definitely upgrade for safety. Other OSs and WSL are not affected.

Patches
1.10.23 and 2.1.9 fix the issue

Workarounds
None

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-10-05 20:23 UTC
Modified
2026-07-08 06:29 UTC

Affected packages and fixes

composer/composer

Packagist · All systems

Affected

  • introduced 0, fixed 1.10.23 (ecosystem)

Fixed versions

1.10.23

Fix

The export has no generic command for this ecosystem.

composer/composer

Packagist · All systems

Affected

  • introduced 2.0.0-alpha1, fixed 2.1.9 (ecosystem)

Fixed versions

2.1.9

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences