CVE-2025-30216: nasa cryptolib Heap-based Buffer Overflow
Vulnerability summary
CVE-2025-30216 is a critical (CVSS 9.4) Heap-based Buffer Overflow vulnerability in nasa cryptolib. EPSS estimates a 2.65% chance of exploitation in the next 30 days, higher than 85.4% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 25-03-2025PublishedVulnerability first disclosed.
- 25-03-2025Last modifiedVulnerability information updated.
Description
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 versions 1.3.3 and prior, a Heap Overflow vulnerability occurs in the `Crypto_TM_ProcessSecurity` function (`crypto_tm.c:1735:8`). When processing the Secondary Header Length of a TM protocol packet, if the Secondary Header Length exceeds the packet's total length, a heap overflow is triggered during the memcpy operation that copies packet data into the dynamically allocated buffer `p_new_dec_frame`. This allows an attacker to overwrite adjacent heap memory, potentially leading to arbitrary code execution or system instability. A patch is available at commit 810fd66d592c883125272fef123c3240db2f170f.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HDiffers
EPSS trend
Probability
2.65%
Chance of exploitation in the next 30 days
Percentile
85%
Versus all other CVEs
30-day change
+0.04 pp
From 2.60% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundCryptolib
Maturity: poc
Weaknesses
CWE · root cause- CWE-122Heap-based Buffer OverflowA heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Nasa1 product
- cryptolib≤ 1.3.3 | < 1.4.0
1 vendor · 1 product
References
3 links- github.com/nasa/CryptoLib/security/advisories/GHSA-v3jc-5j74-hcjvX Refsource CONFIRMExploitVendor Advisory