Integer Underflow (Wrap or Wraparound) Affecting nasa/CryptoLib package, versions [,1.4.0)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.08% (26th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-NASACRYPTOLIB-10183405
  • published19 May 2025
  • disclosed1 Apr 2025
  • creditmirkobitetto

Introduced: 1 Apr 2025

CVE-2025-30356  (opens in a new tab)
CWE-191  (opens in a new tab)

How to fix?

Upgrade nasa/CryptoLib to version 1.4.0 or higher.

Overview

Affected versions of this package are vulnerable to Integer Underflow (Wrap or Wraparound) due to an incomplete validation check on the fl field. An attacker can execute arbitrary code or cause a crash by crafting malicious frames that manipulate the tf_payload_len to be interpreted as a large unsigned value, leading to a heap buffer overflow during a memcpy operation.

References

CVSS Base Scores

version 4.0
version 3.1