CVE-2025-7844 in Target products
Exporting a TPM based RSA key larger than 2048 bits from the TPM could overrun a stack buffer if the default `MAX_RSA_KEY_BITS=2048` is used. If your TPM 2.0 module supports RSA key sizes larger than 2048 bit and your applications supports creating or importing an RSA private or public key larger than 2048 bits and ...
Affects 0 products from 1 vendor. Facts below cite their sources.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Target | — | — |
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
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
Exporting a TPM based RSA key larger than 2048 bits from the TPM could overrun a stack buffer if the default `MAX_RSA_KEY_BITS=2048` is used. If your TPM 2.0 module supports RSA key sizes larger than 2048 bit and your applications supports creating or importing an RSA private or public key larger than 2048 bits and your application calls `wolfTPM2_RsaKey_TpmToWolf` on that key, then a stack buffer could be overrun. If the `MAX_RSA_KEY_BITS` build-time macro is set correctly (RSA bits match what TPM hardware is capable of) for the hardware target, then a stack overrun is not possible.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-7844 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-037287-I |
| Published | 2025-08-04 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-121: Stack-Based Buffer Overflow
Buffer overflow corrupting the program stack, typically overwriting the return address for code execution.
Analysis AI-written, not human-reviewed
A stack buffer overflow vulnerability exists in the wolfTPM2 library when exporting TPM-based RSA keys larger than 2048 bits if the default MAX_RSA_KEY_BITS is used.
An attacker could exploit this vulnerability by creating or importing an RSA private or public key larger than 2048 bits into a TPM 2.0 module and then calling the wolfTPM2_RsaKey_TpmToWolf function on that key, potentially leading to a stack buffer overflow.
Questions
What is CVE-2025-7844?
A stack buffer overflow vulnerability exists in the wolfTPM2 library when exporting TPM-based RSA keys larger than 2048 bits if the default MAX_RSA_KEY_BITS is used.
Is CVE-2025-7844 actively exploited?
No confirmed active exploitation of CVE-2025-7844 as of 2026-09-25.
How do I remediate CVE-2025-7844?
Priority: HIGH.
What systems are affected by CVE-2025-7844?
CVE-2025-7844 affects Target.
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":"Target","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.