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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-85396— rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix

Quick assessment

Affected
rubyzip rubyzip
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

RubyZip 版本低于 3.4.0 存在一个路径遍历(Path Traversal)漏洞,位于 方法中。该漏洞的成因是:在验证解压路径时,使用不带尾部分隔符的前缀比较方式,未能正确校验解压路径。 攻击者可以构造存档条目,例如将文件名设为 ,从而将文件写入目标目录之外的同级路径(即共享目标前缀的相邻目录)。

CVSS 7.5 · High

Possible ATT&CK Techniques 1 AI

T1079.001

Affected Version Matrix 2

VendorProduct Version RangeStatus
rubyzip rubyzip < 3.4.0 affected
3.4.0 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-85396

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
rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix
Source: CVE Program / CVE List V5
Vulnerability Description
rubyzip versions before 3.4.0 contain a path traversal vulnerability in Zip::Entry#extract that fails to properly validate extraction paths using prefix comparison without trailing separators. Attackers can craft archive entries with names like ../upload_backup/owned.sh to write files outside the intended extraction directory into sibling paths sharing the destination prefix.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
rubyzip rubyzip 0 ~ 3.4.0 -

II. Public POCs for CVE-2026-85396

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-85396

登录查看更多情报信息。

Patches & Fixes for CVE-2026-85396 (1)

Vendor Advisories for CVE-2026-85396 (1)

Security Blog Posts for CVE-2026-85396 (1)

Vendor Pages for CVE-2026-85396 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2026-85396

No comments yet


Leave a comment