Every CVE Search/ Get API key

CVE-2018-16152

In verify_emsa_pkcs1_signature() in gmp_rsa_public_key.c in the gmp plugin in strongSwan 4.x and...

7.5 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
High
Availability
None

Exploit likelihood

1.89%Down 0.4 points since Apr 14, 2021
90%50%10%1%

What each source reports

CVE List 7.5

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.

Record
CVE-2018-16152
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-347
Updated
2026-11-02
EUVDEUVD-2018-8007 7.5

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.

Record
EUVD-2018-8007
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-ff5x-x5ch-2x28 7.5

In verify_emsa_pkcs1_signature() in gmp_rsa_public_key.c in the gmp plugin in strongSwan 4.x and...

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.

Record
GHSA-ff5x-x5ch-2x28
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-347
Updated
2026-11-02
NVD 7.5

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.

Record
CVE-2018-16152
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:P/A:N
Weakness
CWE-347
Updated
2026-11-02
OSVALPINE-CVE-2018-16152 7.5

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.

Record
ALPINE-CVE-2018-16152
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSV 7.5

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.

Record
CVE-2018-16152
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
Show 8 moreShow less
OSVDEBIAN-CVE-2018-16152 7.5

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.

Record
DEBIAN-CVE-2018-16152
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSVUBUNTU-CVE-2018-16152 7.5

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.

Record
UBUNTU-CVE-2018-16152
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSVopenSUSE-SU-2019:2594-1 No score

Security update for strongswan

This update for strongswan fixes the following issues:

