Red Hat VEX
RHVEX-CVE-2026-31802
tar: tar: File overwrite via drive-relative symlink traversal
Details
A flaw was found in tar. An attacker can exploit this vulnerability by crafting a malicious tar archive containing a drive-relative symlink. This symlink, such as C:../../../target.txt, can trick the tar utility into writing files outside the intended extraction directory during normal archive extraction, leading to unauthorized file overwrite.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:6 | tar | All versions, no fix (out of support scope) |
References
- https://access.redhat.com/security/cve/CVE-2026-31802
- https://bugzilla.redhat.com/show_bug.cgi?id=2445881
- https://www.cve.org/CVERecord?id=CVE-2026-31802
- https://nvd.nist.gov/vuln/detail/CVE-2026-31802
- https://github.com/isaacs/node-tar/commit/f48b5fa3b7985ddab96dc0f2125a4ffc9911b6ad
- https://github.com/isaacs/node-tar/security/advisories/GHSA-9ppj-qmqm-q256