Skip to main content

OpenVPN CVE-2026-40215

| EUVDEUVD-2026-35200 MEDIUM
Out-of-bounds Read (CWE-125)
2026-04-22
6.1
CVSS 4.0 · Vendor
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as valid VPN client
  2. Delivery
    Initiate or time TLS renegotiation
  3. Exploit
    Win race condition timing window
  4. Execution
    Trigger out-of-bounds read (CWE-125) in handshake state
  5. Impact
    Receive leaked packet data from prior handshake session

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the attacker be an authenticated OpenVPN client holding a valid certificate or credential accepted by the target server - confirmed by the CVSS 4.0 PR:L (Low Privileges Required) rating. The race condition is triggered during TLS handshake processing, specifically when renegotiation or concurrent handshake activity occurs; the attacker must win a narrow timing window to cause the out-of-bounds read. The AC:H (High Attack Complexity) rating confirms that exploitation is not reliably repeatable on demand and requires precise timing. Unauthenticated external actors cannot trigger this vulnerability. There is no indication in the available data that a specific non-default configuration (such as tls-crypt-v2 or a particular cipher suite) is required - the race condition appears to be in the core TLS handshake path. The scope of information leakage is limited to packet data from a prior handshake session, not arbitrary memory, though the exact bounds of what can be leaked are not quantified in the available disclosure.

Impact

The CVSS 4.0 score of 6.1 with vector AV:N/AC:H/PR:L/UI:N/VC:H/VI:N/VA:H/SC:L/SI:N/SA:L captures a genuine tension between serious impact and constrained exploitability. The VC:H (High Confidentiality) rating on the vulnerable component is significant in context: leaked VPN handshake packet data in a security-sensitive VPN deployment can expose private network traffic, credentials negotiated over the tunnel, or session keying material depending on timing. The VA:H (High Availability) rating suggests the race condition can also destabilize the handshake process itself, potentially forcing connection resets or service disruption. Critically, AC:H (High Complexity) is a genuine risk-reduction signal here - the attacker must reliably win a race window during TLS negotiation, which is timing-dependent and not trivially automated. PR:L (Low Privileges) further constrains the attack surface to authenticated VPN clients, excluding unauthenticated external actors entirely. No EPSS score was provided in the source data; KEV status is absent, meaning confirmed active exploitation has not been documented by CISA. No public exploit code has been identified at time of analysis. Overall risk is moderate: the impact ceiling is high but the exploitation barrier is meaningful. VPN servers exposed to untrusted authenticated clients (e.g., road-warrior deployments with broad certificate issuance) represent the highest realistic exposure.

Exploit ScenarioDerived

An authenticated OpenVPN client with a valid certificate establishes a VPN session and forces or times a TLS renegotiation to coincide precisely with another handshake completing on the server, winning the race condition window. When successful, the server reads packet data out-of-bounds from the prior handshake's memory context and transmits it to the attacker's session, potentially revealing fragments of prior session traffic or handshake metadata. No public proof-of-concept code has been identified at time of analysis; the AC:H CVSS rating reflects that reliably triggering this race requires non-trivial timing precision, making opportunistic or automated mass exploitation unlikely.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 08, 2026

OpenVPN's TLS handshake race condition exposes confidential packet data from prior handshake sessions to authenticated remote attackers, affecting versions before 2.6.20 in the 2.6.x branch and before 2.7.2 in the 2.7.x branch. The CWE-125 out-of-bounds read flaw scores 6.1 under CVSS 4.0 with High confidentiality and availability impacts, though the AC:H (High Complexity) rating reflects that successful exploitation requires winning a narrow timing window, limiting opportunistic mass exploitation. No public exploit code has been identified at time of analysis and this CVE is not listed in CISA KEV; vendor-released patches for both stable branches were published April 22, 2026.

RemediationAI

Upgrade to OpenVPN 2.6.20 or OpenVPN 2.7.2, both released April 22, 2026, which contain the direct fix for this race condition. Binaries and source are available at https://github.com/OpenVPN/openvpn/releases/tag/v2.6.20 and via the OpenVPN Community Downloads page for Windows MSI installers. Linux package users should follow their distribution's advisory; Ubuntu users should apply the update referenced in USN-8286-1 (https://ubuntu.com/security/notices/USN-8286-1) and consult community Linux package repos per the OpenVPN wiki. If immediate patching is not feasible, restrict which clients are permitted to initiate TLS renegotiation by reviewing server-side renegotiation configuration (--renegotiate-seconds and --reneg-bytes options), though disabling renegotiation entirely may impact long-lived sessions and has the trade-off of keeping TLS sessions alive with older key material. Additionally, narrowing the authenticated client pool - by auditing certificate issuance and revoking certificates for untrusted clients - reduces the PR:L attack surface, since only authenticated peers can trigger the race. These compensating controls do not eliminate the vulnerability and patching remains the only confirmed remediation.

