Arbitrary Code Injection Affecting composer package, versions <0:2.5.8-2.amzn2023.0.1


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
1.2% (85th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-COMPOSER-6033480
  • published25 Oct 2023
  • disclosed29 Sept 2023

Introduced: 29 Sep 2023

CVE-2023-43655  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 composer to version 0:2.5.8-2.amzn2023.0.1 or higher.
This issue was patched in ALAS2023-2023-384.

NVD Description

Note: Versions mentioned in the description apply only to the upstream composer package and not the composer package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

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.

CVSS Scores

version 3.1