Every CVE Search/ Get API key

CVE-2026-85396

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

8.7 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
High
Availability
None

Exploit likelihood

0.56%Up 0.2 points since Sep 4, 2026
90%50%10%1%

What each source reports

CVE List Score used 8.7

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

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.

Record
CVE-2026-85396
CVSS 4.0
8.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-22
Updated
2026-11-02
EUVDEUVD-2026-70673 8.7

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.

Record
EUVD-2026-70673
CVSS 4.0
8.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-47m2-wp7j-p9vc 8.7

rubyzip path traversal vulnerability

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.

Record
GHSA-47m2-wp7j-p9vc
CVSS 4.0
8.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-22
Updated
2026-11-02
NVD 8.7

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.

Record
CVE-2026-85396
CVSS 4.0
8.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-22
Updated
2026-11-02
OSV 8.7

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

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.

Record
CVE-2026-85396
CVSS 4.0
8.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-22
Updated
2026-11-02
OSVDEBIAN-CVE-2026-85396 7.5

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.

Record
DEBIAN-CVE-2026-85396
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSVGHSA-47m2-wp7j-p9vc 8.7

rubyzip path traversal vulnerability

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.

Record
GHSA-47m2-wp7j-p9vc
CVSS 4.0
8.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-22
Updated
2026-11-02
OSVUBUNTU-CVE-2026-85396 8.7

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.

Record
UBUNTU-CVE-2026-85396
CVSS 4.0
8.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSVAZL-99087 No score

CVE-2026-85396 affecting package rubygem-rubyzip 2.3.2-1

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.

Record
AZL-99087
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
rubyzip
RubyGems
before 3.4.0
3.4.0
rubygem-rubyzip
Azure Linux:3
through 2.3.2-1 None known
ruby-zip
Debian:12
All versions, plus listed versions
2.3.2-13.2.2+dfsg-13.2.2-13.2.2-23.4.0+dfsg-13.4.1+dfsg-13.5.0+dfsg-13.7.0+dfsg-1
None known
ruby-zip
Debian:13
All versions, plus listed versions
2.3.2-13.2.2+dfsg-13.2.2-13.2.2-23.4.0+dfsg-13.4.1+dfsg-13.5.0+dfsg-13.7.0+dfsg-1
None known
ruby-zip
Debian:14
before 3.4.0+dfsg-1, plus listed versions
2.3.2-13.2.2+dfsg-13.2.2-13.2.2-2
3.4.0+dfsg-1
rubyzip
RubyGems
before 3.4.0, plus listed versions
0.5.110.5.120.5.70.5.80.5.9
Show 44 moreShow less
0.9.10.9.40.9.50.9.6.10.9.70.9.80.9.91.0.01.0.0.beta11.1.01.1.11.1.21.1.31.1.41.1.51.1.61.1.71.2.01.2.11.2.21.2.31.2.41.3.02.0.02.1.02.2.02.3.02.3.12.3.22.4.12.4.rc13.0.03.0.0.alpha3.0.0.rc13.0.0.rc23.0.13.0.23.1.03.1.13.2.03.2.13.2.23.3.03.3.1
3.4.0
ruby-zip
Ubuntu:16.04:LTS
All versions, plus listed versions
1.1.7-1
None known
ruby-zip
Ubuntu:18.04:LTS
All versions, plus listed versions
1.2.1-11.2.1-1.1~build0.18.04.1
None known
ruby-zip
Ubuntu:20.04:LTS
All versions, plus listed versions
1.2.2-12.0.0-2
None known
ruby-zip
Ubuntu:22.04:LTS
All versions, plus listed versions
2.0.0-22.3.0-2
None known
ruby-zip
Ubuntu:24.04:LTS
All versions, plus listed versions
2.3.2-1
None known
ruby-zip
Ubuntu:26.04:LTS
All versions, plus listed versions
2.3.2-13.2.2-13.2.2-2
None known

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-85396 is a high vulnerability (CVSS 8.7) in Rubyzip, published September 3, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.56%, the 47th percentile. Fixed in rubyzip 3.4.0.

References

Show 8 moreShow less
MoveEnter Open