# CVE-2022-38307: LIEF contains segmentation violation

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-09-13T20:16:45.000Z
- Modified: 2026-06-17T04:56:24.803Z
- Also known as: GHSA-x2xx-jw5m-5j86, PYSEC-2022-275
- Weaknesses: CWE-476
- Assigned by: mitre

## Description

LIEF commit 5d1d643 was discovered to contain a segmentation violation via the function LIEF::MachO::SegmentCommand::file_offset() at /MachO/SegmentCommand.cpp.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- lief (PyPI): before 0.12.1
- lief-project lief: before 0.12.1

## Every score

- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/lief-project/LIEF/issues/764> (exploit, issue-tracking, patch, report, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-38307> (advisory)
- <https://github.com/lief-project/LIEF/commit/7acf0bc4224081d4f425fcc8b2e361b95291d878> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/lief/PYSEC-2022-275.yaml> (web)
- <https://github.com/advisories/GHSA-x2xx-jw5m-5j86> (advisory)

## Sources

- CVE List: [CVE-2022-38307](https://www.cve.org/CVERecord?id=CVE-2022-38307), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-x2xx-jw5m-5j86](https://github.com/advisories/GHSA-x2xx-jw5m-5j86), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2022-38307](https://nvd.nist.gov/vuln/detail/CVE-2022-38307), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-275](https://osv.dev/vulnerability/PYSEC-2022-275), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2022-38307 · Whole record: https://cve.day/CVE-2022-38307.json · Rebuilt by cve.day 2026-11-25T22:58:14.913Z
