CVE-2024-35242 Affecting composer package, versions <0:2.5.8-2.amzn2023.0.4


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.05% (18th 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-7547687
  • published23 Jul 2024
  • disclosed10 Jun 2024

Introduced: 10 Jun 2024

CVE-2024-35242  (opens in a new tab)

How to fix?

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

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. On the 2.x branch prior to versions 2.2.24 and 2.7.7, the composer install command running inside a git/hg repository which has specially crafted branch names can lead to command injection. This requires cloning untrusted repositories. Patches are available in version 2.2.24 for 2.2 LTS or 2.7.7 for mainline. As a workaround, avoid cloning potentially compromised repositories.

CVSS Scores

version 3.1