Skip to content
OpenAdvisories
High SUSE-SU-2024:2106-1 2 CVEs

Security update for php-composer2

Published Jun 20, 2024 · Updated Feb 4, 2026

Summary

This update for php-composer2 fixes the following issues:

- CVE-2024-35241: Fixed code execution when installing packages in repository with specially crafted branch names (bsc#1226181).
- CVE-2024-35242: Fixed command injection via specially crafted branch names during repository cloning (bsc#1226182).

Fixed packages 7

ReleasePackageFixed in
openSUSE · Leap 15.5 php-composer2 2.2.3-150400.3.12.1
SUSE · SLE HPC 15 SP4 Linux Enterprise High Performance Computing 15 SP4-ESPOS php-composer2 2.2.3-150400.3.12.1
SUSE · SLE HPC 15 SP4 Linux Enterprise High Performance Computing 15 SP4-LTSS php-composer2 2.2.3-150400.3.12.1
SUSE · SLES 15 SP5 Linux Enterprise Module for Web and Scripting 15 SP5 php-composer2 2.2.3-150400.3.12.1
SUSE · SLES 15 SP4 Linux Enterprise Server 15 SP4-LTSS php-composer2 2.2.3-150400.3.12.1
SUSE · SLES for SAP 15 SP4 Linux Enterprise Server for SAP Applications 15 SP4 php-composer2 2.2.3-150400.3.12.1
SUSE · Manager Server 4.3 php-composer2 2.2.3-150400.3.12.1

Vulnerabilities 2

  • High 8.8

    Composer vulnerable to command injection via malicious git branch name

    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…

  • High 8.8
    CVE-2024-35242 Public exploit

    Composer vulnerable to command injection via malicious git/hg branch names

    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 unt…

References

  • report
    https://bugzilla.suse.com/1226181
  • report
    https://bugzilla.suse.com/1226182
  • web
    https://www.suse.com/security/cve/CVE-2024-35241
  • web
    https://www.suse.com/security/cve/CVE-2024-35242