CVE-2013-4420 Path traversal in n/a

Medium 5.8 Published Updated

Remote attackers can overwrite arbitrary files via directory traversal in crafted tar files processed by libtar.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2013-4420?

CVE-2013-4420 is a medium-severity path traversal vulnerability in n/a, published on 20 Feb 2014. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Multiple directory traversal vulnerabilities in the (1) tar_extract_glob and (2) tar_extract_all functions in libtar 1.2.20 and earlier allow remote attackers to overwrite arbitrary files via a .. (dot dot) in a crafted tar file.

Weakness: CWE-22

Which versions are affected by CVE-2013-4420?

It affects 1 product.

Products include Feep Libtar.

How do I fix CVE-2013-4420?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2013-4420 being exploited?

There is no known exploitation of CVE-2013-4420 in the wild and no public exploit code.

Sources

Also known as AZL-34945, AZL-6651, DEBIAN-CVE-2013-4420, DSA-2863-1, GHSA-35h8-7h6c-x54q, MGASA-2014-0090.

Is CVE-2013-4420 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free