Vulnerability · Published Aug 25, 2022 · Assigned by redhat
CVE-2021-35938
Medium 6.7
In plain English
A medium-severity security flaw in RPM. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | python3-rpm | 4.14.3-28.el8_9 | ALSA-2024:0647 |
| AlmaLinux:9 | python3-rpm | 4.16.1.3-27.el9_3 | ALSA-2024:0463 |
| AlmaLinux:8 | rpm | 4.14.3-28.el8_9 | ALSA-2024:0647 |
| AlmaLinux:9 | rpm | 4.16.1.3-27.el9_3 | ALSA-2024:0463 |
| AlmaLinux:8 | rpm-apidocs | 4.14.3-28.el8_9 | ALSA-2024:0647 |
| AlmaLinux:9 | rpm-apidocs | 4.16.1.3-27.el9_3 | ALSA-2024:0463 |
| AlmaLinux:8 | rpm-build | 4.14.3-28.el8_9 | ALSA-2024:0647 |
| AlmaLinux:9 | rpm-build | 4.16.1.3-27.el9_3 | ALSA-2024:0463 |
| AlmaLinux:8 | rpm-build-libs | 4.14.3-28.el8_9 | ALSA-2024:0647 |
| AlmaLinux:9 | rpm-build-libs | 4.16.1.3-27.el9_3 | ALSA-2024:0463 |
| AlmaLinux:8 | rpm-cron | 4.14.3-28.el8_9 | ALSA-2024:0647 |
| AlmaLinux:9 | rpm-cron | 4.16.1.3-27.el9_3 | ALSA-2024:0463 |
| AlmaLinux:8 | rpm-devel | 4.14.3-28.el8_9 | ALSA-2024:0647 |
| AlmaLinux:9 | rpm-devel | 4.16.1.3-27.el9_3 | ALSA-2024:0463 |
| AlmaLinux:8 | rpm-libs | 4.14.3-28.el8_9 | ALSA-2024:0647 |
| AlmaLinux:9 | rpm-libs | 4.16.1.3-27.el9_3 | ALSA-2024:0463 |
| AlmaLinux:9 | rpm-plugin-audit | 4.16.1.3-27.el9_3 | ALSA-2024:0463 |
| AlmaLinux:8 | rpm-plugin-fapolicyd | 4.14.3-28.el8_9 | ALSA-2024:0647 |
| AlmaLinux:9 | rpm-plugin-fapolicyd | 4.16.1.3-27.el9_3 | ALSA-2024:0463 |
| AlmaLinux:8 | rpm-plugin-ima | 4.14.3-28.el8_9 | ALSA-2024:0647 |
| AlmaLinux:9 | rpm-plugin-ima | 4.16.1.3-27.el9_3 | ALSA-2024:0463 |
| AlmaLinux:8 | rpm-plugin-prioreset | 4.14.3-28.el8_9 | ALSA-2024:0647 |
| AlmaLinux:8 | rpm-plugin-selinux | 4.14.3-28.el8_9 | ALSA-2024:0647 |
| AlmaLinux:9 | rpm-plugin-selinux | 4.16.1.3-27.el9_3 | ALSA-2024:0463 |
| AlmaLinux:8 | rpm-plugin-syslog | 4.14.3-28.el8_9 | ALSA-2024:0647 |
| AlmaLinux:9 | rpm-plugin-syslog | 4.16.1.3-27.el9_3 | ALSA-2024:0463 |
| AlmaLinux:8 | rpm-plugin-systemd-inhibit | 4.14.3-28.el8_9 | ALSA-2024:0647 |
| AlmaLinux:9 | rpm-plugin-systemd-inhibit | 4.16.1.3-27.el9_3 | ALSA-2024:0463 |
| AlmaLinux:8 | rpm-sign | 4.14.3-28.el8_9 | ALSA-2024:0647 |
| AlmaLinux:9 | rpm-sign | 4.16.1.3-27.el9_3 | ALSA-2024:0463 |
| AlmaLinux:9 | rpm-sign-libs | 4.16.1.3-27.el9_3 | ALSA-2024:0463 |
| Alpine:v3.20 | rpm | 4.18.0-r0 | ALPINE-CVE-2021-35938 |
| Alpine:v3.21 | rpm | 4.18.0-r0 | ALPINE-CVE-2021-35938 |
| Alpine:v3.22 | rpm | 4.18.0-r0 | ALPINE-CVE-2021-35938 |
| Alpine:v3.23 | rpm | 4.18.0-r0 | ALPINE-CVE-2021-35938 |
| Alpine:v3.24 | rpm | 4.18.0-r0 | ALPINE-CVE-2021-35938 |
| Debian:12 | rpm | 4.18.0+dfsg-1 | DEBIAN-CVE-2021-35938 |
| Debian:13 | rpm | 4.18.0+dfsg-1 | DEBIAN-CVE-2021-35938 |
| Debian:14 | rpm | 4.18.0+dfsg-1 | DEBIAN-CVE-2021-35938 |
| Rocky Linux:8 | rpm | 0:4.14.3-28.el8_9 | RLSA-2024:0647 |
| Ubuntu:22.04:LTS | rpm | no fix listed | UBUNTU-CVE-2021-35938 |
| Ubuntu:24.04:LTS | rpm | no fix listed | UBUNTU-CVE-2021-35938 |
| Ubuntu:25.10 | rpm | no fix listed | UBUNTU-CVE-2021-35938 |
| Ubuntu:26.04:LTS | rpm | no fix listed | UBUNTU-CVE-2021-35938 |
| Ubuntu:26.10 | rpm | no fix listed | UBUNTU-CVE-2021-35938 |
Affected products (as reported)
Weakness: CWE-59
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1964114
- https://bugzilla.suse.com/show_bug.cgi?id=1157880
- https://access.redhat.com/security/cve/CVE-2021-35938
- https://rpm.org/wiki/Releases/4.18.0
- https://github.com/rpm-software-management/rpm/pull/1919
- https://github.com/rpm-software-management/rpm/commit/25a435e90844ea98fe5eb7bef22c1aecf3a9c033
- GLSA-202210-22 vendor-advisory