CVE-2018-16151 Security feature bypass 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-16151?

CVE-2018-16151 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 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.

Weakness: CWE-347

Which versions are affected by CVE-2018-16151?

It affects 3 products.

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

How do I fix CVE-2018-16151?

Upgrade to a fixed version.

Is CVE-2018-16151 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2018-16151, DEBIAN-CVE-2018-16151, GHSA-6w9w-qmvw-3v7q, UBUNTU-CVE-2018-16151.

Is CVE-2018-16151 in your software?

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

Check your SBOMs for free