# CVE-2026-22697: CryptoLib Has Heap Buffer Overflow Vulnerability in KMC Base64 Decode Handling (KMC JSON base64ciphertext/base64cleartext)

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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): 0.54%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-10T00:31:11.045Z
- Modified: 2026-06-17T10:20:15.223Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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. Prior to version 1.4.3, CryptoLib’s KMC crypto service integration is vulnerable to a heap buffer overflow when decoding Base64-encoded ciphertext/cleartext fields returned by the KMC service. The decode destination buffer is sized using an expected output length (len_data_out), but the Base64 decoder writes output based on the actual Base64 input length and does not enforce any destination size limit. An oversized Base64 string in the KMC JSON response can cause out-of-bounds writes on the heap, resulting in process crash and potentially code execution under certain conditions. This issue has been patched in version 1.4.3.

(As written by CVE List.)

## Affected

- nasa CryptoLib: < 1.4.3; before 1.4.3

## References

- <https://github.com/nasa/CryptoLib/security/advisories/GHSA-qjx3-83jh-2jc4> (exploit, vendor-advisory)
- <https://github.com/nasa/CryptoLib/releases/tag/v1.4.3> (release-notes)

## Sources

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

---

Page: https://cve.day/CVE-2026-22697 · Whole record: https://cve.day/CVE-2026-22697.json · Rebuilt by cve.day 2026-11-25T22:59:12.700Z