Security issues fixed:

  • CVE-2018-5388: Fixed a buffer underflow which may allow to a remote attacker with local user credentials to resource exhaustion and denial of service while reading from the socket (bsc#1094462).
  • CVE-2018-10811: Fixed a denial of service during the IKEv2 key derivation if the openssl plugin is used in FIPS mode and HMAC-MD5 is negotiated as PRF (bsc#1093536).
  • CVE-2018-16151,CVE-2018-16152: Fixed multiple flaws in the gmp plugin which might lead to authorization bypass (bsc#1107874).
  • CVE-2018-17540: Fixed an improper input validation in gmp plugin (bsc#1109845).

This update was imported from the SUSE:SLE-15:Update update project.

Record
openSUSE-SU-2019:2594-1
Updated
2026-11-02
OSVopenSUSE-SU-2019:2598-1 No score

Security update for strongswan

This update for strongswan fixes the following issues:

Security issues fixed:

  • CVE-2018-5388: Fixed a buffer underflow which may allow to a remote attacker with local user credentials to resource exhaustion and denial of service while reading from the socket (bsc#1094462).
  • CVE-2018-10811: Fixed a denial of service during the IKEv2 key derivation if the openssl plugin is used in FIPS mode and HMAC-MD5 is negotiated as PRF (bsc#1093536).
  • CVE-2018-16151,CVE-2018-16152: Fixed multiple flaws in the gmp plugin which might lead to authorization bypass (bsc#1107874).
  • CVE-2018-17540: Fixed an improper input validation in gmp plugin (bsc#1109845).

This update was imported from the SUSE:SLE-15:Update update project.

Record
openSUSE-SU-2019:2598-1
Updated
2026-11-02
OSVSUSE-SU-2019:3056-1 No score

Security update for strongswan

This update for strongswan fixes the following issues:

Security issues fixed:

  • CVE-2018-5388: Fixed a buffer underflow which may allow to a remote attacker with local user credentials to resource exhaustion and denial of service while reading from the socket (bsc#1094462).
  • CVE-2018-10811: Fixed a denial of service during the IKEv2 key derivation if the openssl plugin is used in FIPS mode and HMAC-MD5 is negotiated as PRF (bsc#1093536).
  • CVE-2018-16151,CVE-2018-16152: Fixed multiple flaws in the gmp plugin which might lead to authorization bypass (bsc#1107874).
  • CVE-2018-17540: Fixed an improper input validation in gmp plugin (bsc#1109845).
Record
SUSE-SU-2019:3056-1
Updated
2026-11-02
OSVSUSE-SU-2019:3266-1 No score

Security update for strongswan

This update for strongswan provides the following fixes:

Security issues fixed:

  • CVE-2018-5388: Fixed a buffer underflow which may allow to a remote attacker with local user credentials to resource exhaustion and denial of service while reading from the socket (bsc#1094462).
  • CVE-2018-10811: Fixed a denial of service during the IKEv2 key derivation if the openssl plugin is used in FIPS mode and HMAC-MD5 is negotiated as PRF (bsc#1093536).
  • CVE-2018-16151,CVE-2018-16152: Fixed multiple flaws in the gmp plugin which might lead to authorization bypass (bsc#1107874).
  • CVE-2018-17540: Fixed an improper input validation in gmp plugin (bsc#1109845).

Other issues addressed:

  • Fixed some client fails when the scep server URL is used with HTTPS protocol (bsc#1071853).
  • Reject Diffie-Hellman key exchanges using primes smaller than 1024 bit.
  • Handle unexpected informational message from SonicWall. (bsc#1009254)
Record
SUSE-SU-2019:3266-1
Updated
2026-11-02
OSVSUSE-SU-2022:14887-1 No score

Security update for strongswan

This update for strongswan fixes the following issues:

  • CVE-2018-16151: Fixed flaws in gmp plugin that could lead to authorization bypass. (bsc#1107874)
  • CVE-2018-16152: Fixed flaws in gmp plugin that could lead to authorization bypass. (bsc#1107874)
  • CVE-2018-17540: Fixed insufficient input validation in gmp plugin. (bsc#1109845)
  • CVE-2021-45079: Fixed authentication bypass in EAP authentication. (bsc#1194471)
Record
SUSE-SU-2022:14887-1
Updated
2026-11-02
OSVUSN-3771-1 No score

strongswan vulnerabilities

It was discovered that strongSwan incorrectly handled IKEv2 key derivation. A remote attacker could possibly use this issue to cause strongSwan to crash, resulting in a denial of service. (CVE-2018-10811)

Sze Yiu Chau discovered that strongSwan incorrectly handled parsing OIDs in the gmp plugin. A remote attacker could possibly use this issue to bypass authorization. (CVE-2018-16151)

Sze Yiu Chau discovered that strongSwan incorrectly handled certain parameters fields in the gmp plugin. A remote attacker could possibly use this issue to bypass authorization. (CVE-2018-16152)

It was discovered that strongSwan incorrectly handled the stroke plugin. A local administrator could use this issue to cause a denial of service, or possibly execute arbitrary code. (CVE-2018-5388)

Record
USN-3771-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
strongswan
Alpine:v3.10
4.0.0 up to 5.7.0-r0
5.7.0-r0
strongswan
Alpine:v3.11
4.0.0 up to 5.7.0-r0
5.7.0-r0
strongswan
Alpine:v3.12
4.0.0 up to 5.7.0-r0
5.7.0-r0
strongswan
Alpine:v3.13
4.0.0 up to 5.7.0-r0
5.7.0-r0
strongswan
Alpine:v3.14
4.0.0 up to 5.7.0-r0
5.7.0-r0
strongswan
Alpine:v3.15
4.0.0 up to 5.7.0-r0
5.7.0-r0
strongswan
Alpine:v3.16
4.0.0 up to 5.7.0-r0
5.7.0-r0
strongswan
Alpine:v3.17
4.0.0 up to 5.7.0-r0
5.7.0-r0
strongswan
Alpine:v3.18
4.0.0 up to 5.7.0-r0
5.7.0-r0
strongswan
Alpine:v3.19
4.0.0 up to 5.7.0-r0
5.7.0-r0
Show 44 moreShow less
Affected packages
PackageAffectedFixed
strongswan
Alpine:v3.20
4.0.0 up to 5.7.0-r0
5.7.0-r0
strongswan
Alpine:v3.21
4.0.0 up to 5.7.0-r0
5.7.0-r0
strongswan
Alpine:v3.22
4.0.0 up to 5.7.0-r0
5.7.0-r0
strongswan
Alpine:v3.23
4.0.0 up to 5.7.0-r0
5.7.0-r0
strongswan
Alpine:v3.24
4.0.0 up to 5.7.0-r0
5.7.0-r0
strongswan
Alpine:v3.5
4.0.0 up to 5.5.3-r2
5.5.3-r2
strongswan
Alpine:v3.6
4.0.0 up to 5.5.3-r2
5.5.3-r2
strongswan
Alpine:v3.7
4.0.0 up to 5.6.3-r1
5.6.3-r1
strongswan
Alpine:v3.8
4.0.0 up to 5.6.3-r2
5.6.3-r2
strongswan
Alpine:v3.9
4.0.0 up to 5.7.0-r0
5.7.0-r0
strongswan
Debian:12
before 5.7.0-1
5.7.0-1
strongswan
Debian:13
before 5.7.0-1
5.7.0-1
strongswan
Debian:14
before 5.7.0-1
5.7.0-1
strongswan
Debian:8
From an advisory covering 2 CVEs
before 5.2.1-6+deb8u7, plus listed versions
5.2.1-65.2.1-6+deb8u15.2.1-6+deb8u1~bpo70+15.2.1-6+deb8u25.2.1-6+deb8u2~bpo70+1
Show 4 moreShow less
5.2.1-6+deb8u35.2.1-6+deb8u45.2.1-6+deb8u55.2.1-6+deb8u6
5.2.1-6+deb8u7
strongswan
Debian:9
From an advisory covering 2 CVEs
before 5.5.1-4+deb9u3, plus listed versions
5.5.1-45.5.1-4+deb9u15.5.1-4+deb9u2
5.5.1-4+deb9u3
strongswan
SUSE:Linux Enterprise Module for Basesystem 15
From an advisory covering 5 CVEs
before 5.6.0-4.3.2
5.6.0-4.3.2
strongswan
SUSE:Linux Enterprise Module for Basesystem 15 SP1
From an advisory covering 5 CVEs
before 5.6.0-4.3.2
5.6.0-4.3.2
strongswan
SUSE:Linux Enterprise Module for Package Hub 15
From an advisory covering 5 CVEs
before 5.6.0-4.3.2
5.6.0-4.3.2
strongswan
SUSE:OpenStack Cloud 7
From an advisory covering 5 CVEs
before 5.1.3-26.13.1
5.1.3-26.13.1
strongswan
SUSE:OpenStack Cloud 8
From an advisory covering 5 CVEs
before 5.1.3-26.13.1
5.1.3-26.13.1
strongswan
SUSE:Linux Enterprise Desktop 12 SP4
From an advisory covering 5 CVEs
before 5.1.3-26.13.1
5.1.3-26.13.1
strongswan
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
From an advisory covering 5 CVEs
before 5.1.3-26.13.1
5.1.3-26.13.1
strongswan
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
From an advisory covering 5 CVEs
before 5.1.3-26.13.1
5.1.3-26.13.1
strongswan
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
From an advisory covering 5 CVEs
before 5.1.3-26.13.1
5.1.3-26.13.1
strongswan
SUSE:Linux Enterprise Server 12 SP1-LTSS
From an advisory covering 5 CVEs
before 5.1.3-26.13.1
5.1.3-26.13.1
strongswan
SUSE:Linux Enterprise Server 12 SP2-LTSS
From an advisory covering 5 CVEs
before 5.1.3-26.13.1
5.1.3-26.13.1
strongswan
SUSE:Linux Enterprise Server 12 SP2-BCL
From an advisory covering 5 CVEs
before 5.1.3-26.13.1
5.1.3-26.13.1
strongswan
SUSE:Linux Enterprise Server 12 SP3-LTSS
From an advisory covering 5 CVEs
before 5.1.3-26.13.1
5.1.3-26.13.1
strongswan
SUSE:Linux Enterprise Server 12 SP3-BCL
From an advisory covering 5 CVEs
before 5.1.3-26.13.1
5.1.3-26.13.1
strongswan
SUSE:Linux Enterprise Server 12 SP4
From an advisory covering 5 CVEs
before 5.1.3-26.13.1
5.1.3-26.13.1
strongswan
SUSE:Linux Enterprise Server for SAP Applications 12 SP4
From an advisory covering 5 CVEs
before 5.1.3-26.13.1
5.1.3-26.13.1
strongswan
SUSE:Linux Enterprise Server 12 SP5
From an advisory covering 5 CVEs
before 5.1.3-26.13.1
5.1.3-26.13.1
strongswan
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
From an advisory covering 5 CVEs
before 5.1.3-26.13.1
5.1.3-26.13.1
strongswan
SUSE:Enterprise Storage 5
From an advisory covering 5 CVEs
before 5.1.3-26.13.1
5.1.3-26.13.1
strongswan
SUSE:Linux Enterprise Point of Sale 11 SP3
From an advisory covering 4 CVEs
before 4.4.0-6.36.12.1
4.4.0-6.36.12.1
strongswan
SUSE:Linux Enterprise Server 11 SP4-LTSS
From an advisory covering 4 CVEs
before 4.4.0-6.36.12.1
4.4.0-6.36.12.1
strongswan
Ubuntu:14.04:LTS
before 5.1.2-0ubuntu2.10, plus listed versions
4.6.4-95.1.0-25.1.0-35.1.1-0ubuntu15.1.1-0ubuntu2
Show 20 moreShow less
5.1.1-0ubuntu35.1.1-0ubuntu45.1.1-0ubuntu55.1.1-0ubuntu75.1.1-0ubuntu145.1.1-0ubuntu175.1.2~dr3+git20130120-0ubuntu25.1.2~dr3+git20130120-0ubuntu35.1.2~rc1-0ubuntu35.1.2~rc1-0ubuntu45.1.2~rc2-0ubuntu25.1.2-0ubuntu15.1.2-0ubuntu25.1.2-0ubuntu2.25.1.2-0ubuntu2.35.1.2-0ubuntu2.45.1.2-0ubuntu2.55.1.2-0ubuntu2.65.1.2-0ubuntu2.75.1.2-0ubuntu2.8
5.1.2-0ubuntu2.10
strongswan
Ubuntu:16.04:LTS
before 5.3.5-1ubuntu3.7, plus listed versions
5.1.2-0ubuntu65.1.2-0ubuntu75.1.2-0ubuntu85.3.5-1ubuntu15.3.5-1ubuntu2
Show 6 moreShow less
5.3.5-1ubuntu35.3.5-1ubuntu3.15.3.5-1ubuntu3.25.3.5-1ubuntu3.35.3.5-1ubuntu3.45.3.5-1ubuntu3.5
5.3.5-1ubuntu3.7
strongswan
Ubuntu:18.04:LTS
before 5.6.2-1ubuntu2.2, plus listed versions
5.5.1-4ubuntu25.5.1-4ubuntu35.6.1-2ubuntu15.6.1-2ubuntu25.6.1-2ubuntu35.6.1-2ubuntu45.6.2-1ubuntu2
5.6.2-1ubuntu2.2
strongswan
Ubuntu:14.04:LTS
From an advisory covering 4 CVEs
before 5.1.2-0ubuntu2.10, plus listed versions
4.6.4-95.1.0-25.1.0-35.1.1-0ubuntu15.1.1-0ubuntu2
Show 20 moreShow less
5.1.1-0ubuntu35.1.1-0ubuntu45.1.1-0ubuntu55.1.1-0ubuntu75.1.1-0ubuntu145.1.1-0ubuntu175.1.2~dr3+git20130120-0ubuntu25.1.2~dr3+git20130120-0ubuntu35.1.2~rc1-0ubuntu35.1.2~rc1-0ubuntu45.1.2~rc2-0ubuntu25.1.2-0ubuntu15.1.2-0ubuntu25.1.2-0ubuntu2.25.1.2-0ubuntu2.35.1.2-0ubuntu2.45.1.2-0ubuntu2.55.1.2-0ubuntu2.65.1.2-0ubuntu2.75.1.2-0ubuntu2.8
5.1.2-0ubuntu2.10
strongswan
Ubuntu:16.04:LTS
From an advisory covering 4 CVEs
before 5.3.5-1ubuntu3.7, plus listed versions
5.1.2-0ubuntu65.1.2-0ubuntu75.1.2-0ubuntu85.3.5-1ubuntu15.3.5-1ubuntu2
Show 6 moreShow less
5.3.5-1ubuntu35.3.5-1ubuntu3.15.3.5-1ubuntu3.25.3.5-1ubuntu3.35.3.5-1ubuntu3.45.3.5-1ubuntu3.5
5.3.5-1ubuntu3.7
strongswan
Ubuntu:18.04:LTS
From an advisory covering 4 CVEs
before 5.6.2-1ubuntu2.2, plus listed versions
5.5.1-4ubuntu25.5.1-4ubuntu35.6.1-2ubuntu15.6.1-2ubuntu25.6.1-2ubuntu35.6.1-2ubuntu45.6.2-1ubuntu2
5.6.2-1ubuntu2.2
strongswan
openSUSE:Leap 15.0
From an advisory covering 5 CVEs
before 5.6.0-lp150.3.3.1
5.6.0-lp150.3.3.1
strongswan
openSUSE:Leap 15.1
From an advisory covering 5 CVEs
before 5.6.0-lp151.4.3.1
5.6.0-lp151.4.3.1

History

History
RecordedChangedSources
affected, facts
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2018-16152 is a high vulnerability (CVSS 7.5) in Strongswan, published September 24, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.89%, the 79th percentile. Fixed in strongswan 5.7.0-r0.

References

Show 31 moreShow less
MoveEnter Open