CVE-2022-38306
Description
LIEF commit 5d1d643 was discovered to contain a heap-buffer overflow in the component /core/CorePrPsInfo.tcc.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
CVE-2022-38306 is a heap-buffer-overflow in LIEF's ELF parser, in CorePrPsInfo parsing, triggered by a crafted ELF file.
CVE-2022-38306 describes a heap-buffer-overflow vulnerability in the LIEF library, specifically in the ELF parsing component CorePrPsInfo.tcc. The issue was discovered in commit 5d1d643 [1]. The root cause is a READ operation of size 109 via strlen which overflows a heap buffer when parsing a malformed ELF core dump note (CorePrPsInfo) [1].
The vulnerability can be exploited by providing a specially crafted ELF file to LIEF's elf_reader example tool. An attacker does not need authentication; the attack vector is local or remote file parsing. The on-in the provided crash report, the exploit is triggered by running the elf_reader binary with a proof-of-concept file (poc.zip) [1]. The overflow occurs during the parse_() template instantiation, leading to a heap-buffer-overflow read [1].
Successful exploitation could cause a denial of service (application crash) or potentially allow further memory corruption depending on the heap layout and attacker control over the overflow data. The impact is bounded to the LIEF library's context; it does not directly affect the kernel or other applications. No code execution is confirmed in the references. The LIEF project addressed the issue in commit 53bf680, which fixes the overflow by adding proper bounds checking [2]. Users are advised to update LIEF to a version that includes this fix or apply the patch manually.
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
liefPyPI | <= 0.12.1 | — |
Affected products
2- LIEF/LIEFdescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- github.com/advisories/GHSA-52xx-r3g2-p8jmghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-38306ghsaADVISORY
- github.com/lief-project/LIEF/commit/53bf680ef494a835e2c4a5de328ca85416a03a5aghsaWEB
- github.com/lief-project/LIEF/issues/763ghsax_refsource_MISCWEB
- github.com/pypa/advisory-database/tree/main/vulns/lief/PYSEC-2022-274.yamlghsaWEB
News mentions
0No linked articles in our index yet.