CVE-2025-29912CWE-122CWE-191

CryptoLib Has Heap Buffer Overflow Due to Unsigned Integer Underflow in Crypto_TC_ProcessSecurity

High · published March 17, 2025

CVSS v4.0
8.9
EPSS
1%
Percentile
65.9
In the wild
Unconfirmed
What it is

⚡ A sneaky underflow in CryptoLib could send your spacecraft communications spiraling out of control! 🚀 Think of this vulnerability as a delivery truck that misreads an address because the route has a missing sign. When the truck sees a frame length of 0, it assumes it needs to carry an enormous load instead, leading to a chaotic detour far beyond its intended path. An attacker could exploit this underflow to trigger a heap buffer overflow, potentially leading to a denial of service (DoS) or even remote code execution. This would put critical communication between spacecraft and ground stations at grave risk, causing system failures and compromising mission integrity.

Put simply

Think of this vulnerability as a delivery truck that misreads an address because the route has a missing sign. When the truck sees a frame length of 0, it assumes it needs to carry an enormous load instead, leading to a chaotic detour far beyond its intended path. This vulnerability arises from an unsigned integer underflow in the `Crypto_TC_ProcessSecurity` function of CryptoLib. When the frame length field in a Telecommand packet is set to 0, it incorrectly computes the length as 65535, which leads to out-of-bounds memory access.

What to do

An attacker could exploit this underflow to trigger a heap buffer overflow, potentially leading to a denial of service (DoS) or even remote code execution. This would put critical communication between spacecraft and ground stations at grave risk, causing system failures and compromising mission integrity. Immediate action is required: upgrade to CryptoLib version 1.3.4 or later to eliminate this vulnerability. Until the patch is applied, avoid processing untrusted TC packets to mitigate potential attacks. You've got this! Just follow these steps, and you'll keep your communications secure in no time! 🛡️

The record
Technical detail
CVSS v4.0
8.9 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
EPSS
0.01122 · 65.9th percentile
Weaknesses
CWE-122 · Heap-based Buffer Overflow; CWE-191 · Integer Underflow (Wrap or Wraparound)
Published
2025-03-17T22:48Z
EPSS history
Timeline
  • 17 MAR 22:48Z
    CryptoLib Has Heap Buffer Overflow Due to Unsigned Integer Underflow in Crypto_TC_ProcessSecurity
    cvelistv5