CVE-2017-7501Time-of-check Time-of-use (TOCTOU) Race Condition in RPM

Severity
7.8HIGHNVD
NVD6.7NVD6.4
EPSS
0.1%
top 83.19%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedAug 26
Latest updateAug 27

Description

It was found that the fix for CVE-2017-7500 and CVE-2017-7501 was incomplete: the check was only implemented for the parent directory of the file to be created. A local unprivileged user who owns another ancestor directory could potentially use this flaw to gain root privileges. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HExploitability: 0.8 | Impact: 5.9

Affected Packages8 packages

NVDrpm/rpm< 4.18+2
debiandebian/rpm< rpm 4.18.0+dfsg-1 (bookworm)+1
Debianrpm/rpm< 4.18.0+dfsg-1+2
CVEListV5red_hat_inc/rpmbefore 4.13.0.2

Also affects: Fedora 34, Enterprise Linux 6.0, 7.0, 8.0, 9.0

Patches

🔴Vulnerability Details

6
GHSA
GHSA-prgv-w33h-5m73: It was found that the fix for CVE-2017-7500 and CVE-2017-7501 was incomplete: the check was only implemented for the parent directory of the file to b2022-08-27
GHSA
GHSA-63x9-9q4w-j636: A race condition vulnerability was found in rpm2022-08-26
OSV
CVE-2021-35939: It was found that the fix for CVE-2017-7500 and CVE-2017-7501 was incomplete: the check was only implemented for the parent directory of the file to b2022-08-26
OSV
CVE-2021-35937: A race condition vulnerability was found in rpm2022-08-25
GHSA
GHSA-3xgr-x5gv-64gh: It was found that versions of rpm before 42022-05-13

📋Vendor Advisories

8
Microsoft
A race condition vulnerability was found in rpm. A local unprivileged user could use this flaw to bypass the checks that were introduced in response to CVE-2017-7500 and CVE-2017-7501 potentially gain2022-08-09
Microsoft
It was found that the fix for CVE-2017-7500 and CVE-2017-7501 was incomplete: the check was only implemented for the parent directory of the file to be created. A local unprivileged user who owns anot2022-08-09
Red Hat
rpm: TOCTOU race in checks for unsafe symlinks2021-06-30
Red Hat
rpm: checks for unsafe symlinks are not performed for intermediary directories2021-06-30
Debian
CVE-2021-35937: rpm - A race condition vulnerability was found in rpm. A local unprivileged user could...2021

💬Community

2
Bugzilla
CVE-2017-7501 rpm: Following symlinks to files when installing packages allows privilege escalation [fedora-all]2017-07-03
Bugzilla
CVE-2017-7501 rpm: Following symlinks to files when installing packages allows privilege escalation2017-05-18