CVE-2024-29040 in Magic products
This repository hosts source code implementing the Trusted Computing Group's (TCG) TPM2 Software Stack (TSS). The JSON Quote Info returned by Fapi_Quote has to be deserialized by Fapi_VerifyQuote to the TPM Structure `TPMS_ATTEST`. For the field `TPM2_GENERATED magic` of this structure any number can be used in the ...
Affects 1 product from 2 vendors. Facts below cite their sources.
Requires local access, low complexity, no authentication required, no user interaction needed, can impact systems beyond the vulnerable component, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Magic | — | — |
| Tpm2 Software Stack Project | Tpm2 Software Stack | < 4.1.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
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
This repository hosts source code implementing the Trusted Computing Group's (TCG) TPM2 Software Stack (TSS). The JSON Quote Info returned by Fapi_Quote has to be deserialized by Fapi_VerifyQuote to the TPM Structure `TPMS_ATTEST`. For the field `TPM2_GENERATED magic` of this structure any number can be used in the JSON structure. The verifier can receive a state which does not represent the actual, possibly malicious state of the device under test. The malicious device might get access to data it shouldn't, or can use services it shouldn't be able to. This issue has been patched in version 4.1.0.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-29040 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-206742-M |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N |
| Published | 2024-06-28 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-502: Deserialization of Untrusted Data
Software deserializes untrusted data without validation, allowing crafted objects to execute arbitrary code.
Related attack patterns (CAPEC)
CAPEC-586 Object Injection via CWE-502
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2024-29040 affects the TPM2 Software Stack (TSS) by allowing the use of any number for the TPM2_GENERATED magic field in the JSON Quote Info, which can lead to a state that does not represent the actual TPM state.
An attacker could manipulate the TPM2_GENERATED magic field in the JSON Quote Info to potentially bypass verification checks, leading to a false sense of security.
Questions
What is CVE-2024-29040?
CVE-2024-29040 affects the TPM2 Software Stack (TSS) by allowing the use of any number for the TPM2_GENERATED magic field in the JSON Quote Info, which can lead to a state that does not represent the actual TPM state.
What is the CVSS score for CVE-2024-29040?
CVE-2024-29040 has CVSS 4.3 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N. EPSS: 0.5%.
Is CVE-2024-29040 actively exploited?
No confirmed active exploitation of CVE-2024-29040 as of 2026-09-25.
How do I remediate CVE-2024-29040?
Priority: MEDIUM.
What systems are affected by CVE-2024-29040?
CVE-2024-29040 affects Magic; Tpm2 Software Stack Project Tpm2 Software Stack.
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":"Magic","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.