CVE-2022-38495
LIEF vulnerable to heap based buffer overflow via print_binary function
LIEF commit 365a16a was discovered to contain a heap-buffer overflow via the function print_binary at /c/macho_reader.c.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
LIEF commit 365a16a was discovered to contain a heap-buffer overflow via the function print_binary at /c/macho_reader.c.
- Record
CVE-2022-38495- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
LIEF commit 365a16a was discovered to contain a heap-buffer overflow via the function print_binary at /c/macho_reader.c.
- Record
CVE-2022-38495- Updated
- 2026-11-02
EUVDEUVD-2022-0140 No score
LIEF commit 365a16a was discovered to contain a heap-buffer overflow via the function print_binary at /c/macho_reader.c.
- Record
EUVD-2022-0140- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-42vg-2q93-fj6j
7.8
LIEF vulnerable to heap based buffer overflow via print_binary function
LIEF commit 365a16a was discovered to contain a heap-buffer overflow via the function print_binary at /c/macho_reader.c. Commit 0033b6312fd311b2e45e379c04a83d77c1e58578 contains a patch.
- Record
GHSA-42vg-2q93-fj6j- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSVGHSA-42vg-2q93-fj6j
7.8
LIEF vulnerable to heap based buffer overflow via print_binary function
LIEF commit 365a16a was discovered to contain a heap-buffer overflow via the function print_binary at /c/macho_reader.c. Commit 0033b6312fd311b2e45e379c04a83d77c1e58578 contains a patch.
- Record
GHSA-42vg-2q93-fj6j- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-38495
7.8
LIEF commit 365a16a was discovered to contain a heap-buffer overflow via the function print_binary at /c/macho_reader.c.
- Record
UBUNTU-CVE-2022-38495- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV No score
LIEF commit 365a16a was discovered to contain a heap-buffer overflow via the function print_binary at /c/macho_reader.c.
- Record
CVE-2022-38495- Updated
- 2026-11-02
OSVPYSEC-2022-276 No score
LIEF commit 365a16a was discovered to contain a heap-buffer overflow via the function print_binary at /c/macho_reader.c.
- Record
PYSEC-2022-276- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
liefPyPI |
through 0.12.1 | None known |
liefPyPI |
through 0.12.1, plus listed versions 0.10.00.10.10.11.00.11.10.11.2 Show 9 moreShow less0.11.30.11.40.11.50.12.00.8.00.8.10.8.20.8.30.9.0 |
None known |
liefPyPI |
before 0.12.1, plus listed versions 0.10.00.10.10.11.00.11.10.11.2 Show 9 moreShow less0.11.30.11.40.11.50.12.00.8.00.8.10.8.20.8.30.9.0 |
0.12.1 |
liefUbuntu:20.04:LTS |
All versions, plus listed versions 0.9.0-1build10.9.0-1build2 |
None known |
liefUbuntu:22.04:LTS |
All versions, plus listed versions 0.9.0-1build20.9.0-1build3 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-38495 is a high vulnerability (CVSS 7.8) in Lief-project Lief, published September 13, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.34%, the 28th percentile. Fixed in lief 0.12.1.
References
github.com/lief-project/LIEF/issues/767
nvd.nist.gov/vuln/detail/CVE-2022-38495
github.com/lief-project/LIEF/commit/0033b6312fd311b2e45e379c04a83d77c1e58578
github.com/pypa/advisory-database/tree/main/vulns/lief/PYSEC-2022-276.yaml
github.com/advisories/GHSA-42vg-2q93-fj6j
github.com/CVEProject/cvelistV5/tree/main/cves/2022/38xxx/CVE-2022-38495.json
github.com/lief-project/LIEF
ubuntu.com/security/CVE-2022-38495
cve.org/CVERecord?id=CVE-2022-38495