Every CVE Search/ Get API key

CVE-2022-38495

LIEF vulnerable to heap based buffer overflow via print_binary function

7.8 HighFix available

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

0.34%Down 0.5 points since Sep 14, 2022
90%50%10%1%

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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
lief
PyPI
through 0.12.1 None known
lief
PyPI
through 0.12.1, plus listed versions
0.10.00.10.10.11.00.11.10.11.2
Show 9 moreShow less
0.11.30.11.40.11.50.12.00.8.00.8.10.8.20.8.30.9.0
None known
lief
PyPI
before 0.12.1, plus listed versions
0.10.00.10.10.11.00.11.10.11.2
Show 9 moreShow less
0.11.30.11.40.11.50.12.00.8.00.8.10.8.20.8.30.9.0
0.12.1
lief
Ubuntu:20.04:LTS
All versions, plus listed versions
0.9.0-1build10.9.0-1build2
None known
lief
Ubuntu:22.04:LTS
All versions, plus listed versions
0.9.0-1build20.9.0-1build3
None known

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

MoveEnter Open