xtractr before 0.4.1 Path Traversal via Output Prefix Check
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| goliftxtractr |
< 0.4.1→ 0.4.1 |
0.4.1 |
Original description The description as published by the source.
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 ../_evil/file to create or overwrite files in sibling directories.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- report github.com
- web github.com
- web pkg.go.dev
- web github.com