Description (CNA)
unearth through 0.18.2, fixed in commit 6c78164, contains a path traversal vulnerability in the is_within_directory function that fails to normalize paths before validation, allowing ../ sequences to bypass directory containment checks. Attackers can supply malicious tar archives with symlink members or traversal sequences to write files to arbitrary filesystem locations accessible to the process.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| frostming / unearth | affected 0 through 0.18.2; unaffected 6c78164e7bfa28b8b3d6f247b87e560692e3c8ba |
CWE
CWE-22
References
- https://github.com/frostming/unearth/issues/180
- https://github.com/frostming/unearth/pull/181
- https://github.com/frostming/unearth/commit/6c78164e7bfa28b8b3d6f247b87e560692e3c8ba
- https://www.vulncheck.com/advisories/unearth-path-traversal-via-unnormalized-paths-and-symlink-escape
ADP enrichment
No English description supplied.
No references supplied.