# CVE-2024-29040: Fapi Verify Quote: Does not detect if quote was not generated by TPM

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2024-06-28T21:02:04.076Z
- Modified: 2026-06-17T07:22:18.387Z
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- tpm2-software tpm2-tss: < 4.1.0
- tpm2_software_stack_project tpm2_software_stack: before 4.1.0

## References

- <https://github.com/tpm2-software/tpm2-tss/security/advisories/GHSA-837m-jw3m-h9p6>
- <https://github.com/tpm2-software/tpm2-tss/releases/tag/4.1.0>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GI4JFEZBKQQUPJ4RWK6IHEWXAFCEJDPI/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EFR7SVEWCOXORHPCLLGXEMHFMIGG2MFE/>

## Sources

- CVE List: [CVE-2024-29040](https://www.cve.org/CVERecord?id=CVE-2024-29040), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2024-29040](https://nvd.nist.gov/vuln/detail/CVE-2024-29040), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-29040 · Whole record: https://cve.day/CVE-2024-29040.json · Rebuilt by cve.day 2026-11-25T22:58:42.327Z
