Attestation bypass via unchecked quote magic
Published Jun 28, 2024 · Updated Nov 4, 2025
Improper quote validation in tpm2-tools before 5.7 allows local users to pass attacker-generated attestation data as TPM-generated. The tpm2_checkquote verify function accepts signed TPMS_ATTEST input without requiring its magic field to equal TPM2_GENERATED_VALUE. Exploitation requires a crafted quote signed by the device TPM; the immediate consequence is acceptance of untrusted device state, while downstream access depends on attestation policy.
Summary
What happened
Improper quote validation in tpm2-tools before 5.7 allows local users to pass attacker-generated attestation data as TPM-generated. The tpm2_checkquote verify function accepts signed TPMS_ATTEST input without requiring its magic field to equal TPM2_GENERATED_VALUE. Exploitation requires a crafted quote signed by the device TPM; the immediate consequence is acceptance of untrusted device state, while downstream access depends on attestation policy.
The record
- CVE
- CVE-2024-29038
- Published
- Jun 28, 2024
- Updated
- Nov 4, 2025
- Vendor
- TPM2 Software
- Product
- tpm2-tools
- Classifications
- CWE-1283, CWE-1390, T1553
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 28, 2024CVE publishedPublication date reported by the CVE source.
- Nov 4, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 4.1-rc0, < 5.7
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Upstream malformed-quote proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo