🛡️ CVE-2021-32297 — lief
Description
LIEF heap-buffer-overflow
An issue was discovered in LIEF prior to version 0.11.0. A heap-buffer-overflow exists in the function main located in pe_reader.c. It allows an attacker to cause code Execution.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must actively cooperate. Rated impact: confidentiality high, integrity high, availability high.
Weakness class
CVE-2021-32297 is classified as CWE-787: Out-of-bounds Write. Data is written past the end or before the start of a buffer, corrupting whatever is stored there.
Affected software
CVE-2021-32297 is recorded against 1 package.
- lief (fixed in 0.11.0)
Timeline and source
Published on 24 May 2022 and last revised on 10 June 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Package)
github.com (Web)
CVE-2021-32297 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
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
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| lief | — | 0.11.0 |
References
Similar Threats
- Low CVE-2025-15504
- Low CVE-2024-31636
- Unknown DEBIAN-CVE-2024-31636
- Unknown UBUNTU-CVE-2024-31636
- Medium CVE-2022-44012
More CVE 2021 advisories
Browse all of CVE 2021 in the advisory index.
Site Security Check
Is lief part of your stack?
CVE-2021-32297 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.