CVE-2022-40923: Lief Denial of Service Vulnerability
MODERATECVE-2022-40923 is a MODERATE (CVSS 6.5) denial of service vulnerability (General Security Weakness) affecting Lief libraries in the PyPI ecosystem. The issue involves lief vulnerable to denial of service through segmentation fault. Remediation is available in the latest vendor maintenance releases.
CVE-2022-40923 at a Glance
Security Impact
CVSS: 6.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:R/S:U/C:N/I:N/A:H).
How to Fix CVE-2022-40923
To remediate this vulnerability, upgrade all affected Lief 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 lief>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show lief
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2022-40923, inspect your installed packages using pip:
pip show lief
Analyze the terminal output to locate any version of Lief in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show lief command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Lief, 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-2022-40923 Affected Lief Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lief
|
PyPI |
≤ 0.12.1
|
|
References
Frequently Asked Questions
What is CVE-2022-40923?
Which Lief versions are affected?
What version fixes CVE-2022-40923?
Is lief affected?
What is the CVSS score of CVE-2022-40923?
What CWE is associated with CVE-2022-40923?
How can I check PyPI dependencies for CVE-2022-40923?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rm2x-hgr8-w343",
"modified" : "2024-11-22T17:54:22Z",
"published" : "2022-10-01T00:00:18Z",
"aliases" : [ "CVE-2022-40923" ],
"summary" : "LIEF vulnerable to denial of service through segmentation fault",
"details" : "A vulnerability in the LIEF::MachO::SegmentCommand::virtual_address function of LIEF v0.12.1 allows attackers to cause a denial of service (DOS) through a segmentation fault via a crafted MachO file. A [patch](https://github.com/lief-project/LIEF/commit/24935f654f6df700a9a062298258b9485f584502) is available at commit number 24935f654f6df700a9a062298258b9485f584502.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "lief"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.12.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-40923"
}, {
"type" : "WEB",
"url" : "https://github.com/lief-project/LIEF/issues/784"
}, {
"type" : "WEB",
"url" : "https://github.com/lief-project/LIEF/commit/24935f654f6df700a9a062298258b9485f584502"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/lief-project/LIEF"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/lief/PYSEC-2022-43139.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-10-06T19:56:22Z",
"nvd_published_at" : "2022-09-30T19:15:00Z"
}
}