Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-59948— Composer: Arbitrary file write outside vendor via malicious transitive package name

Quick assessment

Affected
composer composer
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Composer是Composer组织开源的一个应用软件。提供一个声明,管理和安装PHP项目的依赖项。 Composer 1.0版本至2.2.29之前版本和2.3.0版本至2.10.2之前版本存在安全漏洞,该漏洞源于依赖解析结果写入或安装前未正确验证包名,可能导致来自不受信任仓库的恶意构造包在安装或更新时将文件写入vendor目录和项目目录之外。

CVSS 7.0 · High EPSS 0.16% · P5

Affected Version Matrix 2

VendorProduct Version RangeStatus
composer composer >= 1.0, < 2.2.29 affected
>= 2.3.0, < 2.10.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-59948

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Composer: Arbitrary file write outside vendor via malicious transitive package name
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
Composer 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Composer是Composer组织开源的一个应用软件。提供一个声明,管理和安装PHP项目的依赖项。 Composer 1.0版本至2.2.29之前版本和2.3.0版本至2.10.2之前版本存在安全漏洞,该漏洞源于依赖解析结果写入或安装前未正确验证包名,可能导致来自不受信任仓库的恶意构造包在安装或更新时将文件写入vendor目录和项目目录之外。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
composer composer >= 1.0, < 2.2.29 -

II. Public POCs for CVE-2026-59948

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 8339 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-59948

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-59948 (3)

Vendor Advisories for CVE-2026-59948 (1)

Vendor Pages for CVE-2026-59948 (1)

Same Patch Batch · composer · 2026-07-08 · 3 CVEs total

CVE-2026-59946 6.1 MEDIUM Composer: Path traversal in package bin field lets dependencies chmod arbitrary host files
CVE-2026-59947 4.7 MEDIUM Composer: URL-embedded HTTP-Basic username leaks to verbose logs (GitHub PAT exposure)

IV. Related Vulnerabilities

V. Comments for CVE-2026-59948

No comments yet


Leave a comment