Skip to main content

Composer CVE-2026-59948

| EUVDEUVD-2026-42362 HIGH
Path Traversal (CWE-22)
2026-07-08 GitHub_M GHSA-499r-g7pc-vmp9
7.0
CVSS 3.1 · Vendor: GitHub_M
Share

Severity by source

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

Local trigger via running install/update (AV:L, UI:R); no prior privileges (PR:N) but a hostile non-default repository must be trusted, giving AC:H; arbitrary file write yields full C/I/A impact.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

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

DescriptionCVE.org

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 vendor directory and outside the project during install or update by using an invalid package name that is not correctly validated before dependency-resolution results are written or installed. This issue is fixed in versions 2.2.29 and 2.10.2.

AnalysisAI

Arbitrary file write in Composer (the PHP dependency manager) before 2.2.29 and 2.10.2 allows a malicious package served from an untrusted, third-party repository to write attacker-controlled files outside the vendor directory and outside the project root during an install or update. The flaw stems from an invalid package name that is not validated before dependency-resolution results are written to disk (CWE-22 path traversal), and no public exploit has been identified at time of analysis. Exploitation requires the victim to have configured a non-default, untrusted repository (not Packagist.org or Private Packagist) and to run composer install/update, so it is not a default-configuration remote attack.

Technical ContextAI

Composer is the de facto dependency manager for PHP, resolving and installing packages into a project's vendor/ directory based on composer.json and composer.lock. Package metadata - including the package name - is fetched from configured repositories and normally sourced from the trusted Packagist.org or Private Packagist services. Here, a package name is not correctly validated against Composer's naming rules before the resolved results are written or installed, so a crafted name containing path-traversal sequences causes install paths to escape vendor/ and the project directory (CWE-22, Improper Limitation of a Pathname to a Restricted Directory, 'path traversal'). The single affected CPE, cpe:2.3:a:composer:composer:*:*:*:*:*:*:*:*, covers the Composer application itself across all pre-fix versions on the two maintained branches (2.2.x and 2.10.x).

RemediationAI

Vendor-released patch: upgrade Composer to 2.2.29 (if you must stay on the 2.2 LTS line) or 2.10.2 (current branch), per advisory GHSA-499r-g7pc-vmp9 (https://github.com/composer/composer/security/advisories/GHSA-499r-g7pc-vmp9); run 'composer self-update' or rebuild your CI/build image to pin one of these fixed versions. Until you can patch, the most effective compensating control is to restrict Composer to trusted repositories only - remove or avoid custom 'repositories' entries in composer.json that point to untrusted VCS/composer/path sources and rely solely on Packagist.org or Private Packagist, since the vulnerability cannot be triggered by packages from those trusted services; the trade-off is that legitimate use of self-hosted or third-party repositories is temporarily disabled. Additionally, run install/update inside isolated, least-privilege build containers so any file write escaping the project cannot reach sensitive host paths (trade-off: added CI/build tooling overhead). The underlying fix commits are 502c6c4f699802d9cf464728b3e8a95674f919a0 and c50b1efd13ebd73f6dca19b31424c5a02bf93cc1.

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: Important
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-59948 vulnerability details – vuln.today

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