BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-20254 in Debian Linux and 3 more products

Medium 6.8 Fix available

A flaw was found in samba. The Samba smbd file server must map Windows group identities (SIDs) into unix group ids (gids). The code that performs this had a flaw that could allow it to read data beyond the end of the array in the case where a negative cache entry had been added to the mapping cache. This could cause...

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

CVSS 3.16.8
EPSS1.6%
EPSS percentile76th
FixAvailable

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 9.0
Fedoraproject Fedora 32 33
Redhat Enterprise Linux 7.0 8.0
Samba Samba ≥ 3.6.0, < 4.12.15 ≥ 4.13.0, < 4.13.8 ≥ 4.14.0, < 4.14.4

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 samba. The Samba smbd file server must map Windows group identities (SIDs) into unix group ids (gids). The code that performs this had a flaw that could allow it to read data beyond the end of the array in the case where a negative cache entry had been added to the mapping cache. This could cause the calling code to return those values into the process token that stores the group membership for a user. The highest threat from this vulnerability is to data confidentiality and integrity.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-20254
BreachSpider IDBS-2021-GLOBAL-240164-M
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Published2021-05-05
Last modified2024-11-21
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-125: Out-of-Bounds Read

Software reads data past the boundary of an allocated buffer, leaking sensitive information or causing crashes.

Related attack patterns (CAPEC)

CAPEC-540 Overread Buffers via CWE-125

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in Samba's smbd file server allows for out-of-bounds memory access when mapping Windows group identities to Unix group IDs, potentially leading to unauthorized access or privilege escalation.

An attacker could exploit this vulnerability by sending specially crafted requests to the Samba server, potentially leading to unauthorized access or privilege escalation.

Questions

What is CVE-2021-20254?

A vulnerability in Samba's smbd file server allows for out-of-bounds memory access when mapping Windows group identities to Unix group IDs, potentially leading to unauthorized access or privilege escalation.

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

CVE-2021-20254 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.6%.

Is CVE-2021-20254 actively exploited?

No confirmed active exploitation of CVE-2021-20254 as of 2026-05-30.

How do I remediate CVE-2021-20254?

Priority: MEDIUM. Advisory: https://bugzilla.redhat.com/show_bug.cgi?id=1949442 PSIRT: [email protected]

What systems are affected by CVE-2021-20254?

CVE-2021-20254 affects Debian Debian Linux; Fedoraproject Fedora; Redhat Enterprise Linux; 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 2024-11-21.