CVE-2018-16152

strongswan: authentication bypass in verify_emsa_pkcs1_signature() in gmp_rsa_public_key.c

Published Sep 26, 2018 CVSS 3.1 · 7.5 High EPSS 1.9% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-1522-1 strongswan security update
Debian DSA Debian DSA DSA-4305-1 strongswan security update
EUVD EUVD EUVD-2018-8007 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.
Ubuntu USN Ubuntu USN USN-3771-1 strongSwan vulnerabilities
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Dec 3, 2025, 8:24 PM
Reserved
Aug 29, 2018, 12:00 AM
Status
Modified
Published
Sep 26, 2018, 9:29 PM
Modified
Jun 17, 2026, 1:43 AM
Severity
Moderate
Public date
Sep 24, 2018, 12:00 AM