CVE-2018-16152
Description
Insufficient ASN.1 parsing in strongSwan's GMP RSA plugin allows Bleichenbacher-style signature forgery when small public exponents are used.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Insufficient ASN.1 parsing in strongSwan's GMP RSA plugin allows Bleichenbacher-style signature forgery when small public exponents are used.
Vulnerability
A vulnerability exists in the verify_emsa_pkcs1_signature() function in gmp_rsa_public_key.c of the strongSwan GMP plugin (versions 4.x and 5.x before 5.7.0). The implementation does not reject excess data in the digestAlgorithm.parameters field during PKCS#1 v1.5 signature verification. This allows a remote attacker to forge RSA signatures when small public exponents (e.g., e=3) are used. The issue is a variant of CVE-2006-4790 and CVE-2014-1568 [1], [2].
Exploitation
An attacker needs network access to a system that uses the GMP plugin and RSA keys with a low public exponent (e=3). The attacker must also have knowledge of the public key (which is typically public). The attack exploits lenient ASN.1 parsing in the signature verification code, where the implementation does not strictly check that the DER-encoded digestAlgorithm.parameters field is absent when the algorithm identifier does not require parameters. By crafting a malicious signature whose decrypted value does not exactly match the expected PKCS#1 v1.5 format (allowing extra data in the ASN.1 structure), the attacker can produce a valid-looking signature without the private key [1].
Impact
Successful exploitation allows an attacker to forge RSA signatures, potentially leading to impersonation of legitimate peers when RSA signatures are used for IKEv2 authentication. The impact is a breach of authentication integrity, enabling man-in-the-middle attacks or unauthorized access [1].
Mitigation
The vulnerability is fixed in strongSwan version 5.7.0, released on 2018-09-24. Users should upgrade to this version or later. The Gentoo GLSA 201811-16 also recommends updating to version 5.7.1 or later. If upgrading is not possible, using RSA keys with a larger public exponent (e.g., 65537) and/or avoiding the GMP plugin (using the default plugin) reduces exposure. No other workaround is available [2].
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
24- Range: >= 4.0, < 5.7.0
- osv-coords23 versionspkg:rpm/opensuse/strongswan&distro=openSUSE%20Leap%2015.0pkg:rpm/opensuse/strongswan&distro=openSUSE%20Leap%2015.1pkg:rpm/suse/strongswan&distro=SUSE%20Enterprise%20Storage%205pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP4pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP1pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Point%20of%20Sale%2011%20SP3pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4-LTSSpkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1-LTSSpkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-LTSSpkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCLpkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSSpkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP1pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP2pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/strongswan&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/strongswan&distro=SUSE%20OpenStack%20Cloud%207pkg:rpm/suse/strongswan&distro=SUSE%20OpenStack%20Cloud%208
< 5.6.0-lp150.3.3.1+ 22 more
- (no CPE)range: < 5.6.0-lp150.3.3.1
- (no CPE)range: < 5.6.0-lp151.4.3.1
- (no CPE)range: < 5.1.3-26.13.1
- (no CPE)range: < 5.1.3-26.13.1
- (no CPE)range: < 5.6.0-4.3.2
- (no CPE)range: < 5.6.0-4.3.2
- (no CPE)range: < 5.6.0-4.3.2
- (no CPE)range: < 4.4.0-6.36.12.1
- (no CPE)range: < 4.4.0-6.36.12.1
- (no CPE)range: < 5.1.3-26.13.1
- (no CPE)range: < 5.1.3-26.13.1
- (no CPE)range: < 5.1.3-26.13.1
- (no CPE)range: < 5.1.3-26.13.1
- (no CPE)range: < 5.1.3-26.13.1
- (no CPE)range: < 5.1.3-26.13.1
- (no CPE)range: < 5.1.3-26.13.1
- (no CPE)range: < 5.1.3-26.13.1
- (no CPE)range: < 5.1.3-26.13.1
- (no CPE)range: < 5.1.3-26.13.1
- (no CPE)range: < 5.1.3-26.13.1
- (no CPE)range: < 5.1.3-26.13.1
- (no CPE)range: < 5.1.3-26.13.1
- (no CPE)range: < 5.1.3-26.13.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
8- lists.opensuse.org/opensuse-security-announce/2019-11/msg00077.htmlmitrevendor-advisoryx_refsource_SUSE
- lists.opensuse.org/opensuse-security-announce/2019-12/msg00001.htmlmitrevendor-advisoryx_refsource_SUSE
- lists.opensuse.org/opensuse-security-announce/2020-03/msg00047.htmlmitrevendor-advisoryx_refsource_SUSE
- security.gentoo.org/glsa/201811-16mitrevendor-advisoryx_refsource_GENTOO
- usn.ubuntu.com/3771-1/mitrevendor-advisoryx_refsource_UBUNTU
- www.debian.org/security/2018/dsa-4305mitrevendor-advisoryx_refsource_DEBIAN
- lists.debian.org/debian-lts-announce/2018/09/msg00032.htmlmitremailing-listx_refsource_MLIST
- www.strongswan.org/blog/2018/09/24/strongswan-vulnerability-%28cve-2018-16151%2C-cve-2018-16152%29.htmlmitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.