{"id":"CVE-2025-54951","details":"A group of related buffer overflow vulnerabilities in the loading of ExecuTorch models can cause the runtime to crash and potentially result in code execution or other undesirable effects. This issue affects ExecuTorch prior to commit cea9b23aa8ff78aff92829a466da97461cc7930c.","aliases":["GHSA-xc7w-r669-48pf","PYSEC-2026-336"],"modified":"2026-08-12T15:14:04.621091Z","published":"2025-08-07T23:06:02.059Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54951.json","unresolved_ranges":[{"extracted_events":[{"fixed":"https://github.com/pytorch/executorch/commit/cea9b23aa8ff78aff92829a466da97461cc7930c"}],"source":"AFFECTED_FIELD"}],"cna_assigner":"facebook"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54951.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54951"},{"type":"ADVISORY","url":"https://www.facebook.com/security/advisories/cve-2025-54951"},{"type":"FIX","url":"https://github.com/pytorch/executorch/commit/cea9b23aa8ff78aff92829a466da97461cc7930c"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pytorch/executorch","events":[{"introduced":"0"},{"fixed":"cea9b23aa8ff78aff92829a466da97461cc7930c"}],"database_specific":{"source":"REFERENCES"}}],"versions":["ciflow/binaries/sdym","ciflow/binaries/all/sdym","v0.2.0-rc1","v0.1.0-rc1","stable-2023-09-19","stable-2023-09-12","stable-2023-08-29","stable-2023-08-15","stable-2023-08-01"],"database_specific":{"vanir_signatures":[{"signature_type":"Function","signature_version":"v1","source":"https://github.com/pytorch/executorch/commit/cea9b23aa8ff78aff92829a466da97461cc7930c","target":{"file":"runtime/executor/tensor_parser_portable.cpp","function":"parseTensor"},"deprecated":false,"digest":{"function_hash":"70657680742118056363861746971916495693","length":2702},"id":"CVE-2025-54951-2617babe"},{"source":"https://github.com/pytorch/executorch/commit/cea9b23aa8ff78aff92829a466da97461cc7930c","target":{"file":"runtime/executor/tensor_parser_portable.cpp"},"deprecated":false,"digest":{"line_hashes":["224928593880561869846070578067810275519","240543869336225347340831625198115302181","241427249866267962502012502970555237421","139849032345911037092933887399244204789","8428812563860683456259216216943564300","279044381482919635398050535631142093543","179151029084254662779707308239915044542"],"threshold":0.9},"id":"CVE-2025-54951-72f52f1b","signature_type":"Line","signature_version":"v1"},{"signature_version":"v1","source":"https://github.com/pytorch/executorch/commit/cea9b23aa8ff78aff92829a466da97461cc7930c","target":{"file":"runtime/executor/tensor_parser_aten.cpp","function":"parseTensor"},"deprecated":false,"digest":{"function_hash":"89893370676549802340356288978603438175","length":2070},"id":"CVE-2025-54951-9adba138","signature_type":"Function"},{"target":{"file":"runtime/executor/tensor_parser_aten.cpp"},"deprecated":false,"digest":{"line_hashes":["125039678390203040802080730225756099814","241427249866267962502012502970555237421","139849032345911037092933887399244204789","146301707898574952508755783112266290740","221108239385796983507941345773378766297","48665207304957942159833918716386967077"],"threshold":0.9},"id":"CVE-2025-54951-ed7bbb47","signature_type":"Line","signature_version":"v1","source":"https://github.com/pytorch/executorch/commit/cea9b23aa8ff78aff92829a466da97461cc7930c"}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-54951.json","vanir_signatures_modified":"2026-08-12T15:14:04Z"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}