Skip to content
OpenAdvisories
High SUSE-SU-2026:4283-1 6 CVEs

Security update for php-composer2

Published Sep 22, 2026 · Updated Sep 23, 2026

Summary

This update for php-composer2 fixes the following issues:

- CVE-2026-45793: GitHub OAuth tokens failing regex validation can cause credential disclosure (bsc#1271504).
- CVE-2026-59944: path traversal and link following issue can make files world readable and executable (bsc#1279898).
- CVE-2026-59946: package bin entries with path segments can cause unintended host file permission modifications
(bsc#1271152).
- CVE-2026-59947: unsanitized URL credential handling in debug output within Composer can allow sensitive token
disclosure (bsc#1271130).
- CVE-2026-59948: missing package name validation during dependency resolution in Composer can allow path traversal
(bsc#1271123).
- CVE-2026-84361: arbitrary code execution via malicious Perforce source URL (bsc#1278257).

Changes for php-composer2:

- version update to 2.2.30:

* Fixed command injection via malicious Perforce url (GHSA-rvx4-ffvw-m9q3)
* Sanitize URL-embedded usernames/token in a few more places (#13045)
* Fixed matching of gitlab URLs to avoid possible credential leak to the wrong domain (#13042)

- fix a regression on s390x due last change (bsc#1271729).

- version update to 2.2.29:

* Validate package names (GHSA-499r-g7pc-vmp9)
* Validate package bin paths against path traversal (GHSA-gjfg-22fp-rrxx)
* Sanitize URL-embedded usernames/token in verbose output (GHSA-g6xq-892h-64w3)
* Only follow HTTP redirects from HTTP responses (#12948)
* Prevent phar metadata unserialization on unsafe PHP versions (#12946)
* Sanitize JSON parse errors in http responses to avoid leaking response body data (#12959)
* Fixed GitHub token validation to be even more relaxed (#12856)

- version update to 2.2.28.

Fixed packages 8

ReleasePackageFixed in
SUSE · SLE HPC 15 SP4 Linux Enterprise High Performance Computing 15 SP4-ESPOS php-composer2 2.2.30-150400.3.21.1
SUSE · SLE HPC 15 SP4 Linux Enterprise High Performance Computing 15 SP4-LTSS php-composer2 2.2.30-150400.3.21.1
SUSE · SLE HPC 15 SP5 Linux Enterprise High Performance Computing 15 SP5-ESPOS php-composer2 2.2.30-150400.3.21.1
SUSE · SLE HPC 15 SP5 Linux Enterprise High Performance Computing 15 SP5-LTSS php-composer2 2.2.30-150400.3.21.1
SUSE · SLES 15 SP4 Linux Enterprise Server 15 SP4-LTSS php-composer2 2.2.30-150400.3.21.1
SUSE · SLES 15 SP5 Linux Enterprise Server 15 SP5-LTSS php-composer2 2.2.30-150400.3.21.1
SUSE · SLES for SAP 15 SP4 Linux Enterprise Server for SAP Applications 15 SP4 php-composer2 2.2.30-150400.3.21.1
SUSE · SLES for SAP 15 SP5 Linux Enterprise Server for SAP Applications 15 SP5 php-composer2 2.2.30-150400.3.21.1

Vulnerabilities 6

  • High 7.7
    CVE-2026-84361 Public exploit

    Composer: Perforce source URL permits P4PORT `rsh:` command execution

    Composer is a dependency Manager for the PHP language. From 1.0 until 2.2.30 and 2.10.3, a malicious dependency package from a custom Composer repository or an untrusted composer.lock file could set source.type to perforce and source.url to an rsh: or jsh: P4…

  • 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: CVE-2026-59946 fix bypass via symlinked package bin path

    Composer is a dependency Manager for the PHP language. From 1.0 until 2.2.30 and from 2.3.0 until 2.10.3, a malicious or compromised dependency can bypass the earlier CVE-2026-59946 binary-path hardening because Composer validates literal parent-directory seg…

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

References

  • report
    https://bugzilla.suse.com/1271123
  • report
    https://bugzilla.suse.com/1271130
  • report
    https://bugzilla.suse.com/1271152
  • report
    https://bugzilla.suse.com/1271504
  • report
    https://bugzilla.suse.com/1271729
  • report
    https://bugzilla.suse.com/1278257
  • report
    https://bugzilla.suse.com/1279898
  • web
    https://www.suse.com/security/cve/CVE-2026-45793
  • web
    https://www.suse.com/security/cve/CVE-2026-59944
  • 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
  • web
    https://www.suse.com/security/cve/CVE-2026-84361