CVE-2023-3674: Keylime Keylime Fails To Flag Device Vulnerability

MODERATE
Advisory Identifier: GHSA-g4wg-cfpf-9689
CVSS 2.3
CWE-1283
Published
Advisory Summary

CVE-2023-3674 is a MODERATE (CVSS 2.3) keylime fails to flag device vulnerability (CWE-1283: Mutable Attestation or Measurement Reporting Data) affecting Keylime libraries in the PyPI ecosystem. The issue involves keylime fails to flag device as untrusted when signature does not validate. Remediation is available by upgrading affected packages to version 7.2.5.

CVE-2023-3674 at a Glance

CVE Identifier CVE-2023-3674
GHSA Identifier GHSA-g4wg-cfpf-9689
Severity MODERATE
CVSS v3.1 Base Score 2.3
CWE Classification CWE-1283: Mutable Attestation or Measurement Reporting Data
Affected Product Keylime
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 2.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N).

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

How to Fix CVE-2023-3674

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.2.5
pip install keylime>=7.2.5
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-3674, 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.2.5), 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-1283: Mutable Attestation or Measurement Reporting Data, where the register contents used for attestation or measurement reporting data to verify boot flow are modifiable by an adversary. 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

A flaw was found in the keylime attestation verifier, which fails to flag a device's submitted TPM quote as faulty when the quote's signature does not validate for some reason. Instead, it will only emit an error in the log without flagging the device as untrusted.

CVE-2023-3674 Affected Keylime Versions

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

References

Frequently Asked Questions

What is CVE-2023-3674?
CVE-2023-3674 is a security vulnerability in Keylime involving keylime fails to flag device as untrusted when signature does not validate under CWE-1283: Mutable Attestation or Measurement Reporting Data.
Which Keylime versions are affected?
Affected versions include releases prior to 7.2.5 across affected packages: keylime.
What version fixes CVE-2023-3674?
Upgrading to 7.2.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is keylime affected?
Yes, keylime is affected in releases prior to 7.2.5. Upgrade your dependency to 7.2.5 or later.
What is the CVSS score of CVE-2023-3674?
CVE-2023-3674 has a CVSS v3.1 base score of 2.3 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2023-3674?
CVE-2023-3674 is classified under CWE-1283: Mutable Attestation or Measurement Reporting Data (The register contents used for attestation or measurement reporting data to verify boot flow are modifiable by an adversary.).
How can I check PyPI dependencies for CVE-2023-3674?
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-g4wg-cfpf-9689",
  "modified" : "2024-09-24T18:48:12Z",
  "published" : "2023-07-19T21:30:23Z",
  "aliases" : [ "CVE-2023-3674" ],
  "summary" : "keylime fails to flag device as untrusted when signature does not validate",
  "details" : "A flaw was found in the keylime attestation verifier, which fails to flag a device's submitted TPM quote as faulty when the quote's signature does not validate for some reason. Instead, it will only emit an error in the log without flagging the device as untrusted.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "keylime"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.2.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-3674"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/keylime/keylime/commit/95ce3d86bd2c53009108ffda2dcf553312d733db"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:1139"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2023-3674"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2222903"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/keylime/keylime"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/keylime/PYSEC-2023-128.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1283" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-20T14:59:54Z",
    "nvd_published_at" : "2023-07-19T19:15:12Z"
  }
}