composer/composer
Affected
- introduced
2.0, fixed2.2.24(ecosystem)
Fixed versions
2.2.24
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: BIT-composer-2024-35241, CVE-2024-35241
Composer has a command injection via malicious git branch name
Impact
The status, reinstall and remove commands with packages installed from source via git containing specially crafted branch names in the repository can be used to execute code.
Patches
2.2.24 for 2.2 LTS or 2.7.7 for mainline
Workarounds
Avoid installing dependencies via git by using --prefer-dist or the preferred-install: dist config setting.
High Basis: The source's own band: HIGH
2.0, fixed 2.2.24 (ecosystem)2.2.24
The export has no generic command for this ecosystem.
2.3, fixed 2.7.7 (ecosystem)2.7.7
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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0