# CVE-2021-32297: LIEF heap-buffer-overflow

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/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): 1.56%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-09-20T15:26:51.000Z
- Modified: 2026-06-17T03:52:55.373Z
- Also known as: GHSA-22x7-vwh9-5w4g, PYSEC-2021-324
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

An issue was discovered in LIEF through 0.11.4. A heap-buffer-overflow exists in the function main located in pe_reader.c. It allows an attacker to cause code Execution.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- lief (PyPI): before 0.11.0; before 0.11.5
- lief-project lief: up to 0.11.4

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/lief-project/LIEF/issues/449> (exploit, issue-tracking, patch, report, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32297> (advisory)
- <https://github.com/lief-project/LIEF/commit/19e06755e8ce1ecf136360a5c36cded3701ac253> (web)
- <https://github.com/lief-project/LIEF> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/lief/PYSEC-2021-324.yaml> (web)
- <https://github.com/advisories/GHSA-22x7-vwh9-5w4g> (advisory)

## Sources

- CVE List: [CVE-2021-32297](https://www.cve.org/CVERecord?id=CVE-2021-32297), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-22x7-vwh9-5w4g](https://github.com/advisories/GHSA-22x7-vwh9-5w4g), CC-BY-4.0, modified 2024-09-30
- NVD: [CVE-2021-32297](https://nvd.nist.gov/vuln/detail/CVE-2021-32297), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-324](https://osv.dev/vulnerability/PYSEC-2021-324), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2021-32297 · Whole record: https://cve.day/CVE-2021-32297.json · Rebuilt by cve.day 2026-11-25T22:58:04.060Z
