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

Goal: 1000 CNY · Raised: 1359 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是rubyzip组织的一个压缩文件处理库。 rubyzip 3.4.0之前版本存在路径遍历漏洞,该漏洞源于Zip::Entry#extract在提取路径验证中使用不带尾部分隔符的前缀比较,导致路径遍历,攻击者可利用特制归档条目(如../upload_backup/owned.sh)将文件写入预期提取目录之外共享目标前缀的兄弟路径。

CVSS 7.5 · High EPSS 0.56% · P46

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
Vulnerability Title
rubyzip 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
rubyzip是rubyzip组织的一个压缩文件处理库。 rubyzip 3.4.0之前版本存在路径遍历漏洞,该漏洞源于Zip::Entry#extract在提取路径验证中使用不带尾部分隔符的前缀比较,导致路径遍历,攻击者可利用特制归档条目(如../upload_backup/owned.sh)将文件写入预期提取目录之外共享目标前缀的兄弟路径。
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
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