CVE-2017-7501 Path traversal in rpm

High 7.8 Published Updated

An attacker with write access to an installation directory can exploit predictable temporary file names to modify arbitrary files via symbolic links, potentially escalating privileges.

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-2017-7501?

CVE-2017-7501 is a high-severity path traversal vulnerability in Red Hat, Inc. rpm, published on 22 Nov 2017. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

It was found that versions of rpm before 4.13.0.2 use temporary files with predictable names when installing an RPM. An attacker with ability to write in a directory where files will be installed could create symbolic links to an arbitrary location and modify content, and possibly permissions to arbitrary files, which could be used for denial of service or possibly privilege escalation.

Weakness: CWE-59

Which versions are affected by CVE-2017-7501?

It affects 1 product.

Products include Rpm Rpm.

How do I fix CVE-2017-7501?

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-2017-7501 being exploited?

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

Sources

Also known as DEBIAN-CVE-2017-7501, ECHO-6b80-ef11-ae2d, GHSA-3xgr-x5gv-64gh, UBUNTU-CVE-2017-7501.

Is CVE-2017-7501 in your software?

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

Check your SBOMs for free