{"id":"CVE-2025-64096","published":"2025-10-30T17:09:24Z","modified":"2026-01-09T22:54:42Z","title":"CryptoLib vulnerable to Stack Buffer Overflow in Crypto_Key_Update due to missing TLV length check","vendor":"nasa","product":"CryptoLib","tier":"tail","description":{"text":"CryptoLib provides a software-only solution using the CCSDS Space Data Link Security Protocol - Extended Procedures (SDLS-EP) to secure communications between a spacecraft running the core Flight System (cFS) and a ground station. Prior to 1.4.2, there is a missing bounds check in Crypto_Key_update() (crypto_key_mgmt.c) which allows a remote attacker to trigger a stack-based buffer overflow by supplying a TLV packet with a spoofed length field. The function calculates the number of keys from an attacker-controlled field (pdu_len), which may exceed the static array size (kblk[98]), leading to an out-of-bounds write and potential memory corruption. This vulnerability is fixed in 1.4.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00527,"percentile":0.45556,"provenance":"source"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"references":[{"url":"https://github.com/nasa/CryptoLib/security/advisories/GHSA-w6c3-pxvr-6m6j","tags":["x_refsource_CONFIRM"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":9.11},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"nasa","affectedVersions":[{"vendor":"nasa","product":"CryptoLib","versions":["< 1.4.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-10-30T18:15:43.651275Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-37044","exploited":false,"provenance":"source"}}