Affected VersionsENISA

OpenVPN 2.6.0 ≤2.6.19
OpenVPN 2.7_alpha1 ≤2.7.1

Affected Packages

euvd openvpn no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenVPN is a widely-deployed open-source VPN solution that uses TLS for its control channel, managing session establishment and renegotiation through a TLS state machine. The root cause class is CWE-125 (Out-of-bounds Read): a race condition in the handshake logic creates a time-of-check-to-time-of-use window where shared handshake state can be accessed without adequate synchronization. When the race is won, memory belonging to a previous handshake context is read out-of-bounds and can be included in packet data transmitted to the current session, constituting an information disclosure. The 'Buffer Overflow' tag in the source data appears to be a tagging imprecision - CWE-125 is a read-side flaw, not a write overflow. The CVSS 4.0 vector (AV:N/AC:H/AT:N/PR:L/UI:N) confirms network reachability with high complexity and low-privilege authentication required, consistent with a race condition exploitable only by an established, authenticated VPN peer. This vulnerability is distinct from CVE-2026-35058, a server ASSERT crash via malformed tls-crypt-v2 packets that was fixed in the same v2.6.20 and v2.7.2 releases.

Know when Openvpn gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CNA) PRIMARY 6.1 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:N/VA:H/SC:L/SI:N/SA:L
SUSE 6.8 MEDIUM
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H
Red Hat 6.5 MEDIUM

Primary rating from Vendor (CNA).

CVSS VectorVendor

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
None
Subsequent system: Availability
Low

Lifecycle Timeline

3
CVSS changed
Jun 08, 2026 - 21:22 NVD
6.1 (MEDIUM)
Patch released
Apr 24, 2026 - 12:21 nvd
Patch available
CVE Published
Apr 22, 2026 - 19:46 nvd
N/A

Description PRE-NVD

Disclosed via GitHub release of openvpn/openvpn. NVD scoring and full description are pending.

Threat Intelligence Overview

EPSS Score
0.1%
Top 66% exploitable
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2018-7544 CRITICAL POC
9.1 Mar 16

A cross-protocol scripting issue was discovered in the management interface in OpenVPN through 2.4.5. Rated critical sev

CVE-2017-7478 HIGH POC
7.5 May 15

OpenVPN version 2.3.12 and newer is vulnerable to unauthenticated Denial of Service of server via received large control

CVE-2020-9442 HIGH POC
7.8 Feb 28

OpenVPN Connect 3.1.0.361 on Windows has Insecure Permissions for %PROGRAMDATA%\OpenVPN Connect\drivers\tap\amd64\win10,

CVE-2018-9336 HIGH POC
7.8 May 01

openvpnserv.exe (aka the interactive service helper) in OpenVPN 2.4.x before 2.4.6 allows a local attacker to cause a do

CVE-2017-5868 MEDIUM POC
6.1 May 26

CRLF injection vulnerability in the web interface in OpenVPN Access Server 2.1.4 allows remote attackers to inject arbit

CVE-2024-27903 CRITICAL
9.8 Jul 08

OpenVPN plug-ins on Windows with OpenVPN 2.6.9 and earlier could be loaded from any directory, which allows an attacker

CVE-2014-9104 MEDIUM POC
6.8 Nov 26

Multiple cross-site request forgery (CSRF) vulnerabilities in the XML-RPC API in the Desktop Client in OpenVPN Access Se

CVE-2023-46850 CRITICAL
9.8 Nov 11

Use after free in OpenVPN version 2.6.0 to 2.6.6 may lead to undefined behavoir, leaking memory buffers or remote execut

CVE-2019-25429 MEDIUM POC
6.1 Feb 19

Comodo Dome Firewall 2.7.0 contains a reflected cross-site scripting vulnerability that allows attackers to inject malic

CVE-2019-25428 MEDIUM POC
6.1 Feb 19

Comodo Dome Firewall 2.7.0 contains multiple reflected cross-site scripting vulnerabilities in the openvpn_users endpoin

CVE-2017-12166 CRITICAL
9.8 Oct 04

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

CVE-2024-1305 CRITICAL
9.8 Jul 08

tap-windows6 driver version 9.26 and earlier does not properly check the size data of incomming write operations which a

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Module for Basesystem 15 SP7 Affected
SUSE Linux Enterprise Server 15 SP7 Affected
SUSE Linux Enterprise Server 16.0 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy