CWE-1283: Mutable Attestation or Measurement Reporting Data
The register contents used for attestation or measurement reporting data to verify boot flow are modifiable by an adversary.
Last updated
Overview
CWE-1283 (Mutable Attestation or Measurement Reporting Data) is a base-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Background
A System-on-Chip (SoC) implements secure boot or verified boot. During this boot flow, the SoC often measures the code that it authenticates. The measurement is usually done by calculating the one-way hash of the code binary and extending it to the previous hash. The hashing algorithm should be a Secure One-Way hash function. The final hash, i.e., the value obtained after the completion of the boot flow, serves as the measurement data used in reporting or in attestation. The calculated hash is often stored in registers that can later be read by the party of interest to determine tampering of the boot flow.
Real-world CVEs
3 recorded CVEs are caused by CWE-1283 (Mutable Attestation or Measurement Reporting Data). The highest-severity and most recent are shown first.
- CVE-2023-3674
Keylime: attestation failure when the quote's signature does not validate
Medium · CVSS 4.6 · EPSS 13th2023-07-19 - CVE-2022-1740
2.2.2 MUTABLE ATTESTATION OR MEASUREMENT REPORTING DATA CWE-1283
Medium · CVSS 4.6 · EPSS 12th2022-06-24 - CVE-2024-29038
tpm2 does not detect if quote was not generated by TPM
Medium · CVSS 4.3 · EPSS 21th2024-06-28
Common consequences
What can happen when CWE-1283 is exploited.
Modify Memory, Modify Application Data
Affects: Integrity
An adversary could spoof the measurement.
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
How to prevent it
Practical mitigations for CWE-1283, grouped by where in the lifecycle they apply.
Measurement data should be stored in registers that are read-only or otherwise have access controls that prevent modification by an untrusted agent.
Code examples
MITRE examples of the weakness in code.
The SoC extends the hash and stores the results in registers. Without protection, an adversary can write their chosen hash values to these registers. Thus, the attacker controls the reported results.
To prevent the above scenario, the registers should have one or more of the following properties:
Should be Read-Only with respect to an adversary
Cannot be extended or modifiable either directly or indirectly (using a trusted agent as proxy) by an adversary
Should have appropriate access controls or protections
Attack patterns
CAPEC attack patterns that exploit this weakness.
Frequently asked questions
Common questions about CWE-1283.
- What is CWE-1283?
- The register contents used for attestation or measurement reporting data to verify boot flow are modifiable by an adversary.
- What CVEs are caused by CWE-1283?
- 3 recorded CVEs are attributed to CWE-1283, including CVE-2023-3674, CVE-2022-1740 and CVE-2024-29038.
- How do you prevent CWE-1283?
- Measurement data should be stored in registers that are read-only or otherwise have access controls that prevent modification by an untrusted agent.
- What are the consequences of CWE-1283?
- Exploiting CWE-1283 can lead to: Modify Memory, Modify Application Data.
- Is CWE-1283 actively exploited?
- 3 recorded CVEs are caused by CWE-1283; none are currently in CISA's KEV catalog of actively exploited flaws.
Sources
References
- MITRE CWE definition (CWE-1283) (opens in a new tab)
- CWE-1283 vulnerabilities on NVD (opens in a new tab)
- Learn: What is a CWE?
Weakness data is sourced from the MITRE CWE catalog (v4.21). CVE associations are aggregated and kept current by RadicalNotion.AI.
Track CWE-1283 CVEs
Get an alert when a new CWE-1283 CVE affects your products, with AI-written analysis and remediation steps.