cve.bz

CVE-2026-59948 composer composer: Path traversal

7.0 highEPSS 0.1%Fix available

High (7.0) in composer composer. EPSS 0.1% estimated probability of exploitation activity in the next 30 days. Fixed in composer/composer 2.10.2, 2.2.29.

On this page
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.

Severity

CVSS 3.1

7.0 high
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 3rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-07-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-787 Out-of-bounds Write
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-59948 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-59948?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-59948?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-59948 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
composer>= 1.0, < 2.2.29
composer>= 2.3.0, < 2.10.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-499r-g7pc-vmp9Packagistcomposer/composer>=2.3.0 <2.10.22.10.2
GHSA-499r-g7pc-vmp9Packagistcomposer/composer>=1.0.0 <2.2.292.2.29

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12composerno fix listedDEBIAN-CVE-2026-59948
Debian13composer2.8.8-1+deb13u4DEBIAN-CVE-2026-59948
Debian14composer2.10.2-1DEBIAN-CVE-2026-59948
Ubuntu25.10, 26.04:LTS, 26.10 and 5 morecomposerno fix listedUBUNTU-CVE-2026-59948
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morephp-composer22.2.30-150400.3.21.1SUSE-SU-2026:4283-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morephp-composer22.2.30-150400.3.24.1SUSE-SU-2026:4589-1
SUSELinux Enterprise Module for Web and Scripting 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6php-composer22.6.4-150600.3.12.1SUSE-SU-2026:3105-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0php-composer22.8.9-160000.4.1SUSE-SU-2026:23116-1 SUSE-SU-2026:23138-1
openSUSELeap 16.0php-composer22.8.9-160000.4.1openSUSE-SU-2026:21520-1
openSUSETumbleweedphp-composer22.10.2-1.1openSUSE-SU-2026:11268-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat ships Composer version 2.10.2 in its products, which already includes the fix for this issue. No action is required.

ProductPackageStateAdvisory
Red Hat Hardened ImagescomposerNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-59948.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON