# 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 th…

- Severity: Medium 6.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-08-26T00:00:00.000Z
- Modified: 2026-06-17T03:57:57.940Z
- Weaknesses: CWE-59
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- RPM: Fixed in RPM-v4.18
- rpm rpm: before 4.18
- redhat enterprise_linux: 8.0

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1964129> (exploit, issue-tracking, third-party-advisory)
- <https://rpm.org/wiki/Releases/4.18.0> (release-notes, vendor-advisory)
- <https://github.com/rpm-software-management/rpm/pull/1919> (patch, third-party-advisory)
- <https://github.com/rpm-software-management/rpm/commit/96ec957e281220f8e137a2d5eb23b83a6377d556> (patch, third-party-advisory)
- <https://access.redhat.com/security/cve/CVE-2021-35939> (third-party-advisory)
- <https://security.gentoo.org/glsa/202210-22> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2021-35939](https://www.cve.org/CVERecord?id=CVE-2021-35939), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-35939](https://nvd.nist.gov/vuln/detail/CVE-2021-35939), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-35939 · Whole record: https://cve.day/CVE-2021-35939.json · Rebuilt by cve.day 2026-11-25T22:58:07.794Z
