CVE-2026-59946CWE-22CWE-732

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

Medium · published July 8, 2026

CVSS v3.1
6.1
EPSS
0%
Percentile
3.1
In the wild
Unconfirmed
What it is

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 host file to a world-readable and world-executable mode during composer install, update, or require. This issue is fixed in versions 2.2.29 and 2.10.2.

The record
Technical detail
CVSS v3.1
6.1 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00141 · 3.1th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-732 · Incorrect Permission Assignment for Critical Resource
Published
2026-07-08T19:32Z
EPSS history
Timeline
  • 08 JUL 19:32Z
    Composer: Path traversal in package bin field lets dependencies chmod arbitrary host files
    cvelistv5