CryptoLib Has Heap Buffer Overflow Vulnerability in KMC Base64 Decode Handling (KMC JSON base64ciphertext/base64cleartext)
Published Jan 10, 2026
7.5
HIGHCVSS 3.1
EPSS 0.53%
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.
Affected products
-
- Version < 1.4.3StatusaffectedConstraints-
- Version
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (2)
- https://github.com/nasa/CryptoLib/releases/tag/v1.4.3 x_refsource_MISCRelease Notes
- https://github.com/nasa/CryptoLib/security/advisories/GHSA-qjx3-83jh-2jc4 exploitx_refsource_CONFIRMVendor Advisory
| Link | Providers | Tags |
|---|---|---|
| https://github.com/nasa/CryptoLib/releases/tag/v1.4.3 | x_refsource_MISCRelease Notes | |
| https://github.com/nasa/CryptoLib/security/advisories/GHSA-qjx3-83jh-2jc4 | exploitx_refsource_CONFIRMVendor Advisory |
Change history (0)
No recorded changes yet.