Bugzilla – Bug 1226182
VUL-0: CVE-2024-35242: php-composer2: command injection via specially crafted branch names during repository cloning
Last modified: 2024-06-24 13:52:02 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
Submitted for TW, 15sp6, 15sp4. I believe all fixed.
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.
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.
All done, closing.