CVEfocus › CVE database › CVE-2018-16151

CVE-2018-16151

CVSS 7.5 HighEPSS 1.9% (higher than 80% of CVEs)Published 2018-09-26Updated 2025-12-03Assigner: mitre

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.

CWE-347

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

26Fixed
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04strongswanFixed5.6.2-1ubuntu2.2UBUNTU-CVE-2018-16151
Ubuntu 16.04strongswanFixed5.3.5-1ubuntu3.7UBUNTU-CVE-2018-16151
Ubuntu 14.04strongswanFixed5.1.2-0ubuntu2.10UBUNTU-CVE-2018-16151
Debian 14strongswanFixed5.7.0-1DEBIAN-CVE-2018-16151
Debian 13strongswanFixed5.7.0-1DEBIAN-CVE-2018-16151
Debian 12strongswanFixed5.7.0-1DEBIAN-CVE-2018-16151
Red Hat Enterprise Linux 7strongimcvNot affected
Alpine Linux 3.24strongswanFixed5.7.0-r0ALPINE-CVE-2018-16151
Alpine Linux 3.23strongswanFixed5.7.0-r0ALPINE-CVE-2018-16151
Alpine Linux 3.22strongswanFixed5.7.0-r0ALPINE-CVE-2018-16151
Alpine Linux 3.21strongswanFixed5.7.0-r0ALPINE-CVE-2018-16151
Alpine Linux 3.20strongswanFixed5.7.0-r0ALPINE-CVE-2018-16151
Alpine Linux 3.19strongswanFixed5.7.0-r0ALPINE-CVE-2018-16151
Alpine Linux 3.18strongswanFixed5.7.0-r0ALPINE-CVE-2018-16151
Alpine Linux 3.17strongswanFixed5.7.0-r0ALPINE-CVE-2018-16151
Alpine Linux 3.16strongswanFixed5.7.0-r0ALPINE-CVE-2018-16151
Alpine Linux 3.15strongswanFixed5.7.0-r0ALPINE-CVE-2018-16151
Alpine Linux 3.14strongswanFixed5.7.0-r0ALPINE-CVE-2018-16151
Alpine Linux 3.13strongswanFixed5.7.0-r0ALPINE-CVE-2018-16151
Alpine Linux 3.12strongswanFixed5.7.0-r0ALPINE-CVE-2018-16151
Alpine Linux 3.11strongswanFixed5.7.0-r0ALPINE-CVE-2018-16151
Alpine Linux 3.10strongswanFixed5.7.0-r0ALPINE-CVE-2018-16151
Alpine Linux 3.9strongswanFixed5.7.0-r0ALPINE-CVE-2018-16151
Alpine Linux 3.8strongswanFixed5.6.3-r2ALPINE-CVE-2018-16151
Alpine Linux 3.7strongswanFixed5.6.3-r1ALPINE-CVE-2018-16151
Alpine Linux 3.6strongswanFixed5.5.3-r2ALPINE-CVE-2018-16151
Alpine Linux 3.5strongswanFixed5.5.3-r2ALPINE-CVE-2018-16151

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.