CVE-2017-7501
Red Hat, Inc. rpm: Improper Link Resolution Before File Access
Check your servers for CVE-2017-7501
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2017-7501 affects rpm, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.39%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 25.0% of all scored CVEs. Scores of 27 Nov 2026.
Weakness
- CWE-59 Improper Link Resolution Before File Access
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| rpm |
affected before 4.13.0.2
|
Is my server affected?
Find the installed version of rpm and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i rpm
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2017-7501 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2017-7501RHEL, Rocky, Alma, Fedora
rpm -q rpm
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2017-7501Alpine
apk list --installed | grep -i rpmWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2017-7501
trivy image --scanners vuln IMAGE | grep CVE-2017-7501
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the agent.
References
Advisories
- GLSA-201811-22 security.gentoo.org · vendor advisory
Other references
- https://github.com/rpm-software-management/rpm/commit/404ef011c300207cdb1e531670384564aae04bdc github.com
- [bookkeeper-issues] 20210628 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in… lists.apache.org · mailing list
- [bookkeeper-issues] 20210629 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in… lists.apache.org · mailing list
Source: the record CVE-2017-7501 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse