Improper Verification of Cryptographic Signature Affecting strongswan package, versions <5.7.0-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.33% (80th 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-DEBIAN14-STRONGSWAN-11768812
  • published10 Aug 2025
  • disclosed26 Sept 2018

Introduced: 26 Sep 2018

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

How to fix?

Upgrade Debian:14 strongswan to version 5.7.0-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream strongswan package and not the strongswan package as distributed by Debian. See How to fix? for Debian:14 relevant fixed versions and status.

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 in the digestAlgorithm.parameters field during PKCS#1 v1.5 signature verification. Consequently, 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. This is a variant of CVE-2006-4790 and CVE-2014-1568.