OpenVPN up to 2.3.17/2.4.3 Key Method 1 read_key memory corruption

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.7$0-$5k0.00

Summaryinfo

A vulnerability, which was classified as critical, has been found in OpenVPN up to 2.3.17/2.4.3. The affected element is the function read_key of the component Key Method 1. This manipulation causes memory corruption. This vulnerability is handled as CVE-2017-12166. The attack can be initiated remotely. There is not any exploit available. It is advisable to upgrade the affected component.

Detailsinfo

A vulnerability has been found in OpenVPN up to 2.3.17/2.4.3 (Network Encryption Software) and classified as critical. Affected by this vulnerability is the function read_key of the component Key Method 1. The manipulation with an unknown input leads to a memory corruption vulnerability. The CWE definition for the vulnerability is CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:

OpenVPN versions before 2.3.3 and 2.4.x before 2.4.4 are vulnerable to a buffer overflow vulnerability when key-method 1 is used, possibly resulting in code execution.

The bug was discovered 09/29/2017. The weakness was released 09/21/2017 by Guido Vranken (Website). It is possible to read the advisory at community.openvpn.net. This vulnerability is known as CVE-2017-12166 since 08/01/2017. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details of the vulnerability are known, but there is no available exploit. Responsible for the vulnerability is the following code:

if (!buf_read(buf, key->cipher, cipher_length))
{
    goto read_err;
}
if (!buf_read(buf, key->hmac, hmac_length))
{
    goto read_err;
}

The vulnerability scanner Nessus provides a plugin with the ID 103611 (Fedora 26 : openvpn (2017-700915e34f)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Fedora Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 170431 (SUSE Enterprise Linux Security Update for openvpn (SUSE-SU-2017:2838-1)).

Upgrading to version 2.3.18 or 2.4.4 eliminates this vulnerability. A possible mitigation has been published 2 weeks after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Tenable (103611), SecurityFocus (BID 101153†) and SecurityTracker (ID 1039470†). Be aware that VulDB is the high quality source for vulnerability data.

Productinfo

Type

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.8
VulDB Meta Temp Score: 6.7

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

NVD Base Score: 8.1
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

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

NVD Base Score: 🔍

Exploitinginfo

Class: Memory corruption
CWE: CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 103611
Nessus Name: Fedora 26 : openvpn (2017-700915e34f)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 867773
OpenVAS Name: Fedora Update for openvpn FEDORA-2017-700915e34f
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

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

Upgrade: OpenVPN 2.3.18/2.4.4

Timelineinfo

08/01/2017 🔍
09/21/2017 +51 days 🔍
09/28/2017 +7 days 🔍
09/29/2017 +1 days 🔍
09/29/2017 +0 days 🔍
09/30/2017 +1 days 🔍
10/02/2017 +2 days 🔍
10/03/2017 +1 days 🔍
10/03/2017 +0 days 🔍
12/30/2022 +1914 days 🔍

Sourcesinfo

Advisory: FEDORA-2017-700915e34f
Researcher: Guido Vranken
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2017-12166 (🔍)
GCVE (CVE): GCVE-0-2017-12166
GCVE (VulDB): GCVE-100-107311
SecurityFocus: 101153 - OpenVPN 'read_key()' Function Stack Buffer Overflow Vulnerability
SecurityTracker: 1039470

Entryinfo

Created: 09/30/2017 12:40
Updated: 12/30/2022 13:36
Changes: 09/30/2017 12:40 (82), 11/21/2019 06:52 (5), 12/30/2022 13:30 (4), 12/30/2022 13:36 (1)
Complete: 🔍
Cache ID: 216::103

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!