CVE-2026-85396
rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix
Reported by vulncheck · Published September 3, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| logstash-9.5 | Chainguard | 9.5.5-r0 |
| logstash-fips-9.4 | Chainguard | 9.4.8-r0 |
| rubyzip | rubyzip | 3.4.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| rubyzip | rubyzip | 0, 3.4.0 |
| chainguard | logstash-9.5 | 0 |
| chainguard | logstash-fips-9.4 | 0 |
| rubyzip | rubyzip | 3.4.0, 0 |
| rubyzip_project | rubyzip | 0 |
| wolfi | cinc-auditor | 0 |
| RubyGems | rubyzip | 0 |
| wolfi | logstash-9.4 | 0 |
| chainguard | logstash-9.4 | 0 |
| chainguard | logstash-fips-9.5 | 0 |
| chainguard | cinc-auditor | 0 |
Timeline
- Sep 3, 2026 CVE Published
- Sep 4, 2026 EPSS Score (27 in total, the first dated here)
- Oct 30, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-85396
vulnetix vdb fixes CVE-2026-85396
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-85396/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- Patch Commit patch
- product
- rubyzip v3.4.0 Release Notes release-notes
- technical-description
- technical-description
- VulnCheck Advisory: rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix third-party-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-85396 advisory
- https://github.com/advisories/GHSA-47m2-wp7j-p9vc advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2026-85396.yml advisory