CVE Catalog

CVE-2026-22697

High
Published: Translated: NVD NIST

Summary

CryptoLib before version 1.4.3 contains a heap buffer overflow vulnerability when decoding Base64 fields in JSON responses from the KMC service. The destination buffer is sized based on expected output length, but the Base64 decoder writes based on actual input length, allowing out-of-bounds writes.

Risk Assessment

An attacker can send a malicious KMC response with an oversized Base64 string, causing a process crash or potentially arbitrary code execution. This may compromise the integrity and availability of space communication systems based on cFS.

Recommendation

Immediately upgrade CryptoLib to version 1.4.3 or later, which includes the fix. Also, limit trust in KMC responses and monitor systems for anomalies.

Other vulnerabilities in CryptoLib

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS