Bug 1226182 (CVE-2024-35242) - VUL-0: CVE-2024-35242: php-composer2: command injection via specially crafted branch names during repository cloning
Summary: VUL-0: CVE-2024-35242: php-composer2: command injection via specially crafted...
Status: RESOLVED FIXED
Alias: CVE-2024-35242
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Major
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/410007/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-35242:7.8:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-11 09:29 UTC by SMASH SMASH
Modified: 2024-06-24 13:52 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-06-11 09:29:40 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-35242
https://www.cve.org/CVERecord?id=CVE-2024-35242
https://github.com/composer/composer/commit/6bd43dff859c597c09bd03a7e7d6443822d0a396
https://github.com/composer/composer/commit/fc57b93603d7d90b71ca8ec77b1c8a9171fdb467
https://github.com/composer/composer/security/advisories/GHSA-v9qv-c7wm-wgmf
Comment 2 Petr Gajdos 2024-06-14 10:03:35 UTC
Submitted for TW, 15sp6, 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-06-24 13:52:02 UTC
All done, closing.