BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-35939 in Redhat Enterprise Linux and 1 more product

Medium 6.7

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

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.16.7
EPSS0.5%
EPSS percentile37th
FixSee advisory

Requires local access, low complexity, high privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Redhat Enterprise Linux 8.0
Rpm Rpm < 4.18

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-35939
BreachSpider IDBS-2022-GLOBAL-297037-M
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Published2022-08-26
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-59: Improper Link Resolution Before File Access

Software follows symbolic links without verifying the target, allowing read, write, or delete of unintended files.

Related attack patterns (CAPEC)

CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-59

CAPEC-76 Manipulating Web Input to File System Calls via CWE-59

CAPEC-132 Symlink Attack via CWE-59

CAPEC-17 Using Malicious Files via CWE-59

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2021-35939 is a vulnerability in the fix for CVE-2017-7500 and CVE-2017-7501, where the check for directory permissions was only applied to the parent directory, not all ancestor directories. This allows a local unprivileged user to potentially gain root privileges if they own another ancestor directory.

A local unprivileged user can exploit this vulnerability by creating a file in a directory they own, which is an ancestor of the target directory. This can lead to privilege escalation, allowing the user to gain root privileges.

Questions

What is CVE-2021-35939?

CVE-2021-35939 is a vulnerability in the fix for CVE-2017-7500 and CVE-2017-7501, where the check for directory permissions was only applied to the parent directory, not all ancestor directories. This allows a local unprivileged user to potentially gain root privileges if they own another ancestor directory.

What is the CVSS score for CVE-2021-35939?

CVE-2021-35939 has CVSS 6.7 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.5%.

Is CVE-2021-35939 actively exploited?

No confirmed active exploitation of CVE-2021-35939 as of 2026-09-25.

How do I remediate CVE-2021-35939?

Priority: HIGH. Advisory: https://access.redhat.com/security/cve/CVE-2021-35939 PSIRT: [email protected]

What systems are affected by CVE-2021-35939?

CVE-2021-35939 affects Redhat Enterprise Linux; Rpm Rpm.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Redhat","product":"Enterprise Linux","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.