Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. composer/composer
  4. ›
  5. CVE-2026-59944

CVE-2026-59944: Composer: GHSA-gjfg-22fp-rrxx fix bypass via symlinked package bin path

October 2, 2026

A malicious or compromised Composer package could, when installed as a dependency, cause Composer to change the permissions of a file outside that package’s own directory and to register a runnable vendor/bin command that points at that outside file. This is a path traversal and link following issue. It is not remote code execution, the attacker gains no ability to read or receive your data directly. The risk is that a file which was readable only by its owner, but modifiable by Composer, can be made world readable and executable, which is enough to expose its contents on a shared or multi tenant host. The earlier hardening from GHSA-gjfg-22fp-rrxx can be bypassed, since it only rejected literal .. path segments in a package’s declared binaries, and was only applied in a single place during dependency resolution.

References

  • github.com/advisories/GHSA-96h3-5x6v-m776
  • github.com/composer/composer/commit/53b8bb4c24697b2f00a18cf1ef35a10392701b89
  • github.com/composer/composer/commit/ad649fdfdf8ed826d4a34e0e5690c76a0b4833aa
  • github.com/composer/composer/releases/tag/2.10.3
  • github.com/composer/composer/releases/tag/2.2.30
  • github.com/composer/composer/security/advisories/GHSA-96h3-5x6v-m776
  • nvd.nist.gov/vuln/detail/CVE-2026-59944

Code Behaviors & Features

Detect and mitigate CVE-2026-59944 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0.0 before 2.2.30, all versions starting from 2.3.0 before 2.10.3

Fixed versions

  • 2.2.30
  • 2.10.3

Solution

Upgrade to versions 2.2.30, 2.10.3 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-59: Improper Link Resolution Before File Access ('Link Following')
  • CWE-732: Incorrect Permission Assignment for Critical Resource

Source file

packagist/composer/composer/CVE-2026-59944.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 12 Oct 2026 00:23:14 +0000.