# CVE-2022-43171: LIEF heap buffer overflow in the LIEF::MachO::BinaryParser::parse_dyldinfo_generic_bind

Source: https://junglewise.ai/threats/cve-2022-43171-lief-heap-buffer-overflow-in-the-lief-macho-binaryparser-parse  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-11-17  
License: CC BY 4.0 with a link back

CVE-2022-43171 · Severity: low · CVSS 3.1 · Published 2022-11-17

A heap buffer overflow in the LIEF::MachO::BinaryParser::parse_dyldinfo_generic_bind function of LIEF v0.12.1 allows attackers to cause a Denial of Service (DoS) via a crafted MachO file.

Technologies: [lief (PyPI)](https://junglewise.ai/threats/technologies/lief). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2022-43171 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-43171 being exploited in the wild.

**How severe is CVE-2022-43171?** Low severity, with a CVSS score of 3.1, published 17 November 2022.

**Which products and versions are affected?** lief (PyPI) ECOSYSTEM:introduced=0,fixed=0.12.3.

**Is there a fix for CVE-2022-43171?** Yes. lief (PyPI): upgrade to 0.12.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-43171?** Check whether you run lief (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- lief (PyPI): upgrade to 0.12.3 or later

  ```sh
  pip install "lief>=0.12.3"
  ```


## Affected products

- lief (PyPI) ECOSYSTEM:introduced=0,fixed=0.12.3

## Identifiers

- CVE-2022-43171
- GHSA-jvp9-phwp-p738
- PYSEC-2022-43140

## Related threats

- [PYSEC-2026-1538 - LIEF is vulnerable to segmentation fault](https://junglewise.ai/threats/cve-2025-15504-lief-is-vulnerable-to-segmentation-fault)
- [LIEF uninitialized variable in machd_reader.c](https://junglewise.ai/threats/cve-2024-31636-lief-uninitialized-variable-in-machd-reader-c)
- [LIEF segmentation fault in MachO binary parser](https://junglewise.ai/threats/cve-2022-40922-lief-segmentation-fault-in-macho-binary-parser)
- [LIEF vulnerable to denial of service through segmentation fault](https://junglewise.ai/threats/cve-2022-40923-lief-vulnerable-to-denial-of-service-through-segmentation-fault)
- [LIEF contains segmentation violation](https://junglewise.ai/threats/cve-2022-38307-lief-contains-segmentation-violation)
