SecurityContext

CVE-2026-85396: rubyzip - Path Traversal

  • Cve: CVE-2026-85396
  • Name: rubyzip - Path Traversal
  • 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.
  • Impact: Attackers can write files outside the intended extraction directory, potentially leading to arbitrary file overwrite and system compromise.
  • Remediation: Update to version 3.4.0 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_write, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Epss score: 0.00564
  • Epss percentile: 0.47795
  • Assignee: [email protected]
  • Published at: 2026-09-03T19:17:31Z
  • Age in days: 82
  • Modified at: 2026-09-24T20:28:01Z
  • Patch available: yes
  • References total: 6
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-85396
  • Nvd status: awaiting_analysis
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/geo-chen/oss/blob/main/rubyzip.md
https://github.com/rubyzip/rubyzip
https://github.com/rubyzip/rubyzip/blob/v3.3.1/lib/zip/entry.rb
https://github.com/rubyzip/rubyzip/commit/17edfbf4423b83211b075acc23a7d8640da63449
https://github.com/rubyzip/rubyzip/releases/tag/v3.4.0
https://www.vulncheck.com/advisories/rubyzip-before-3.4.0-path-traversal-in-zip-entry-extract-via-sibling-directory-prefix

Products

ProductAffectedPlatform boundSourcesUrl
rubyzip_project:rubyzip< 3.4.0nocna/v1/products/rubyzip_project/rubyzip

Projects

RepositoryLink kindsIndexedUrl
rubyzip/rubyzipcommit, fix, package, releasesyes/v1/repositories/rubyzip/rubyzip

Index

  • Repositories: 343
  • Repositories high signal: 186
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts