CVE-2018-16151
- State
- Published
- Severity
- 7.5 High
- Published
- Sep 26, 2018
- Updated
- Dec 3, 2025
- Reserved
- Aug 29, 2018
Description
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 7.5 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N | CISA-ADP |
Weaknesses
- CWE-347 Improper Verification of Cryptographic Signature
Affected Products
| Product | Versions |
|---|---|
n/an/a |
|
References
- DSA-4305vendor-advisory
- GLSA-201811-16vendor-advisory
- https://www.strongswan.org/blog/2018/09/24/strongswan-vulnerability-%28cve-2018-16151%2C-cve-2018-16152%29.html
- [debian-lts-announce] 20180926 [SECURITY] [DLA 1522-1] strongswan security updatemailing-list
- USN-3771-1vendor-advisory
- openSUSE-SU-2019:2594vendor-advisory
- openSUSE-SU-2019:2598vendor-advisory
- openSUSE-SU-2020:0403vendor-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.