CVE-2007-0159 Path traversal in n/a

Medium 6.4 Published Updated

Remote malicious update servers can overwrite arbitrary files via path traversal in the GeoIP library database update function.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2007-0159?

CVE-2007-0159 is a medium-severity path traversal vulnerability in n/a, published on 10 Jan 2007. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Directory traversal vulnerability in the GeoIP_update_database_general function in libGeoIP/GeoIPUpdate.c in GeoIP 1.4.0 allows remote malicious update servers (possibly only update.maxmind.com) to overwrite arbitrary files via a .. (dot dot) in the database filename, which is returned by a request to app/update_getfilename.

Which versions are affected by CVE-2007-0159?

It affects 1 product.

Products include Geoip Geoip.

How do I fix CVE-2007-0159?

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-2007-0159 being exploited?

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

Sources

Also known as DEBIAN-CVE-2007-0159, GHSA-v7f8-fhgj-hh3q.

Is CVE-2007-0159 in your software?

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

Check your SBOMs for free