rubyzip versions before 3.4.0 contain a path traversal vulnerability in Zip::Entry#extract that fails to properly validate extraction paths using pref...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:16.04:LTSruby-zip |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSruby-zip |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSruby-zip |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSruby-zip |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSruby-zip |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSruby-zip |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:16.04:LTSruby-zip |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
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: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report github.com
- report github.com
- report github.com
- report github.com
- report github.com
- report github.com
- report vulncheck.com