CVE-2023-3674: Keylime Keylime Fails To Flag Device Vulnerability
MODERATECVE-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
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).
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.
pip install keylime>=7.2.5
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
CVE-2023-3674 Affected Keylime Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
keylime
|
PyPI |
< 7.2.5
|
7.2.5
|
References
Frequently Asked Questions
What is CVE-2023-3674?
Which Keylime versions are affected?
What version fixes CVE-2023-3674?
Is keylime affected?
What is the CVSS score of CVE-2023-3674?
What CWE is associated with CVE-2023-3674?
How can I check PyPI dependencies for CVE-2023-3674?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}