CVE-2023-38200: Keylime Keylime's Registrar Vulnerable To Denial-of-service Vulnerability

HIGH
Advisory Identifier: GHSA-pg75-v6fp-8q59
CVSS 7.5
CWE-834
Published
Advisory Summary

CVE-2023-38200 is a HIGH (CVSS 7.5) keylime's registrar vulnerable to denial-of-service vulnerability (CWE-834: Excessive Iteration) affecting Keylime libraries in the PyPI ecosystem. The issue involves keylime's registrar vulnerable to denial-of-service attack via a single open connection. Remediation is available by upgrading affected packages to version 7.4.0.

CVE-2023-38200 at a Glance

CVE Identifier CVE-2023-38200
GHSA Identifier GHSA-pg75-v6fp-8q59
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-834: Excessive Iteration
Affected Product Keylime
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2023-38200

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.4.0
pip install keylime>=7.4.0
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-2023-38200, 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.4.0), 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-834: Excessive Iteration, where the product performs an iteration or loop without sufficiently limiting the number of times that the loop is executed. 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 Keylime `registrar` is prone to a simple denial of service attack in which an adversary opens a connection to the TLS port (by default, port `8891`) blocking further, legitimate connections. As long as the connection is open, the `registrar` is blocked and cannot serve any further clients (`agents` and `tenants`), which prevents normal operation. The problem does not affect the `verifier`. ### Patches Users should upgrade to release 7.4.0

CVE-2023-38200 Affected Keylime Versions

1 component(s)
Fixed Versions:
7.4.0
Product / Package Ecosystem Affected Versions Fixed Version
keylime
PyPI
< 7.4.0
7.4.0

References

Frequently Asked Questions

What is CVE-2023-38200?
CVE-2023-38200 is a security vulnerability in Keylime involving Keylime's registrar vulnerable to Denial-of-service attack via a single open connection under CWE-834: Excessive Iteration.
Which Keylime versions are affected?
Affected versions include releases prior to 7.4.0 across affected packages: keylime.
What version fixes CVE-2023-38200?
Upgrading to 7.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is keylime affected?
Yes, keylime is affected in releases prior to 7.4.0. Upgrade your dependency to 7.4.0 or later.
What is the CVSS score of CVE-2023-38200?
CVE-2023-38200 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2023-38200?
CVE-2023-38200 is classified under CWE-834: Excessive Iteration (The product performs an iteration or loop without sufficiently limiting the number of times that the loop is executed.).
How can I check PyPI dependencies for CVE-2023-38200?
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-pg75-v6fp-8q59",
  "modified" : "2023-08-01T20:16:29Z",
  "published" : "2023-08-01T20:16:29Z",
  "aliases" : [ "CVE-2023-38200" ],
  "summary" : "Keylime's registrar vulnerable to Denial-of-service attack via a single open connection",
  "details" : "### Impact\nKeylime `registrar` is prone to a simple denial of service attack in which an adversary opens a connection to the TLS port (by default, port `8891`) blocking further, legitimate connections. As long as the connection is open, the `registrar` is blocked and cannot serve any further clients (`agents` and `tenants`), which prevents normal operation. The problem does not affect the `verifier`.\n\n### Patches\nUsers should upgrade to release 7.4.0",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "keylime"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.4.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/keylime/keylime/security/advisories/GHSA-pg75-v6fp-8q59"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-38200"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/keylime/keylime/pull/1421"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/keylime/keylime/commit/c68d8f0b7ea549c12b6956ab0f3c28ae0360ae17"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2023-38200"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2222692"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/keylime/keylime"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/keylime/keylime/releases/tag/v7.4.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-834" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-01T20:16:29Z",
    "nvd_published_at" : null
  }
}