# CVE-2025-64096: CryptoLib vulnerable to Stack Buffer Overflow in Crypto\_Key\_Update due to missing TLV length check

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 1.4.2 (CNA); fix release not confirmed
- Status: published
- Published: 2025-10-30 · Modified: 2026-01-09
- Record: https://cvemate.com/vulnerability/CVE-2025-64096 · JSON: https://cvemate.com/vulnerability/CVE-2025-64096/json

## 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.
```

## Signals

- CVSS: 8.8 high (v3.0, CVE.org) CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.527%, percentile 46.147%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- nasa cryptolib: \< 1.4.2

## References

- <https://github.com/nasa/CryptoLib/security/advisories/GHSA-w6c3-pxvr-6m6j>

---

Data as of 2026-12-05T13:33:42.773Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
