{"id":"CVE-2026-31253","published":"2026-05-11T00:00:00Z","modified":"2026-05-12T19:32:41Z","title":"The flash-attention training framework thru commit e724e2588cbe754beb97cf7c011b5e7e34119e62 (2025-13-04) contains an…","vendor":null,"product":null,"tier":"tail","description":{"text":"The flash-attention training framework thru commit e724e2588cbe754beb97cf7c011b5e7e34119e62 (2025-13-04) contains an insecure deserialization vulnerability (CWE-502) in its checkpoint loading mechanism. The load_checkpoint() function in checkpoint.py and the checkpoint loading code in eval.py use torch.load() without enabling the security-restrictive weights_only=True parameter. This allows the deserialization of arbitrary Python objects via the pickle module. An attacker can exploit this by providing a maliciously crafted checkpoint file. When a victim loads this checkpoint during model warmstarting or evaluation, arbitrary code is executed on the victim's system.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00218,"percentile":0.12556,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/Dao-AILab/flash-attention","tags":[]},{"url":"https://www.notion.so/CVE-2026-31253-35d1e1393188813f9e77e2038104bc49","tags":[]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":2.51},{"name":"CVSS severity","points":5.11}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-12T19:32:06.944533Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"flash_attn","vulnerableRanges":["<=2.8.3"],"patched":[],"from":["GHSA-7g5w-pq96-8c5w","PYSEC-2026-2477"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-29100","exploited":false,"provenance":"source"}}