Bugzilla – Bug 1226181
VUL-0: CVE-2024-35241: php-composer2: code execution installing packages in repository with specially crafted branch names
Last modified: 2024-07-01 13:37: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
Submitted for TW, 15sp6 and 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.