CVE-2004-0970 Path traversal in n/a

Low 2.1 Published Updated

Local attackers can overwrite arbitrary files via symlink attacks on temporary files in gzip scripts, requiring local access.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2004-0970?

CVE-2004-0970 is a low-severity path traversal vulnerability in n/a, published on 20 Oct 2004. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

The (1) gzexe, (2) zdiff, and (3) znew scripts in the gzip package, as used by other packages such as ncompress, allows local users to overwrite files via a symlink attack on temporary files. NOTE: the znew vulnerability may overlap CVE-2003-0367.

Which versions are affected by CVE-2004-0970?

It affects 1 product.

Products include Gnu Gzip.

How do I fix CVE-2004-0970?

Apply the vendor's patch.

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

Is CVE-2004-0970 being exploited?

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

Sources

Also known as DEBIAN-CVE-2004-0970, DSA-588-1, GHSA-2jrh-9rrj-2f59.

Is CVE-2004-0970 in your software?

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

Check your SBOMs for free