Skip to main content

Composer CVE-2026-59946

| EUVDEUVD-2026-42360 MEDIUM
Path Traversal (CWE-22)
2026-07-08 GitHub_M GHSA-gjfg-22fp-rrxx
6.1
CVSS 3.1 · Vendor: GitHub_M
Share

Severity by source

Vendor (GitHub_M) PRIMARY
6.1 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
vuln.today AI
6.1 MEDIUM

AV:L because Composer runs locally; PR:N because the attacker is the package author requiring no victim-system privileges; UI:R because the victim must actively invoke composer; C:H for potential exposure of sensitive files; I:L for chmod permission change without content modification.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
SUSE
5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Red Hat
5.6 MEDIUM
qualitative

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Jul 08, 2026 - 21:04 EUVD
Analysis Generated
Jul 08, 2026 - 20:46 vuln.today

DescriptionCVE.org

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.

AnalysisAI

Path traversal in Composer's binary installation flow allows a malicious PHP package to cause arbitrary host files to be chmod'd world-readable and world-executable. Any user running composer install, composer update, or composer require against a package whose bin entry contains .. path segments is vulnerable - Composer follows the traversal and applies chmod outside the intended package install directory. This is a supply chain attack vector affecting Composer prior to 2.2.29 and 2.10.2; no public exploit or CISA KEV listing is identified at time of analysis, but the impact to developer and CI/CD environments is significant given the confidentiality risk of exposing sensitive host files.

Technical ContextAI

Composer (cpe:2.3:a:composer:composer:*:*:*:*:*:*:*:*) is the canonical PHP dependency manager. During package installation, Composer processes bin entries declared in a package's composer.json to install CLI binaries into the project's vendor/bin directory. The vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory) arises because Composer does not sanitize or canonicalize bin paths before resolving them, allowing sequences like ../../etc/cron.d/target to escape the package install root. Once resolved, Composer applies a chmod call - granting world-readable and world-executable permissions - to whatever file path results from the traversal, regardless of whether it is inside the package directory. The flaw is triggered by the standard install/update/require workflows and requires no special Composer configuration.

RemediationAI

Upgrade to Composer 2.2.29 (LTS branch) or 2.10.2 (current branch) immediately - both releases are available at https://github.com/composer/composer/releases/tag/2.2.29 and https://github.com/composer/composer/releases/tag/2.10.2 respectively. The fixes are confirmed via commits https://github.com/composer/composer/commit/502c6c4f699802d9cf464728b3e8a95674f919a0 and https://github.com/composer/composer/commit/c50b1efd13ebd73f6dca19b31424c5a02bf93cc1. If an immediate upgrade is not possible, a practical compensating control is to audit all third-party packages being installed for suspicious bin entries containing .. path components before running Composer; this can be done by inspecting vendor/<package>/composer.json files or using composer show --format=json and reviewing bin fields. Running Composer as a minimally privileged user limits the set of files that can be affected by the traversal chmod - avoid running composer install as root or with elevated CI/CD privileges until patched. Note that auditing bin entries manually is not scalable and is prone to error; patching is the authoritative fix.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Module for Web and Scripting 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise Server 15 SP6-LTSS Fixed
SUSE Linux Enterprise Server for SAP Applications 15 SP6 Fixed
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected

Share

CVE-2026-59946 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy