Advisory

GHSA-jm6m-4632-36hf

Also known as: BIT-composer-2023-43655, CVE-2023-43655

Summary

Composer Remote Code Execution vulnerability via web-accessible composer.phar

Details

Impact

Users publishing a composer.phar to a public web-accessible server where the composer.phar can be executed as a php file may be impacted if PHP also has register_argc_argv enabled in php.ini.

Patches

2.6.4, 2.2.22 and 1.10.27 patch this vulnerability.

Workarounds

Make sure register_argc_argv is disabled in php.ini, and avoid publishing composer.phar to the web as this really should not happen.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-09-29 20:39 UTC
Modified
2025-02-13 19:36 UTC

Affected packages and fixes

composer/composer

Packagist · All systems

Affected

  • introduced 0, fixed 1.10.27 (ecosystem)

Fixed versions

1.10.27

Fix

The export has no generic command for this ecosystem.

composer/composer

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.2.22 (ecosystem)

Fixed versions

2.2.22

Fix

The export has no generic command for this ecosystem.

composer/composer

Packagist · All systems

Affected

  • introduced 2.3.0, fixed 2.6.4 (ecosystem)

Fixed versions

2.6.4

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