{"id":"CVE-2022-38307","aliases":["EUVD-2022-0139","GHSA-x2xx-jw5m-5j86","PYSEC-2022-275","UBUNTU-CVE-2022-38307"],"status":"published","title":"LIEF contains segmentation violation","description":"LIEF commit 5d1d643 was discovered to contain a segmentation violation via the function LIEF::MachO::SegmentCommand::file_offset() at /MachO/SegmentCommand.cpp.","severity":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00304,"percentile":0.23405,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-476"],"published":"2022-09-13T20:16:45Z","modified":"2026-10-28T02:30:34Z","fixes":[{"ecosystem":"PyPI","package":"lief","fixed_in":["0.12.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"lief","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"lief","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.1"}]}],"versions":["0.10.0","0.10.1","0.11.0","0.11.1","0.11.2","0.11.3","0.11.4","0.11.5","0.12.0","0.8.0","0.8.1","0.8.2","0.8.3","0.9.0"]},{"source":"osv","ecosystem":"PyPI","package":"lief","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.1"}]}],"versions":["0.10.0","0.10.1","0.11.0","0.11.1","0.11.2","0.11.3","0.11.4","0.11.5","0.12.0","0.8.0","0.8.1","0.8.2","0.8.3","0.9.0"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"lief","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.0-1build1","0.9.0-1build2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"lief","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.0-1build2","0.9.0-1build3"]}],"products":[{"vendor":"lief-project","product":"lief"}],"references":[{"url":"https://github.com/lief-project/LIEF/issues/764","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-38307","tags":["advisory"]},{"url":"https://github.com/lief-project/LIEF/commit/7acf0bc4224081d4f425fcc8b2e361b95291d878","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/lief/PYSEC-2022-275.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-x2xx-jw5m-5j86","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/38xxx/CVE-2022-38307.json","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-38307","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-38307","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-38307","description":"LIEF commit 5d1d643 was discovered to contain a segmentation violation via the function LIEF::MachO::SegmentCommand::file_offset() at /MachO/SegmentCommand.cpp.","status":"published","published":"2022-09-13T20:16:45Z","modified":"2024-08-03T10:54:02.778Z","updated_at":"2026-11-02T14:34:37.272373Z"}],"euvd":[{"id":"EUVD-2022-0139","description":"LIEF commit 5d1d643 was discovered to contain a segmentation violation via the function LIEF::MachO::SegmentCommand::file_offset() at /MachO/SegmentCommand.cpp.","status":"published","published":"2022-09-13T20:16:45Z","modified":"2024-08-03T10:54:02Z","updated_at":"2026-11-03T03:25:22.392967Z"}],"ghsa":[{"id":"GHSA-x2xx-jw5m-5j86","title":"LIEF contains segmentation violation","description":"LIEF commit 5d1d643 was discovered to contain a segmentation violation via the function `LIEF::MachO::SegmentCommand::file_offset()` at `/MachO/SegmentCommand.cpp`. Commit 7acf0bc4224081d4f425fcc8b2e361b95291d878 contains a patch.","status":"published","published":"2022-09-14T00:00:42Z","modified":"2023-08-17T05:02:30Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T14:37:00.074932Z"}],"nvd":[{"id":"CVE-2022-38307","description":"LIEF commit 5d1d643 was discovered to contain a segmentation violation via the function LIEF::MachO::SegmentCommand::file_offset() at /MachO/SegmentCommand.cpp.","status":"published","published":"2022-09-13T21:15:09.48Z","modified":"2026-06-17T04:56:24.803Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T14:07:27.631109Z"}],"osv":[{"id":"GHSA-x2xx-jw5m-5j86","title":"LIEF contains segmentation violation","description":"LIEF commit 5d1d643 was discovered to contain a segmentation violation via the function `LIEF::MachO::SegmentCommand::file_offset()` at `/MachO/SegmentCommand.cpp`. Commit 7acf0bc4224081d4f425fcc8b2e361b95291d878 contains a patch.","status":"published","published":"2022-09-14T00:00:42Z","modified":"2024-02-16T08:18:48.304136Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T15:46:59.484835Z"},{"id":"UBUNTU-CVE-2022-38307","description":"LIEF commit 5d1d643 was discovered to contain a segmentation violation via the function LIEF::MachO::SegmentCommand::file_offset() at /MachO/SegmentCommand.cpp.","status":"published","published":"2022-09-13T21:15:00Z","modified":"2026-04-22T13:28:53.654467Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T16:53:55.502114Z"},{"id":"CVE-2022-38307","description":"LIEF commit 5d1d643 was discovered to contain a segmentation violation via the function LIEF::MachO::SegmentCommand::file_offset() at /MachO/SegmentCommand.cpp.","status":"published","published":"2022-09-13T20:16:45Z","modified":"2026-10-28T02:30:34.871738239Z","updated_at":"2026-11-02T15:44:26.53798Z"},{"id":"PYSEC-2022-275","description":"LIEF commit 5d1d643 was discovered to contain a segmentation violation via the function LIEF::MachO::SegmentCommand::file_offset() at /MachO/SegmentCommand.cpp.","status":"published","published":"2022-09-13T21:15:00Z","modified":"2026-06-10T17:02:01.076884435Z","updated_at":"2026-11-02T15:52:53.449407Z"}]}}
