Problem/Motivation

Cover-My-Behind Disclaimer:
Discussed this with @longwave from the Security Team and this CVE was found suitable to be handled in public.

https://github.com/advisories/GHSA-7c6p-848j-wh5h
https://www.cve.org/CVERecord?id=CVE-2024-24821

Steps to reproduce

$ composer audit
Found 1 security vulnerability advisory affecting 1 package:
+-------------------+------------------------------------------------------------------------+
| Package           | composer/composer                                                                |
| CVE               | CVE-2024-24821                                                                   |
| Title             | Composer code execution and possible privilege escalation via compromised        |
|                   | InstalledVersions.php or installed.php                                           |
| URL               | https://github.com/advisories/GHSA-7c6p-848j-wh5h                                |
| Affected versions | >=2.3.0-rc1,<2.7.0|>=2.0.0-alpha1,<2.2.23                                        |
| Reported at       | 2024-02-08T15:06:38+00:00                                                        |
+-------------------+----------------------------------------------------------------------------------+

Proposed resolution

Update composer/composer to latest and bump the version constraint in composer.json to ^2.7.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3421371

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Spokje created an issue. See original summary.

spokje’s picture

Issue summary: View changes
Status: Active » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Bump seems fine, not sure what to fully test but everything appears green. Locally didn't break anything.

  • longwave committed 9c0a1542 on 10.1.x
    Issue #3421371 by Spokje: Security update composer/composer (CVE-2023-...

  • longwave committed df9a2fa3 on 10.2.x
    Issue #3421371 by Spokje: Security update composer/composer (CVE-2023-...

  • longwave committed 4cbc8e20 on 11.x
    Issue #3421371 by Spokje: Security update composer/composer (CVE-2023-...
longwave’s picture

Version: 11.x-dev » 10.1.x-dev
Status: Reviewed & tested by the community » Fixed

Committed and pushed to all three active branches, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.