# CVE-2022-40922: LIEF vulnerable to denial of service through segmentation fault

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.71%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-10-03T12:45:20.000Z
- Modified: 2026-06-17T05:02:14.293Z
- Also known as: GHSA-38hf-c37x-32hv, PYSEC-2022-43138
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- lief (PyPI): before 0.12.2
- lief-project lief: 0.12.1

## Every score

- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/lief-project/LIEF/issues/781> (exploit, issue-tracking, report, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-40922> (advisory)
- <https://github.com/lief-project/LIEF/commit/ad811916670e83947560b6f3c45df6e71d3885af> (web)
- <https://github.com/lief-project/LIEF/commit/fde2c48986739fabd2cf9b40b9af149a89c57850> (web)
- <https://github.com/lief-project/LIEF> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/lief/PYSEC-2022-43138.yaml> (web)

## Sources

- CVE List: [CVE-2022-40922](https://www.cve.org/CVERecord?id=CVE-2022-40922), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-38hf-c37x-32hv](https://github.com/advisories/GHSA-38hf-c37x-32hv), CC-BY-4.0, modified 2024-12-07
- NVD: [CVE-2022-40922](https://nvd.nist.gov/vuln/detail/CVE-2022-40922), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-43138](https://osv.dev/vulnerability/PYSEC-2022-43138), CC-BY-4.0, modified 2024-11-25

---

Page: https://cve.day/CVE-2022-40922 · Whole record: https://cve.day/CVE-2022-40922.json · Rebuilt by cve.day 2026-11-25T22:58:15.409Z
