Improper Verification of Cryptographic Signature Affecting strongswan package, versions [4.0.0,4.6.4][5.0.0,5.7.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.88% (83rd 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-STRONGSWAN-2371962
  • published26 Jan 2022
  • disclosed26 Sept 2018
  • creditUnknown

Introduced: 26 Sep 2018

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

How to fix?

Upgrade strongswan to version 5.7.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature. In verify_emsa_pkcs1_signature() in gmp_rsa_public_key.c in the gmp plugin in strongSwan 4.x and 5.x before 5.7.0, the RSA implementation based on GMP does not reject excess data after the encoded algorithm OID during PKCS#1 v1.5 signature verification. Similar to the flaw in the same version of strongSwan regarding digestAlgorithm.parameters, a remote attacker can forge signatures when small public exponents are being used, which could lead to impersonation when only an RSA signature is used for IKEv2 authentication.

References

CVSS Scores

version 3.1