# CVE-2025-30356: Heap Buffer Overflow via Incomplete Length Check in `Crypto_TC_ApplySecurity`

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.03%, higher than 63% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-04-01T22:06:22.576Z
- Modified: 2026-06-17T09:08:34.470Z
- Weaknesses: CWE-191, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- nasa CryptoLib: <= 1.3.3; before 1.4.0

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/nasa/CryptoLib/security/advisories/GHSA-6w2x-w7w3-85w2> (exploit, vendor-advisory)
- <https://github.com/nasa/CryptoLib/commit/59d1bce7608c94c6131ef4877535075b0649799c> (patch)

## Sources

- CVE List: [CVE-2025-30356](https://www.cve.org/CVERecord?id=CVE-2025-30356), CVE Terms of Use, modified 2025-04-02
- NVD: [CVE-2025-30356](https://nvd.nist.gov/vuln/detail/CVE-2025-30356), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-30356 · Whole record: https://cve.day/CVE-2025-30356.json · Rebuilt by cve.day 2026-11-25T22:58:55.942Z
