USN-8367-1: tar-fs vulnerabilities
It was discovered that tar-fs did not properly limit paths when extracting crafted tar files. An attacker could possibly use this issue to write or overwrite files outside the intended extraction directory. This issue only affected Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2024-12905) It was discovered that tar-fs did not properly validate extraction paths for certain crafted tar archives. An attacker could possibly use this issue to write files outside the intended extraction directory. This issue only affected Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2025-48387) It was discovered that tar-fs had a symlink validation bypass when extracting crafted tar files. An attacker could possibly use this issue to write files outside the intended extraction directory. (CVE-2025-59343)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/node-tar-fsto a version that resolves this vulnerability.Fixed in 3.0.9+~cs2.0.4-1+deb13u1build0.25.10.1 - Upgrade
Upgrade
ubuntu/node-tar-fsto a version that resolves this vulnerability.Fixed in Ubuntu Pro
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which systems are explicitly identified as affected by the path-limiting and path-validation issues?
CVE-2024-12905 and CVE-2025-48387 are identified as affecting Ubuntu 22.04 LTS and Ubuntu 24.04 LTS only. The provided data does not state Ubuntu version restrictions for CVE-2025-59343.
What would an attacker need to exploit these issues?
An attacker would need to cause extraction of a crafted tar archive. The archive can contain paths or symlink behavior that bypasses the intended extraction-directory restrictions.
What is the potential impact of successful exploitation?
Successful exploitation may allow files to be written or overwritten outside the intended extraction directory. This could affect arbitrary locations reachable by the permissions of the process performing extraction.