CVE-2025-1057: Keylime Keylime Registrar Is Vulnerable To Vulnerability

MODERATE
Advisory Identifier: GHSA-9jxq-5x44-gx23
CVSS 4.3
CWE-1287 CWE-704
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-1057
GHSA Identifier GHSA-9jxq-5x44-gx23
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-1287: Improper Validation of Specified Type of Input
Affected Product Keylime
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (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.

keylime fixed: 7.12.1
pip install keylime>=7.12.1
Verify Direct and Transitive Dependencies

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

### Impact The 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. This 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. ### Patches Users should upgrade to versions >= 7.12.1 ### Workarounds - Remove the registrar database and re-register all agents ### Credit Reported by: Anderson Toshiyuki Sasaki/@ansasaki Patched by: Anderson Toshiyuki Sasaki/@ansasaki

CVE-2025-1057 Affected Keylime Versions

1 component(s)
Fixed Versions:
7.12.1
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?
CVE-2025-1057 is a security vulnerability in Keylime involving Keylime registrar is vulnerable to Denial-of-Service attack when updated to version 7.12.0 under CWE-1287: Improper Validation of Specified Type of Input.
Which Keylime versions are affected?
Affected versions include releases prior to 7.12.1 across affected packages: keylime.
What version fixes CVE-2025-1057?
Upgrading to 7.12.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is keylime affected?
Yes, keylime is affected in releases prior to 7.12.1. Upgrade your dependency to 7.12.1 or later.
What is the CVSS score of CVE-2025-1057?
CVE-2025-1057 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2025-1057?
CVE-2025-1057 is classified under CWE-1287: Improper Validation of Specified Type of Input (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.).
How can I check PyPI dependencies for CVE-2025-1057?
Run the dependency tree command: 'pip show keylime'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}