CVE-2018-16151
strongswan: authentication bypass in verify_emsa_pkcs1_signature() in gmp_rsa_public_key.c
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness: CWE-347
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 13 fixes
SUSE Linux Enterprise 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | strongswan +4 | 5.1.3-26.13.1 | SUSE-SU-2019:3266-1 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | strongswan | 5.7.0-r0 |
| 3.23 | strongswan | 5.7.0-r0 |
| 3.24 | strongswan | 5.7.0-r0 |
| edge | strongswan | 5.7.0-r0 |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | strongswan | 5.7.0-1 |
| 12 | strongswan | 5.7.0-1 |
| 13 | strongswan | 5.7.0-1 |
| 14 | strongswan | 5.7.0-1 |
| 9 | strongswan | 5.5.1-4+deb9u3 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| strongswan | 5.7.0-1 |
ubuntu 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | strongswan | 5.6.2-1ubuntu2.2 |
| 18.04-ESM | strongswan | 5.6.2-1ubuntu2.2 |
References
- lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00077.html
- lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2019-12/msg00001.html
- lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00047.html
- access.redhat.com https://access.redhat.com/security/cve/CVE-2018-16151
- lists.debian.org https://lists.debian.org/debian-lts-announce/2018/09/msg00032.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2018-16151
- security.gentoo.org https://security.gentoo.org/glsa/201811-16
- ubuntu.com https://ubuntu.com/security/notices/USN-3771-1
- usn.ubuntu.com https://usn.ubuntu.com/3771-1/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2018-16151
Show all 13 references
- www.debian.org https://www.debian.org/security/2018/dsa-4305
- www.strongswan.org https://www.strongswan.org/blog/2018/09/24/strongswan-vulnerability-%28cve-2018-16151%2C-cve-2018-16152%29.html
- www.strongswan.org https://www.strongswan.org/blog/2018/09/24/strongswan-vulnerability-(cve-2018-16151,-cve-2018-16152).html
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.