Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. keylime
  4. ›
  5. CVE-2026-6420

CVE-2026-6420: Keylime has a hardcoded attestation challenge nonce that allows replay attacks

May 11, 2026

The CertificationParameters.generate_challenge() method in the push attestation protocol uses a hardcoded challenge nonce instead of generating a cryptographically random value. This removes the nonce-based replay protection from TPM quote attestation.

An attacker with root access on a monitored agent node can exploit this by stockpiling valid TPM quotes (using tpm2_quote with the known nonce) before compromising the system, then replaying them to evade detection by the verifier. The push attestation timeout (~10s) constrains the generation window, but TPM throughput allows stockpiling ~50-200 quotes, enabling approximately 8-33 minutes of undetected compromise with default settings.

The attack is limited to a single agent node (AK signature binding prevents cross-agent replay). The pull-mode (legacy) attestation path is not affected.

Affected versions: >= 7.14.0, <= 7.14.1

CVSS: 6.3 Medium (CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L)

MetricValueRationale
AVLocalExploitation requires local access to the agent machine (stop agent, access TPM, run replacement). The network transmission of quotes to the verifier is normal protocol operation.
ACLowDeterministic attack: publicly visible nonce, standard tpm2-tools, no race conditions.
PRHighRoot on a legitimate enrolled node is required. The vulnerability does not help gain access – it only helps evade detection after root is obtained. No value against a machine the attacker already controls.
UINoneFully automated after initial setup.
SUnchangedAK signature binding confines impact to the single compromised agent.
CHighCompromised node continues receiving bootstrap keys, payloads, and secrets intended for trusted nodes.
IHighVerifier cannot distinguish a healthy system from a fully compromised one during the evasion window.
ALowOnly the compromised agent’s revocation and incident response are suppressed; the system as a whole remains operational.

The base score does not fully capture the operational severity: Keylime exists to detect machine compromise, so 8-33 minutes of undetected compromise is operationally critical. The fix is a one-line change and should be applied immediately regardless of the base score.

References

  • access.redhat.com/security/cve/CVE-2026-6420
  • bugzilla.redhat.com/show_bug.cgi?id=2458889
  • github.com/advisories/GHSA-q8w6-w55c-ccv5
  • github.com/keylime/keylime/security/advisories/GHSA-q8w6-w55c-ccv5
  • nvd.nist.gov/vuln/detail/CVE-2026-6420

Code Behaviors & Features

Detect and mitigate CVE-2026-6420 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 7.14.0 before 7.14.2

Fixed versions

  • 7.14.2

Solution

Upgrade to version 7.14.2 or above.

Impact 6.3 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-1241: Use of Predictable Algorithm in Random Number Generator
  • CWE-294: Authentication Bypass by Capture-replay
  • CWE-329: Generation of Predictable IV with CBC Mode
  • CWE-547: Use of Hard-coded, Security-relevant Constants

Source file

pypi/keylime/CVE-2026-6420.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:39 +0000.