{"id":"CVE-2021-32297","aliases":["EUVD-2021-0109","GHSA-22x7-vwh9-5w4g","PYSEC-2021-324","UBUNTU-CVE-2021-32297"],"status":"published","title":"LIEF heap-buffer-overflow","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.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01559,"percentile":0.75539,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787"],"published":"2021-09-20T15:26:51Z","modified":"2026-10-20T10:53:48Z","fixes":[{"ecosystem":"PyPI","package":"lief","fixed_in":["0.11.0","0.11.5"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"lief","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.0"}]}]},{"source":"osv","ecosystem":"PyPI","package":"lief","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.0"}]}],"versions":["0.10.0","0.10.1","0.8.0","0.8.1","0.8.2","0.8.3","0.9.0"]},{"source":"osv","ecosystem":"PyPI","package":"lief","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.5"}]}],"versions":["0.10.0","0.10.1","0.11.0","0.11.1","0.11.2","0.11.3","0.11.4","0.8.0","0.8.1","0.8.2","0.8.3","0.9.0"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"lief","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.0-1build1","0.9.0-1build2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"lief","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.0-1build2","0.9.0-1build3"]}],"products":[{"vendor":"lief-project","product":"lief"}],"references":[{"url":"https://github.com/lief-project/LIEF/issues/449","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32297","tags":["advisory"]},{"url":"https://github.com/lief-project/LIEF/commit/19e06755e8ce1ecf136360a5c36cded3701ac253","tags":["web","report"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/lief/PYSEC-2021-324.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-22x7-vwh9-5w4g","tags":["advisory"]},{"url":"https://github.com/lief-project/LIEF","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2021-32297","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32297","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-32297","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.","status":"published","published":"2021-09-20T15:26:51Z","modified":"2024-08-03T23:17:29.382Z","updated_at":"2026-11-02T14:33:07.014772Z"}],"euvd":[{"id":"EUVD-2021-0109","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.","status":"published","published":"2021-09-20T15:26:51Z","modified":"2024-08-03T23:17:29Z","updated_at":"2026-11-03T03:24:37.407491Z"}],"ghsa":[{"id":"GHSA-22x7-vwh9-5w4g","title":"LIEF heap-buffer-overflow","description":"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.","status":"published","published":"2022-05-24T19:15:12Z","modified":"2024-09-30T16:43:59Z","cvss":[{"version":"4.0","score":8.6,"vector":"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","level":"high"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:38:06.988799Z"}],"nvd":[{"id":"CVE-2021-32297","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.","status":"published","published":"2021-09-20T16:15:10.963Z","modified":"2026-06-17T03:52:55.373Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:06:58.933037Z"}],"osv":[{"id":"CVE-2021-32297","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.","status":"published","published":"2021-09-20T16:15:10.963Z","modified":"2026-10-20T10:53:48.068640254Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:19.793849Z"},{"id":"GHSA-22x7-vwh9-5w4g","title":"LIEF heap-buffer-overflow","description":"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.","status":"published","published":"2022-05-24T19:15:12Z","modified":"2024-09-30T17:01:17.311878Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"},{"version":"4.0","score":8.6,"vector":"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","level":"high"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T15:46:33.520522Z"},{"id":"UBUNTU-CVE-2021-32297","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.","status":"published","published":"2021-09-20T16:15:00Z","modified":"2026-04-22T12:54:04.883038Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:27.332852Z"},{"id":"PYSEC-2021-324","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.","status":"published","published":"2021-09-20T16:15:00Z","modified":"2026-06-10T17:02:00.443663505Z","updated_at":"2026-11-02T15:52:52.682031Z"}]}}
