CVE-2022-38495
HIGH 7.8CVSS 3.1LIEF 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.
- Published
- 13 Sep 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-787
- Also known as
- GHSA-42vg-2q93-fj6jPYSEC-2022-276
- Sources
- NVDJSONOSV GHSA-42vg-2q93-fj6jJSONOSV PYSEC-2022-276JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | lief-project | liefcpe:2.3:a:lief-project:lief:*:*:*:*:*:*:*:* |
<= 0.12.1 | |
| OSV | PyPI | lief | <= 0.12.1 | |
| OSV | PyPI | lief | < 0.12.1 | 0.12.1 |
References
- https://github.com/lief-project/LIEF/issues/767 · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB, REPORT
- https://nvd.nist.gov/vuln/detail/CVE-2022-38495 · ADVISORY
- https://github.com/lief-project/LIEF/commit/0033b6312fd311b2e45e379c04a83d77c1e58578 · WEB
- https://github.com/lief-project/LIEF · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/lief/PYSEC-2022-276.yaml · WEB
- https://github.com/advisories/GHSA-42vg-2q93-fj6j · ADVISORY
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 13 Sep 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Sep 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 14 Sep 2022)