CVE-2018-16151
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 b…
Published 8 y ago · modified 4 mo ago · JSON
Summary
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.
CISA SSVC assessment
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 11 mo ago
Exploit prediction (EPSS)
1.89% probability of exploitation in the next 30 days, higher than 80% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Classification
- Weakness
- CWE-347 Improper Verification of Cryptographic Signature
References
- debian.org /security/2018/dsa-4305 · vendor-advisory, x_refsource_DEBIAN, x_transferred
- security.gentoo.org /glsa/201811-16 · vendor-advisory, x_refsource_GENTOO, x_transferred
- strongswan.org /blog/2018/09/24/strongswan-vulnerability-%28cve-2018-16151%2C-cve-2018-16152%29.html · x_refsource_CONFIRM, x_transferred
- lists.debian.org /debian-lts-announce/2018/09/msg00032.html · mailing-list, x_refsource_MLIST, x_transferred
- usn.ubuntu.com /3771-1/ · vendor-advisory, x_refsource_UBUNTU, x_transferred
- lists.opensuse.org /opensuse-security-announce/2019-11/msg00077.html · vendor-advisory, x_refsource_SUSE, x_transferred
- lists.opensuse.org /opensuse-security-announce/2019-12/msg00001.html · vendor-advisory, x_refsource_SUSE, x_transferred
- lists.opensuse.org /opensuse-security-announce/2020-03/msg00047.html · vendor-advisory, x_refsource_SUSE, x_transferred
Sources
- CVE List: CVE-2018-16151
- NVD: CVE-2018-16151
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.