CVE-2026-22697: CryptoLib Has Heap Buffer Overflow Vulnerability in KMC Base64 Decode Handling (KMC JSON base64ciphertext/base64cleartext)
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 (lendataout), 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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-22697?
CVE-2026-22697 has been assigned a severity level that indicates potential risks in securing communications, specifically related to the KMC crypto service.
How do I fix CVE-2026-22697?
To fix CVE-2026-22697, upgrade to CryptoLib version 1.4.3 or later.
Which versions of CryptoLib are affected by CVE-2026-22697?
CryptoLib versions prior to 1.4.3 are affected by CVE-2026-22697.
What is CryptoLib’s role in relation to CVE-2026-22697?
CryptoLib provides security features that are vulnerable due to issues with the KMC crypto service prior to version 1.4.3.
What should users of CryptoLib be aware of regarding CVE-2026-22697?
Users should be aware that CVE-2026-22697 presents a security concern that requires immediate upgrade to maintain secure communications.