BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-20316 in Debian Linux and 6 more products

Medium 6.8

A flaw was found in the way Samba handled file/directory metadata. This flaw allows an authenticated attacker with permissions to read or modify share metadata, to perform this operation outside of the share.

Affects 7 products from 3 vendors. Facts below cite their sources.

CVSS 3.16.8
EPSS1.1%
EPSS percentile65th
FixSee advisory

Remotely exploitable over the network, high complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Debian Debian Linux 10.0 11.0
Redhat Enterprise Linux 8.0
Redhat Enterprise Linux Eus 8.6
Redhat Enterprise Linux Aus 8.6
Redhat Enterprise Linux Tus 8.6
Redhat Virtualization Host 4.0
Samba Samba < 4.15.0

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

A flaw was found in the way Samba handled file/directory metadata. This flaw allows an authenticated attacker with permissions to read or modify share metadata, to perform this operation outside of the share.

Source: NIST NVD / MITRE CVE.

Record details

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

Weakness definitions

CWE-362: Race Condition

Software behavior depends on event timing that is not enforced, allowing attackers to exploit the timing window.

Related attack patterns (CAPEC)

CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions via CWE-362

CAPEC-26 Leveraging Race Conditions via CWE-362

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in Samba allows authenticated attackers with permissions to read or modify share metadata to perform these operations outside of the intended share, potentially leading to unauthorized access or data manipulation.

The attack vector involves an authenticated attacker exploiting a flaw in how Samba handles file and directory metadata, enabling them to access or modify metadata outside their authorized share boundaries.

Questions

What is CVE-2021-20316?

A vulnerability in Samba allows authenticated attackers with permissions to read or modify share metadata to perform these operations outside of the intended share, potentially leading to unauthorized access or data manipulation.

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

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

Is CVE-2021-20316 actively exploited?

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

How do I remediate CVE-2021-20316?

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

What systems are affected by CVE-2021-20316?

CVE-2021-20316 affects Debian Debian Linux; Redhat Enterprise Linux, Enterprise Linux Eus, Enterprise Linux Aus, Enterprise Linux Tus, Virtualization Host; Samba Samba.

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":"Debian","product":"Debian 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.