xtractr before 0.4.1 Path Traversal via Output Prefix Check
- State
- Published
- Severity
- 5.3 Medium
- Published
- Nov 26, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 26, 2026
Description
Golift xtractr before 0.4.1 contains a path traversal vulnerability that allows attackers to write files outside the extraction root because a strings.HasPrefix output directory check lacks separator awareness. Attackers can supply ZIP, TAR, 7z, RAR, or other archives with entries like ../<outputdir>_evil/file to create or overwrite files in sibling directories.
| Product | Versions |
|---|---|
| xtractr golift | before 0.4.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.3 Medium | VulnCheck | |
| 3.1 | 4.3 Medium | VulnCheck |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://github.com/Unpackerr/unpackerr/issues/641Issue Tracker
- https://github.com/golift/xtractr/pull/159Issue TrackerPatch
- https://github.com/golift/xtractr/commit/5e7856d96b89f639ff696b4752f54f3ae44d409dPatch
- xtractr v0.4.1 Release NotesRelease Notes
- https://github.com/golift/xtractr/blob/v0.4.0/zip.go#L102Technical Details
- VulnCheck Advisory: xtractr before 0.4.1 Path Traversal via Output Prefix CheckThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.