Bug 1226181 (CVE-2024-35241)

Summary: VUL-0: CVE-2024-35241: php-composer2: code execution installing packages in repository with specially crafted branch names
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Major    
Priority: P3 - Medium CC: andrea.mattiazzo
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/410006/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-35241:7.8:(AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-06-11 09:26:08 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-35241
https://www.cve.org/CVERecord?id=CVE-2024-35241
https://github.com/composer/composer/commit/b93fc6ca437da35ae73d667d0618749c763b67d4
https://github.com/composer/composer/commit/ee28354ca8d33c15949ad7de2ce6656ba3f68704
https://github.com/composer/composer/security/advisories/GHSA-47f6-5gq3-vx9c
Comment 2 Petr Gajdos 2024-06-14 10:02:59 UTC
Submitted for TW, 15sp6 and 15sp4.

I believe all fixed.
Comment 4 Maintenance Automation 2024-06-20 16:30:01 UTC
SUSE-SU-2024:2107-1: An update that solves two vulnerabilities can now be installed.

Category: security (important)
Bug References: 1226181, 1226182
CVE References: CVE-2024-35241, CVE-2024-35242
Maintenance Incident: [SUSE:Maintenance:34329](https://smelt.suse.de/incident/34329/)
Sources used:
openSUSE Leap 15.6 (src):
 php-composer2-2.6.4-150600.3.3.1
Web and Scripting Module 15-SP6 (src):
 php-composer2-2.6.4-150600.3.3.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 5 Maintenance Automation 2024-06-20 16:30:03 UTC
SUSE-SU-2024:2106-1: An update that solves two vulnerabilities can now be installed.

Category: security (important)
Bug References: 1226181, 1226182
CVE References: CVE-2024-35241, CVE-2024-35242
Maintenance Incident: [SUSE:Maintenance:34331](https://smelt.suse.de/incident/34331/)
Sources used:
openSUSE Leap 15.4 (src):
 php-composer2-2.2.3-150400.3.12.1
openSUSE Leap 15.5 (src):
 php-composer2-2.2.3-150400.3.12.1
Web and Scripting Module 15-SP5 (src):
 php-composer2-2.2.3-150400.3.12.1
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4 (src):
 php-composer2-2.2.3-150400.3.12.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP4 (src):
 php-composer2-2.2.3-150400.3.12.1
SUSE Linux Enterprise Server 15 SP4 LTSS 15-SP4 (src):
 php-composer2-2.2.3-150400.3.12.1
SUSE Linux Enterprise Server for SAP Applications 15 SP4 (src):
 php-composer2-2.2.3-150400.3.12.1
SUSE Manager Server 4.3 (src):
 php-composer2-2.2.3-150400.3.12.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 6 Andrea Mattiazzo 2024-07-01 13:37:08 UTC
All done, closing.