Vulnerabilities in pkg:pypi/keylime
PACKAGECVE-2025-1057 is a MODERATE (CVSS 4.3) keylime registrar is vulnerable to vulnerability (CWE-1287: Improper Validation of Specified Type of Input) affecting Keylime libraries in the PyPI ecosystem. The issue involves keylime registrar is vulnerable to denial-of-service attack when updated to version 7.12.0. Remediation is available by upgrading affected packages to version 7.12.1.
pkg:pypi/keylime
Vulnerability advisories affecting package pkg:pypi/keylime. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-9jxq-5x44-gx23 | CVE-2025-1057 | MODERATE | Keylime registrar is vulnerable to Denial-of-Service attack when updated to version 7.12.0 |
| GHSA-wc6p-4gwj-jcr8 | - | MODERATE | Duplicate Advisory: Keylime has a hardcoded attestation challenge nonce that allows replay attacks |
| GHSA-4jqp-9qjv-57m2 | CVE-2026-1709 | CRITICAL | Keylime Missing Authentication for Critical Function and Improper Authentication |
| GHSA-xh5w-g8gq-r3v9 | CVE-2025-13609 | HIGH | Keylime allows users to register new agents by recycling existing UUIDs when using different TPM devices |
| GHSA-q8w6-w55c-ccv5 | CVE-2026-6420 | MODERATE | Keylime has a hardcoded attestation challenge nonce that allows replay attacks |
| GHSA-jf66-3q76-h5p5 | CVE-2022-1053 | CRITICAL | Tenant and Verifier might not use the same registrar data |
| GHSA-27jc-jmp8-qfw5 | - | CRITICAL | Duplicate Advisory: Keylime Missing Authentication for Critical Function and Improper Authentication |
| GHSA-hff2-x2j9-gxgv | CVE-2022-3500 | HIGH | Keylime: unhandled exceptions could lead to invalid attestation states |
| GHSA-f4r5-q63f-gcww | CVE-2023-38201 | HIGH | Keylime registrar and (untrusted) Agent can be bypassed by an attacker |
| GHSA-g4wg-cfpf-9689 | CVE-2023-3674 | MODERATE | keylime fails to flag device as untrusted when signature does not validate |
| GHSA-pg75-v6fp-8q59 | CVE-2023-38200 | HIGH | Keylime's registrar vulnerable to Denial-of-service attack via a single open connection |
| GHSA-9gjg-834p-5gvv | - | HIGH | Duplicate Advisory: Keylime's registrar vulnerable to Denial-of-service attack via a single open connection |
CVE-2025-1057 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L).
How to Fix CVE-2025-1057
To remediate this vulnerability, upgrade all affected Keylime dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install keylime>=7.12.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show keylime
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-1057, inspect your installed packages using pip:
pip show keylime
Analyze the terminal output to locate any version of Keylime in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.12.1), your application is affected.
Note: The pip show keylime command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1287: Improper Validation of Specified Type of Input, where the product receives input that is expected to be of a certain type, but it does not validate or incorrectly validates that the input is actually of the expected type. In Keylime, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-1057 Affected Keylime Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
keylime
|
PyPI |
≥ 7.12.0
< 7.12.1
All 1 versions
7.12.0
|
7.12.1
|
References
Frequently Asked Questions
What is CVE-2025-1057?
Which Keylime versions are affected?
What version fixes CVE-2025-1057?
Is keylime affected?
What is the CVSS score of CVE-2025-1057?
What CWE is associated with CVE-2025-1057?
How can I check PyPI dependencies for CVE-2025-1057?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9jxq-5x44-gx23",
"modified" : "2026-07-21T14:45:56Z",
"published" : "2025-02-14T18:03:14Z",
"aliases" : [ "CVE-2025-1057" ],
"summary" : "Keylime registrar is vulnerable to Denial-of-Service attack when updated to version 7.12.0",
"details" : "### Impact\nThe Keylime `registrar` implemented more strict type checking on version 7.12.0. As a result, when updated to version 7.12.0, the `registrar` will not accept the format of the data previously stored in the database by versions >= 7.8.0, raising an exception.\n\nThis makes the Keylime `registrar` vulnerable to a Denial-of-Service attack in an update scenario, as an attacker could populate the `registrar` database by creating multiple valid agent registrations with different UUIDs while the version is still < 7.12.0. Then, when the Keylime `registrar` is updated to the 7.12.0 version, any query to the database matching any of the entries populated by the attacker will result in failure.\n\n### Patches\nUsers should upgrade to versions >= 7.12.1\n\n### Workarounds\n- Remove the registrar database and re-register all agents\n\n### Credit\n\nReported by: Anderson Toshiyuki Sasaki/@ansasaki\nPatched by: Anderson Toshiyuki Sasaki/@ansasaki",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "keylime"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.12.0"
}, {
"fixed" : "7.12.1"
} ]
} ],
"versions" : [ "7.12.0" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/keylime/keylime/security/advisories/GHSA-9jxq-5x44-gx23"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-1057"
}, {
"type" : "WEB",
"url" : "https://github.com/keylime/keylime/commit/e08b10d86c3717006774e787542c190e2ba24fc7"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2025-1057"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2343894"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-9jxq-5x44-gx23"
}, {
"type" : "WEB",
"url" : "https://github.com/ansasaki/keylime/tree/base64_bytes"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/keylime/keylime"
}, {
"type" : "WEB",
"url" : "https://github.com/keylime/rust-keylime"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/keylime/PYSEC-2026-1488.yaml"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/keylime"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1287", "CWE-704" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-02-14T18:03:14Z",
"nvd_published_at" : "2025-03-15T09:15:10Z"
}
}