cbcvebase.
CVE-2018-16151
published 2018-09-26

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 based on GMP does not…

PriorityP343high7.5CVSS 3.1
AVNACLPRNUINSUCNIHAN
EPSS
1.89%
77.2th percentile
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.

Affected

15 ranges
VendorProductVersion rangeFixed in
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
debiandebian_linux
debiandebian_linux
debianstrongswan< strongswan 5.7.0-1 (bookworm)strongswan 5.7.0-1 (bookworm)
strongswanstrongswan>= 0 < 5.7.0-15.7.0-1
strongswanstrongswan>= 0 < 5.7.0-15.7.0-1
strongswanstrongswan>= 0 < 5.7.0-15.7.0-1
strongswanstrongswan>= 0 < 5.7.0-15.7.0-1
strongswanstrongswan>= 0 < 5.1.2-0ubuntu2.105.1.2-0ubuntu2.10
strongswanstrongswan>= 0 < 5.3.5-1ubuntu3.75.3.5-1ubuntu3.7
strongswanstrongswan>= 0 < 5.6.2-1ubuntu2.25.6.2-1ubuntu2.2
strongswanstrongswan4.0.0 – 4.6.4
strongswanstrongswan>= 5.0.0 < 5.7.05.7.0

CVSS provenance

nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:P/A:N
osv7.5HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.