Buffer overflow in Nasa Cryptolib
CVE-2025-30356
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. In 1.3.3 and earlier, a heap buffer overflow vulnerability persists in the Crypto_TC_ApplySecurity function due to an incomplete validation check on the fl (frame length) field. Although CVE-2025-29912 addressed an underflow issue involving fl, the patch fails to fully prevent unsafe calculations. As a result, an attacker can still craft malicious frames that cause a negative tf_payload_len, which is then interpreted as a large unsigned value, leading to a heap buffer overflow in a memcpy call.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.007, 52.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Nasa Cryptolib — versions <= 1.3.3
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (mirkobitetto/mirkobitetto). These reference the CVE in a list, notes or a scanner and are not exploit code for it.