Exponent strongSwan up to up to 4.x/5.6. IKEv2 Authentication gmp_rsa_public_key.c verify_emsa_pkcs1_signature digestAlgorithmparameters signature verification

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.4$0-$5k0.00

A vulnerability was found in Exponent strongSwan up to up to 4.x/5.6. (Network Encryption Software). It has been classified as critical. This affects the function verify_emsa_pkcs1_signature of the file gmp_rsa_public_key.c of the component IKEv2 Authentication. The manipulation of the argument digestAlgorithmparameters as part of a RSA Signature leads to a signature verification vulnerability. CWE is classifying the issue as CWE-347. The product does not verify, or incorrectly verifies, the cryptographic signature for data. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:

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.

The bug was discovered 09/24/2018. The weakness was published 09/26/2018 by Kevin Backhouse (Website). The advisory is shared at strongswan.org. This vulnerability is uniquely identified as CVE-2018-16152 since 08/29/2018. The exploitability is told to be difficult. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. Technical details are known, but no exploit is available.

The vulnerability was handled as a non-public zero-day exploit for at least 2 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 117715 (Debian DLA-1522-1 : strongswan security update), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 277550 (Fedora Security Update for strongswan (FEDORA-2018-9caa6528d2)).

Upgrading to version bis 4.x or 5.6.x eliminates this vulnerability. A possible mitigation has been published 2 hours after the disclosure of the vulnerability.

The vulnerability is also documented in the vulnerability database at Tenable (117715). Similar entries are available at 118481, 119689 and 124484.

Productinfo

Type

Vendor

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB CVSS-B Score: 🔍
VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.5
VulDB Meta Temp Score: 6.4

VulDB Base Score: 5.6
VulDB Temp Score: 5.4
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 7.5
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
unlockunlockunlockunlockunlockunlock
unlockunlockunlockunlockunlockunlock
unlockunlockunlockunlockunlockunlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Signature verification
CWE: CWE-347 / CWE-345
ATT&CK: Unknown

Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-Dayunlockunlockunlockunlock
Todayunlockunlockunlockunlock

Nessus ID: 117715
Nessus Name: Debian DLA-1522-1 : strongswan security update
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Upgrade: strongSwan bis 4.x/5.6.x

Timelineinfo

05/23/2018 🔍
08/29/2018 +97 days 🔍
09/24/2018 +26 days 🔍
09/26/2018 +1 days 🔍
09/26/2018 +0 days 🔍
09/26/2018 +0 days 🔍
09/27/2018 +1 days 🔍
09/27/2018 +0 days 🔍
05/19/2023 +1695 days 🔍

Sourcesinfo

Advisory: USN-3771-1
Researcher: Kevin Backhouse
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2018-16152 (🔍)
OVAL: 🔍

SecurityFocus: 104263 - strongSwan CVE-2018-5388 Buffer Underflow Vulnerability

See also: 🔍

Entryinfo

Created: 09/27/2018 09:02
Updated: 05/19/2023 08:52
Changes: 09/27/2018 09:02 (80), 03/27/2020 09:38 (6), 05/19/2023 08:52 (4)
Complete: 🔍

Discussion

No comments yet. Languages: en.

Please log in to comment.

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!