Nasa CryptoLib
CryptoLib Unbounded Memory Allocation in KMC HTTP Response Handler Allows Resource Exhaustion
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, the libcurl write_callback function in the KMC crypto service client allows unbounded memory growth by reallocating response buffers without any size limit or overflow check. A malicious KMC server can return arbitrarily large HTTP responses, forcing the client to allocate excessive memory until the process is terminated by the OS. This issue has been patched in version 1.4.3.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.4.3
Fixed in 1.4.3
Mitigation
Upgrade CryptoLib to 1.4.3 or later.
References
- Vendor advisory github.com/nasa/CryptoLib/security/advisories/…
- Patch github.com/nasa/CryptoLib/commit/2372efd3da1cc…
- Release notes github.com/nasa/CryptoLib/releases/tag/v1.4.3
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.