CVE-2018-16152
Reported by mitre · Published September 26, 2018
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| strongswan | Alpine | 5.7.0-r0, 5.6.3-r2, 5.6.3-r1, 5.5.3-r2 |
| strongswan | Arch Linux | 5.7.0-1 |
| strongswan | Ubuntu:18.04:LTS | 5.6.2-1ubuntu2.2 |
| strongswan | strongswan | 5.7.0, 4.6.4 |
| strongswan | Ubuntu:16.04:LTS | 5.3.5-1ubuntu3.7 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| alpine | strongswan | 0, 0, 0 |
| arch | strongswan | 0 |
| n/a | n/a | * |
Timeline
- Sep 24, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Dec 8, 2025 CVE Updated
- Mar 6, 2026 Distribution Patch (2 in total, the first dated here)
- Mar 6, 2026 Security Advisory (9 in total, the first dated here)
- Sep 23, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-16152
vulnetix vdb fixes CVE-2018-16152
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-16152/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- DSA-4305 vendor-advisoryx_refsource_DEBIAN
- GLSA-201811-16 vendor-advisoryx_refsource_GENTOO
- x_refsource_CONFIRM
- [debian-lts-announce] 20180926 [SECURITY] [DLA 1522-1] strongswan security update mailing-listx_refsource_MLIST
- USN-3771-1 vendor-advisoryx_refsource_UBUNTU
- openSUSE-SU-2019:2594 vendor-advisoryx_refsource_SUSE
- openSUSE-SU-2019:2598 vendor-advisoryx_refsource_SUSE
- openSUSE-SU-2020:0403 vendor-advisoryx_refsource_SUSE