LIEF vulnerable to denial of service through segmentation fault
A vulnerability in the LIEF::MachO::BinaryParser::init_and_parse 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 for this issue is available at commit fde2c48986739fabd2cf9b40b9af149a89c57850.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | lief | < 0.12.2 | 0.12.2 |
References
- https://github.com/lief-project/LIEF/issues/781
- https://nvd.nist.gov/vuln/detail/CVE-2022-40922
- https://github.com/lief-project/LIEF/commit/ad811916670e83947560b6f3c45df6e71d3885af
- https://github.com/lief-project/LIEF/commit/fde2c48986739fabd2cf9b40b9af149a89c57850
- https://github.com/lief-project/LIEF
- https://github.com/pypa/advisory-database/tree/main/vulns/lief/PYSEC-2022-43138.yaml
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H- Weakness (CWE)
-- Platform
- Python (PyPI)
- Package
lief- Disclosed
- 03.10.2022
- Updated
- 11.10.2026 12:19
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2022-43138 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-38hf-c37x-32hv - CC BY 4.0
Vulnerability history: lief
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 11
- First → latest
- 09.2021 01.2026
- Without a fix
- 2
- Exploited in attacks
- 0
Severity breakdown
- High 4
- Medium 5
- Low 2
Disclosures per year
- 2021: 1
- 2022: 8
- 2023: 0
- 2024: 1
- 2025: 0
- 2026: 1
-
LIEF vulnerable to denial of service through segmentation fault this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.