<Vulnerability name="CVE-2026-6420">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Moderate</ThreatSeverity>
    <PublicDate>2026-05-06T10:00:00</PublicDate>
    <Bugzilla id="2458889" url="https://bugzilla.redhat.com/show_bug.cgi?id=2458889" xml:lang="en:us">
keylime: Keylime: Security bypass due to hardcoded TPM quote nonce
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>6.3</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-1241</CWE>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in Keylime. An attacker with root access on an enrolled monitored machine, where the Keylime agent runs, can exploit a vulnerability in the Keylime verifier. The verifier uses a hardcoded challenge nonce for Trusted Platform Module (TPM) quote attestation instead of a cryptographically random value. This allows the attacker to stockpile valid TPM quotes and replay them to evade detection after compromising the system. This issue affects only the push model deployment.
    </Details>
    <Acknowledgement xml:lang="en:us">
Red Hat would like to thank Keylime developers for reporting this issue.
    </Acknowledgement>
    <Mitigation xml:lang="en:us">
Primary fix (one-line change in keylime/models/verifier/evidence.py):
Before (vulnerable):
def generate_challenge(self, bit_length):

self.challenge = Nonce.generate(bit_length)
 self.challenge = bytes.fromhex("49beed365aac777dae23564f5ad0ec")

After (fixed):
def generate_challenge(self, bit_length):
self.challenge = Nonce.generate(bit_length)

Existing partial mitigations (already active):

1. TPM clock monotonicity check: limits each quote to one replay.
2. Push attestation timeout (default 10s): constrains the quote generation window, but TPM throughput allows 50-200 quotes to be stockpiled in that time.
    </Mitigation>
    <PackageState cpe="cpe:/o:redhat:enterprise_linux:10">
        <ProductName>Red Hat Enterprise Linux 10</ProductName>
        <FixState>Affected</FixState>
        <PackageName>keylime</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:enterprise_linux:9">
        <ProductName>Red Hat Enterprise Linux 9</ProductName>
        <FixState>Fix deferred</FixState>
        <PackageName>keylime</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-6420
https://nvd.nist.gov/vuln/detail/CVE-2026-6420
    </References>
</Vulnerability>