BreachSpiderVerified, not vibes

CVE-2023-40271 in Arm Trusted Firmware-M and 1 more product

High 7.5

In Trusted Firmware-M through TF-Mv1.8.0, for platforms that integrate the CryptoCell accelerator, when the CryptoCell PSA Driver software Interface is selected, and the Authenticated Encryption with Associated Data Chacha20-Poly1305 algorithm is used, with the single-part verification function (defined during the b...

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

CVSS 3.17.5
EPSS0.4%
EPSS percentile29th
FixSee advisory

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

Affected products and versions

VendorProductAffected versions
Arm Trusted Firmware-M 1.6.0 1.6.1 1.7.0 1.8.0
Trustedfirmware Trusted Firmware-M 1.6.0 1.6.1 1.7.0 1.8.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

In Trusted Firmware-M through TF-Mv1.8.0, for platforms that integrate the CryptoCell accelerator, when the CryptoCell PSA Driver software Interface is selected, and the Authenticated Encryption with Associated Data Chacha20-Poly1305 algorithm is used, with the single-part verification function (defined during the build-time configuration phase) implemented with a dedicated function (i.e., not relying on usage of multipart functions), the buffer comparison during the verification of the authentication tag does not happen on the full 16 bytes but just on the first 4 bytes, thus leading to the possibility that unauthenticated payloads might be identified as authentic. This affects TF-Mv1.6.0, TF-Mv1.6.1, TF-Mv1.7.0, and TF-Mv1.8.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2023-40271
BreachSpider IDBS-2023-GLOBAL-343340-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published2023-09-08
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-697: CWE-697

Related attack patterns (CAPEC)

CAPEC-3 Using Leading 'Ghost' Character Sequences to Bypass Input Filters via CWE-697

CAPEC-7 Blind SQL Injection via CWE-697

CAPEC-8 Buffer Overflow in an API Call via CWE-697

CAPEC-9 Buffer Overflow in Local Command-Line Utilities via CWE-697

CAPEC-10 Buffer Overflow via Environment Variables via CWE-697

Show all 29

CAPEC-14 Client-side Injection-induced Buffer Overflow via CWE-697

CAPEC-24 Filter Failure through Buffer Overflow via CWE-697

CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads via CWE-697

CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-697

CAPEC-44 Overflow Binary Resource File via CWE-697

CAPEC-45 Buffer Overflow via Symbolic Links via CWE-697

CAPEC-46 Overflow Variables and Tags via CWE-697

CAPEC-47 Buffer Overflow via Parameter Expansion via CWE-697

CAPEC-52 Embedding NULL Bytes via CWE-697

CAPEC-53 Postfix, Null Terminate, and Backslash via CWE-697

CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-697

CAPEC-67 String Format Overflow in syslog() via CWE-697

CAPEC-71 Using Unicode Encoding to Bypass Validation Logic via CWE-697

CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-697

CAPEC-79 Using Slashes in Alternate Encoding via CWE-697

CAPEC-80 Using UTF-8 Encoding to Bypass Validation Logic via CWE-697

CAPEC-92 Forced Integer Overflow via CWE-697

CAPEC-120 Double Encoding via CWE-697

CAPEC-6 Argument Injection via CWE-697

CAPEC-15 Command Delimiters via CWE-697

CAPEC-73 User-Controlled Filename via CWE-697

CAPEC-88 OS Command Injection via CWE-697

CAPEC-182 Flash Injection via CWE-697

CAPEC-267 Leverage Alternate Encoding via CWE-697

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2023-40271 affects Trusted Firmware-M through TF-Mv1.8.0 on platforms using the CryptoCell accelerator. The vulnerability is related to the implementation of the Authenticated Encryption with Associated Data Chacha20-Poly1305 algorithm in the CryptoCell PSA Driver software interface, specifically with the single-part verification function.

An attacker could exploit this vulnerability to potentially bypass encryption protections, leading to unauthorized access to encrypted data. The attack would require the attacker to have the ability to execute code in the context of the affected system.

Questions

What is CVE-2023-40271?

CVE-2023-40271 affects Trusted Firmware-M through TF-Mv1.8.0 on platforms using the CryptoCell accelerator. The vulnerability is related to the implementation of the Authenticated Encryption with Associated Data Chacha20-Poly1305 algorithm in the CryptoCell PSA Driver software interface, specifically with the single-part verification function.

What is the CVSS score for CVE-2023-40271?

CVE-2023-40271 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 0.4%.

Is CVE-2023-40271 actively exploited?

No confirmed active exploitation of CVE-2023-40271 as of 2026-09-25.

How do I remediate CVE-2023-40271?

Priority: HIGH. Advisory: https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/tree/docs/security/security_advisories/cc3xx_partial_tag_compare_on_chacha20_poly1305.rst PSIRT: [email protected]

What systems are affected by CVE-2023-40271?

CVE-2023-40271 affects Arm Trusted Firmware-M; 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":"Arm","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.