Skip to content
Threat Feed
high advisory

Nasa CryptoLib: Heap overflow in Crypto_TM_ProcessSecurity (CVE-2025-30216)

A high-severity heap overflow vulnerability in Nasa CryptoLib (v1.3.3 and prior) allows unauthenticated remote attackers to trigger out-of-bounds memory corruption via malformed CCSDS protocol packets, potentially leading to arbitrary code execution.

CVE search metadata

CVE search record: CVE-2025-30216. Severity: critical. CVSS: 9.4. EPSS: 2.65%. KEV: no. Product: CryptoLib (< 1.4.0). Brief: Nasa CryptoLib: Heap overflow in Crypto_TM_ProcessSecurity (CVE-2025-30216). Brief link: https://feed.craftedsignal.io/briefs/2026-10-cve-2025-30216-poc/

Triage facts

Revision 1
Applicability
CryptoLib (< 1.4.0)
Evidence
Unknown
Severity
High
Action
Elevated
Sources
3 public sources
Freshness
Revision 1Oct 29, 22:23 UTC
Vulnerabilities
1 CVE
Source quality
B2Likely

Nasa CryptoLib versions 1.3.3 and prior contain a heap overflow vulnerability in the Crypto_TM_ProcessSecurity function within crypto_tm.c. The vulnerability stems from insufficient validation of the Secondary Header Length field in CCSDS Space Data Link Security Protocol packets. When the provided length exceeds the actual packet size, an out-of-bounds memcpy occurs into the p_new_dec_frame heap-allocated buffer. A public proof-of-concept (PoC) exists that demonstrates packet generation to trigger this memory corruption.

Impact

Successful exploitation allows a remote, unauthenticated attacker to corrupt heap memory. Potential impacts include arbitrary code execution, system instability, or denial of service on systems utilizing the core Flight System (cFS).

Recommendation

  • Upgrade Nasa CryptoLib to the version containing the fix referenced in commit 810fd66d592c883125272fef123c3240db2f170f.
  • Implement strict bounds checking for all incoming CCSDS packet header fields before passing data to memcpy operations.
  • Monitor network traffic directed toward systems running cFS for malformed CCSDS packets matching the logic: claimed_length > (total_length - (header_offset + length_field_size)).

Immediate actions

Patch Nasa CryptoLib to the version associated with commit 810fd66d592c883125272fef123c3240db2f170f

IT Operations 72h

Threat Hunt

Inspect network traffic for CCSDS packets where Secondary Header Length exceeds valid payload bounds

T1210 high high confidence hunt now

Data: Raw network capture or protocol-specific dissector logs for CCSDS/SDLS-EP

Mitigations

Upgrade CryptoLib to v1.4.0 or apply commit 810fd66d592c883125272fef123c3240db2f170f

immediate IT Operations

CVE-2025-30216