BreachSpiderVerified, not vibes

CVE-2021-40327 in Trustedfirmware Trusted Firmware-M

Medium 5.9

Trusted Firmware-M (TF-M) 1.4.0, when Profile Small is used, has incorrect access control. NSPE can access a secure key (held by the Crypto service) based solely on knowledge of its key ID. For example, there is no authorization check associated with the relationship between a caller and a key owner.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.15.9
EPSS1.2%
EPSS percentile69th
FixSee advisory

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

Affected products and versions

VendorProductAffected versions
Trustedfirmware Trusted Firmware-M 1.4.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

Trusted Firmware-M (TF-M) 1.4.0, when Profile Small is used, has incorrect access control. NSPE can access a secure key (held by the Crypto service) based solely on knowledge of its key ID. For example, there is no authorization check associated with the relationship between a caller and a key owner.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-40327
BreachSpider IDBS-2022-GLOBAL-307218-M
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Published2022-01-13
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-862: Missing Authorization

Software does not check whether an authenticated actor has permission for the requested operation.

Related attack patterns (CAPEC)

CAPEC-665 Exploitation of Thunderbolt Protection Flaws via CWE-862

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A medium severity vulnerability affects Trustedfirmware systems (CVE-2021-40327). No public exploit code is currently available. Review vendor advisories and apply patches during the next maintenance window.

Vulnerability details: Trusted Firmware-M (TF-M) 1.4.0, when Profile Small is used, has incorrect access control. NSPE can access a secure key (held by the Crypto service) based solely on knowledge of its key ID. For example, there is no authorization check associated with the relationship between a caller and a key owner. CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.

Questions

What is CVE-2021-40327?

A medium severity vulnerability affects Trustedfirmware systems (CVE-2021-40327). No public exploit code is currently available. Review vendor advisories and apply patches during the next maintenance window.

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

CVE-2021-40327 has CVSS 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 1.2%.

Is CVE-2021-40327 actively exploited?

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

How do I remediate CVE-2021-40327?

Priority: MONITOR. Advisory: https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/ PSIRT: [email protected]

What systems are affected by CVE-2021-40327?

CVE-2021-40327 affects Trustedfirmware Trusted Firmware-M.

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":"Trustedfirmware","product":"Trusted Firmware-M","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.