CVE-2018-16152 Other in n/a

High 7.5 Published Updated

Remote attackers can forge RSA signatures in strongSwan due to improper PKCS#1 v1.5 verification, enabling impersonation during IKEv2 authentication.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-16152?

CVE-2018-16152 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 26 Sep 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-347

Which versions are affected by CVE-2018-16152?

It affects 3 products.

Products include Canonical Ubuntu Linux, Debian Debian Linux, Strongswan Strongswan.

How do I fix CVE-2018-16152?

Upgrade to a fixed version.

Is CVE-2018-16152 being exploited?

There is no known exploitation of CVE-2018-16152 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2018-16152, DEBIAN-CVE-2018-16152, GHSA-ff5x-x5ch-2x28, UBUNTU-CVE-2018-16152.

Is CVE-2018-16152 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free