CVE-2024-35241 Affecting composer package, versions <2.7.7-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

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-ALPINE320-COMPOSER-7244626
  • published11 Jun 2024
  • disclosed10 Jun 2024

Introduced: 10 Jun 2024

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

How to fix?

Upgrade Alpine:3.20 composer to version 2.7.7-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream composer package and not the composer package as distributed by Alpine. See How to fix? for Alpine:3.20 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 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 for this issue are available in version 2.2.24 for 2.2 LTS or 2.7.7 for mainline. As a workaround, avoid installing dependencies via git by using --prefer-dist or the preferred-install: dist config setting.

CVSS Scores

version 3.1