Improper Verification of Cryptographic Signature Affecting axtls package, versions [,2.1.4)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.7% (52nd 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-AXTLS-2380777
  • published26 Jan 2022
  • disclosed7 Nov 2018
  • creditUnknown

Introduced: 7 Nov 2018

CVE-2018-16149  (opens in a new tab)
CWE-347  (opens in a new tab)

How to fix?

Upgrade axtls to version 2.1.4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature. In sig_verify() in x509.c in axTLS version 2.1.3 and before, the PKCS#1 v1.5 signature verification blindly trusts the declared lengths in the ASN.1 structure. Consequently, when small public exponents are being used, a remote attacker can generate purposefully crafted signatures (and put them on X.509 certificates) to induce illegal memory access and crash the verifier.

References

CVSS Base Scores

version 3.1