CVE-2025-1057: Keylime Keylime Registrar Is Vulnerable To Vulnerability
MODERATECVE-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.
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"
}
}