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).
Changes for php-composer2:
- fix byte-swapped signature on s390x can cause broken or unsupported signature (bsc#1271729).
Fixed packages 2
| Release | Package | Fixed in |
|---|---|---|
| SUSE · SLES 16.0 Linux Enterprise Server 16.0 | php-composer2 | 2.8.9-160000.4.1 |
| SUSE · SLES for SAP 16.0 Linux Enterprise Server for SAP applications 16.0 | php-composer2 | 2.8.9-160000.4.1 |
Vulnerabilities 7
-
High 8.8CVE-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.8CVE-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
-
report
https://bugzilla.suse.com/1271729
-
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