Skip to content
OpenAdvisories
High SUSE-SU-2026:3105-1 9 CVEs

Security update for php-composer2

Published Jul 17, 2026 · Updated Jul 18, 2026

Summary

This update for php-composer2 fixes the following issues:

- CVE-2026-45793: Github Actions issued `GITHUB_TOKEN` disclosure in GitHub Actions logs (bsc#1271504).
- CVE-2026-59946: path traversal in package `bin` field lets dependencies `chmod` arbitrary host files (bsc#1271151).
- CVE-2026-59947: URL-embedded HTTP-Basic username leaks to verbose logs (bsc#1271129).
- CVE-2026-59948: arbitrary file write outside `vendor`directory via malicious transitive package name (bsc#1271122).

Fixed packages 3

ReleasePackageFixed in
SUSE · SLES 15 SP7 Linux Enterprise Module for Web and Scripting 15 SP7 php-composer2 2.6.4-150600.3.12.1
SUSE · SLES 15 SP6 Linux Enterprise Server 15 SP6-LTSS php-composer2 2.6.4-150600.3.12.1
SUSE · SLES for SAP 15 SP6 Linux Enterprise Server for SAP Applications 15 SP6 php-composer2 2.6.4-150600.3.12.1

Vulnerabilities 9

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

  • High 8.8
    CVE-2026-40261 Public exploit

    Composer has Command Injection via Malicious Perforce Reference

    Composer is a dependency manager for PHP. Versions 1.0 through 2.2.26 and 2.3 through 2.9.5 contain a command injection vulnerability in the Perforce::syncCodeBase() method, which appends the $sourceReference parameter to a shell command without proper escapi…

  • High 7.8
    CVE-2026-40176 Public exploit

    Composer is vulnerable to Command Injection via Malicious Perforce Repository

    Composer is a dependency manager for PHP. Versions 1.0 through 2.2.26 and 2.3 through 2.9.5 contain a command injection vulnerability in the Perforce::generateP4Command() method, which constructs shell commands by interpolating user-supplied Perforce connecti…

  • High 7.5

    Composer: Github Actions issued GITHUB_TOKEN disclosure in GitHub Actions logs

    Composer is a dependency Manager for the PHP language. Prior to 1.10.28, 2.2.28, and 2.9.8, Composer\IO\BaseIO::loadConfiguration() validates GitHub OAuth tokens with the regex ^[.A-Za-z0-9_]+$ and interpolates rejected tokens into an UnexpectedValueException…

  • High 7.0

    Composer: Arbitrary file write outside vendor via malicious transitive package name

    Composer is a dependency Manager for the PHP language. Prior to 2.2.29 and 2.10.2, a maliciously crafted package from an untrusted repository other than Packagist.org or Private Packagist can cause Composer to write attacker-controlled files outside the vendo…

  • Medium 6.1

    Composer: Path traversal in package bin field lets dependencies chmod arbitrary host files

    Composer is a dependency Manager for the PHP language. Prior to 2.2.29 and 2.10.2, a Composer package bin entry containing .. path segments can resolve outside the package install directory and cause Composer's binary installation flow to chmod an existing ho…

  • Medium 4.7

    Composer: URL-embedded HTTP-Basic username leaks to verbose logs (GitHub PAT exposure)

    Composer is a dependency Manager for the PHP language. Prior to 2.2.29 and 2.10.2, when Composer is run with -vvv debug verbosity, it could print a credential embedded in the username slot of a repository or package URL, such as a GitHub Personal Access Token…

  • Low 1.3

    Composer vulnerable to ANSI sequence injection

    Composer is a dependency manager for PHP. In versions on the 2.x branch prior to 2.2.26 and 2.9.3, attackers controlling remote sources that Composer downloads from might in some way inject ANSI control characters in the terminal output of various Composer co…

References

  • report
    https://bugzilla.suse.com/1271122
  • report
    https://bugzilla.suse.com/1271129
  • report
    https://bugzilla.suse.com/1271151
  • report
    https://bugzilla.suse.com/1271504
  • web
    https://www.suse.com/security/cve/CVE-2024-35241
  • web
    https://www.suse.com/security/cve/CVE-2024-35242
  • web
    https://www.suse.com/security/cve/CVE-2025-67746
  • web
    https://www.suse.com/security/cve/CVE-2026-40176
  • web
    https://www.suse.com/security/cve/CVE-2026-40261
  • web
    https://www.suse.com/security/cve/CVE-2026-45793
  • web
    https://www.suse.com/security/cve/CVE-2026-59946
  • web
    https://www.suse.com/security/cve/CVE-2026-59947
  • web
    https://www.suse.com/security/cve/CVE-2026-59948