cve.bz

CVE-2021-35939 Link Following

6.7 mediumExploit referenceEPSS 0.5%Fix available

Medium (6.7). EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.7 medium
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 44th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-35939 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-35939?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-35939?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-35939 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rpm:rpmbefore 4.18
redhat:enterprise_linux8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14rpm4.18.0+dfsg-1DEBIAN-CVE-2021-35939
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 6 morerpmno fix listedUBUNTU-CVE-2021-35939
Red Hatenterprise_linux:8::appstreamrpm-build, rpm-debuginfo, rpm-debugsource and 13 more0:4.14.3-28.el8_9RHSA-2024:0647
Red Hatenterprise_linux:8::baseosrpm, rpm-cron, rpm-libs and 24 more0:4.14.3-28.el8_9RHSA-2024:0647
Red Hatenterprise_linux:9::appstreamrpm-cron, rpm-build, rpm-devel and 21 more0:4.16.1.3-27.el9_3RHSA-2024:0463
Red Hatenterprise_linux:9::baseosrpm, rpm-libs, rpm-sign and 21 more0:4.16.1.3-27.el9_3RHSA-2024:0463
Red Hatrhel_eus:8.6::appstreamrpm-build, rpm-debuginfo, rpm-debugsource and 13 more0:4.14.3-26.el8_6RHSA-2024:0424
Red Hatrhel_eus:8.6::baseosrpm, rpm-cron, rpm-libs and 24 more0:4.14.3-26.el8_6RHSA-2024:0424
Red Hatrhel_eus:8.8::appstreamrpm-build, rpm-debuginfo, rpm-debugsource and 13 more0:4.14.3-28.el8_8RHSA-2024:0582
Red Hatrhel_eus:8.8::baseosrpm, rpm-cron, rpm-libs and 24 more0:4.14.3-28.el8_8RHSA-2024:0582
Red Hatrhel_eus:9.0::appstreamrpm-cron, rpm-build, rpm-devel and 21 more0:4.16.1.3-14.el9_0.1RHSA-2024:0435
Red Hatrhel_eus:9.0::baseosrpm, rpm-libs, rpm-sign and 21 more0:4.16.1.3-14.el9_0.1RHSA-2024:0435
Red Hatrhel_eus:9.2::appstreamrpm-cron, rpm-build, rpm-devel and 21 more0:4.16.1.3-24.el9_2RHSA-2024:0453
Red Hatrhel_eus:9.2::baseosrpm, rpm-libs, rpm-sign and 21 more0:4.16.1.3-24.el9_2RHSA-2024:0453
openSUSETumbleweedrpm4.18.0-1.1openSUSE-SU-2024:12562-1
AlmaLinux8rpm, rpm-cron, rpm-libs and 12 more4.14.3-28.el8_9ALSA-2024:0647
AlmaLinux9rpm, rpm-cron, rpm-libs and 13 more4.16.1.3-27.el9_3ALSA-2024:0463
Rocky Linux8rpm0:4.14.3-28.el8_9RLSA-2024:0647
Alpinev3.17, v3.18, v3.19 and 5 morerpm4.18.0-r0ALPINE-CVE-2021-35939
Azure Linux2rpm4.18.0-1AZL-10769

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

System and service accounts may have the required permissions to exploit this flaw. Conversely, regular user accounts should not be allowed to manipulate RPM artifacts during installation, thus reducing the attack surface and hence the impact of this flaw considerably.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8rpm-0:4.14.3-28.el8_9Fixed 2024-02-01RHSA-2024:0647
Red Hat Enterprise Linux 8.6 Extended Update Supportrpm-0:4.14.3-26.el8_6Fixed 2024-01-25RHSA-2024:0424
Red Hat Enterprise Linux 8.8 Extended Update Supportrpm-0:4.14.3-28.el8_8Fixed 2024-01-30RHSA-2024:0582
Red Hat Enterprise Linux 9rpm-0:4.16.1.3-27.el9_3Fixed 2024-01-25RHSA-2024:0463
Red Hat Enterprise Linux 9.0 Extended Update Supportrpm-0:4.16.1.3-14.el9_0.1Fixed 2024-01-25RHSA-2024:0435
Red Hat Enterprise Linux 9.2 Extended Update Supportrpm-0:4.16.1.3-24.el9_2Fixed 2024-01-25RHSA-2024:0453
Red Hat OpenShift Container Platform 4.13openshift4-wincw/windows-machine-config-operator-bundle:v8.1.2-13Fixed 2024-03-25RHSA-2024:1477
Red Hat OpenShift Container Platform 4.13openshift4-wincw/windows-machine-config-rhel9-operator:8.1.2-13Fixed 2024-03-25RHSA-2024:1477
RHODF-4.15-RHEL-9odf4/cephcsi-rhel9:v4.15.0-37Fixed 2024-03-19RHSA-2024:1383
RHODF-4.15-RHEL-9odf4/mcg-core-rhel9:v4.15.0-68Fixed 2024-03-19RHSA-2024:1383
RHODF-4.15-RHEL-9odf4/mcg-operator-bundle:v4.15.0-158Fixed 2024-03-19RHSA-2024:1383
RHODF-4.15-RHEL-9odf4/mcg-rhel9-operator:v4.15.0-39Fixed 2024-03-19RHSA-2024:1383
RHODF-4.15-RHEL-9odf4/ocs-client-console-rhel9:v4.15.0-58Fixed 2024-03-19RHSA-2024:1383
RHODF-4.15-RHEL-9odf4/ocs-client-operator-bundle:v4.15.0-158Fixed 2024-03-19RHSA-2024:1383
RHODF-4.15-RHEL-9odf4/ocs-client-rhel9-operator:v4.15.0-13Fixed 2024-03-19RHSA-2024:1383
RHODF-4.15-RHEL-9odf4/ocs-metrics-exporter-rhel9:v4.15.0-81Fixed 2024-03-19RHSA-2024:1383
RHODF-4.15-RHEL-9odf4/ocs-operator-bundle:v4.15.0-158Fixed 2024-03-19RHSA-2024:1383
RHODF-4.15-RHEL-9odf4/ocs-rhel9-operator:v4.15.0-79Fixed 2024-03-19RHSA-2024:1383
Red Hat Enterprise Linux 6rpmOut of support scope
Red Hat Enterprise Linux 7rpmOut of support scope
16 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-35939.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON