# CVE-2021-35938: A symbolic link issue was found in rpm.

- 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.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-08-25T00:00:00.000Z
- Modified: 2026-06-17T03:57:57.830Z
- Weaknesses: CWE-59
- Assigned by: redhat

## Description

A symbolic link issue was found in rpm. It occurs when rpm sets the desired permissions and credentials after installing a file. A local unprivileged user could use this flaw to exchange the original file with a symbolic link to a security-critical file and escalate their privileges on the system. 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.0
- rpm rpm: before 4.18.0
- fedoraproject fedora: 34
- redhat enterprise_linux: 7.0; 8.0; 9.0

## References

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

## Sources

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

---

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