# CVE-2018-16152

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2018-09-26 · Modified: 2025-12-03
- Aliases: ALPINE-CVE-2018-16152, UBUNTU-CVE-2018-16152, DEBIAN-CVE-2018-16152
- Record: https://cvemate.com/vulnerability/CVE-2018-16152 · JSON: https://cvemate.com/vulnerability/CVE-2018-16152/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS: 1.888%, percentile 80.252%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine strongswan (Alpine Linux): ≥ 4.0.0, \< 5.7.0-r0 \| ≥ 4.0.0, \< 5.5.3-r2 \| ≥ 4.0.0, \< 5.6.3-r1 \| ≥ 4.0.0, \< 5.6.3-r2 \| ≥ 5.0.0, \< 5.7.0-r0 \| ≥ 5.0.0, \< 5.5.3-r2 \| ≥ 5.0.0, \< 5.6.3-r1 \| ≥ 5.0.0, \< 5.6.3-r2
- canonical ubuntu\_linux: 14.04 \| 16.04 \| 18.04
- debian strongswan (Debian): \< 5.7.0-1
- ubuntu strongswan (Ubuntu): \< 5.1.2-0ubuntu2.10 \| \< 5.3.5-1ubuntu3.7 \| \< 5.6.2-1ubuntu2.2
- debian debian\_linux: 8.0 \| 9.0
- strongswan strongswan: ≥ 4.0.0, ≤ 4.6.4 \| ≥ 5.0.0, \< 5.7.0

## References

- <https://www.debian.org/security/2018/dsa-4305>
- <https://security.gentoo.org/glsa/201811-16>
- <https://www.strongswan.org/blog/2018/09/24/strongswan-vulnerability-%28cve-2018-16151%2C-cve-2018-16152%29.html>
- <https://lists.debian.org/debian-lts-announce/2018/09/msg00032.html>
- <https://usn.ubuntu.com/3771-1/>
- <http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00077.html>
- <http://lists.opensuse.org/opensuse-security-announce/2019-12/msg00001.html>
- <http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00047.html>
- <https://security.alpinelinux.org/vuln/CVE-2018-16152>
- <https://ubuntu.com/security/CVE-2018-16152>
- <https://www.strongswan.org/blog/2018/09/24/strongswan-vulnerability-(cve-2018-16151,-cve-2018-16152).html>
- <https://ubuntu.com/security/notices/USN-3771-1>
- <https://www.cve.org/CVERecord?id=CVE-2018-16152>
- <https://security-tracker.debian.org/tracker/CVE-2018-16152>

---

Data as of 2026-12-05T04:57:56.544Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
