CryptoLib Heap Buffer Overflow Vulnerability in CCSDS Space Data Link Security Protocol

Vulnerability

A heap buffer overflow vulnerability has been identified in CryptoLib versions through 1.3.3. The issue arises in the Crypto_TC_ApplySecurity function, where an incomplete validation of the frame length allows attackers to craft malicious frames. This exploitation causes a negative payload length, interpreted as a large unsigned value, leading to a buffer overflow during memory copying operations.

Impact

Exploitation of this vulnerability causes a heap buffer overflow, which can corrupt memory and potentially allow for remote code execution under certain conditions.

Reproduction

The vulnerability can be reproduced by sending a crafted frame with a specific length that triggers the buffer overflow. This can be done by using the Crypto_TC_ApplySecurity function with a frame length that, after the applied calculations, results in a negative value being interpreted as a large unsigned number. The buffer overflow can be verified by using AddressSanitizer, which will report the heap-buffer-overflow error.

Remediation

Users are advised to update to version 1.4.0, where this vulnerability has been addressed.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
6.0
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.