Skip to content
OpenAdvisories
High SUSE-SU-2024:2107-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 2

ReleasePackageFixed in
openSUSE · Leap 15.6 php-composer2 2.6.4-150600.3.3.1
SUSE · SLES 15 SP6 Linux Enterprise Module for Web and Scripting 15 SP6 php-composer2 2.6.4-150600.3.3.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