Skip to main content

OpenVPN EUVDEUVD-2026-51239

| CVE-2026-12996 MEDIUM
Out-of-bounds Read (CWE-125)
6.0
CVSS 4.0 · Vendor
View

Attack ChainAIDerived

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

  1. Access
    Obtain valid OpenVPN client credentials
  2. Delivery
    Establish authenticated TLS control channel session
  3. Exploit
    Transmit crafted control channel acknowledgment packets
  4. Execution
    Interleave authentication packets at precise timing
  5. Persist
    Race condition hits freed buffer in `ack_write_buf()`
  6. Impact
    Server process crashes (DoS) or leaks freed heap memory

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

Requires a valid, authenticated OpenVPN client connection - the attacker must possess credentials (certificate or username/password) accepted by the target server (PR:L). Exploitation is further gated by a precise timing requirement: the control channel and authentication packets must interleave in a specific order within a narrow race window in ack_write_buf() (AC:H, AT:P), making reliable triggering non-trivial without tooling tailored to the server's response latency. No special server-side configuration option needs to be enabled - the affected code path is exercised during normal authenticated session establishment. Exploitation is limited by: the mandatory authentication prerequisite (unauthenticated attackers are entirely excluded), the race-condition timing dependency (reduces reliability and detectability of attempts), and the absence of any known public exploit at time of analysis.

Impact

The CVSS 4.0 score of 6.0 (Medium) reflects the realistic exploitation barrier: AV:N confirms network reachability, but AC:H and AT:P indicate a timing-dependent race condition against a specific target state, and PR:L requires prior authentication. The combination means an attacker must hold valid VPN credentials and deliver packets with sub-millisecond precision to reliably trigger the bug. The primary real-world impact is server availability (VA:H) - a crash evicts all connected VPN clients, which may be severe in environments using OpenVPN as a sole network ingress path. The confidentiality exposure (VC:L) from freed-memory reads is secondary and unlikely to yield useful secrets in practice. No EPSS data was provided, no KEV listing exists, and no POC is known, all of which are consistent with a freshly disclosed, patch-day vulnerability. This is a genuine patching priority for internet-exposed OpenVPN servers but not an emergency for air-gapped or tightly access-controlled deployments, given the PR:L gate.

Exploit ScenarioDerived

An adversary who has obtained valid OpenVPN client credentials - through phishing, credential stuffing, or insider access - establishes a session and transmits a crafted interleaving of control channel acknowledgment packets and authentication packets timed to hit ack_write_buf() while it holds a reference to a buffer that a concurrent authentication handler has already freed. The most likely outcome is an OpenVPN server process crash, dropping all active VPN sessions and blocking new ones until the daemon restarts. A more sophisticated exploitation attempt could attempt to read freed heap contents for credential or key material disclosure, though reliable information leakage would require additional exploit primitives beyond what the race alone provides.

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

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

Alert me

AnalysisAIv1 – Jul 30, 2026

Use-after-free in OpenVPN's ack_write_buf() function allows an authenticated network client to crash the VPN server or potentially read freed heap memory by delivering a precisely-timed sequence of control channel and authentication packets. Affected releases span the 2.6.x and 2.7.x branches, with fixes shipping in v2.6.21 and v2.7.5 on July 1, 2026. No public exploit code or CISA KEV listing has been identified at time of analysis, and the AC:H/PR:L requirements materially limit realistic exploitation.

RemediationAI

Upgrade to OpenVPN v2.7.5 (2.7.x users) or v2.6.21 (2.6.x users), both released July 1, 2026 and available at https://github.com/OpenVPN/openvpn/releases/tag/v2.7.5 and documented at https://community.openvpn.net/Security%20Announcements/CVE-2026-12996. Ubuntu system administrators should apply USN-8540-1 via standard package management. If immediate patching is operationally blocked, the most effective compensating control is to restrict which authenticated identities can reach the OpenVPN control channel - for example, enforcing strict certificate pinning and revoking certificates for any untrusted or external clients, reducing the population of principals capable of triggering the race. Rate-limiting or connection throttling at the network edge will not prevent exploitation since the timing window is within a single session, not across many connections. No configuration knob disables ack_write_buf() independently. These workarounds are partial mitigations only; patching remains the definitive fix.

Affected VersionsENISA

OpenVPN 2.6.0 ≤2.6.20
OpenVPN 2.7_alpha1 ≤2.7.4

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's control channel handles key exchange, session negotiation, and acknowledgment buffering between peers. The vulnerability resides in ack_write_buf(), the function responsible for queuing acknowledgment packets within the control channel. A use-after-free (CWE-416 per description - though the NVD-assigned CWE is CWE-125, Out-of-bounds Read, likely reflecting the memory-read aspect of freed heap access) occurs when a race condition between the arrival of control channel packets and authentication packets causes ack_write_buf() to operate on already-freed memory. This freed-memory access can produce reads of stale heap content (explaining VC:L in the CVSS 4.0 vector) and, more reliably, corrupts process state leading to a server crash (VA:H). The bug was independently discovered by three researchers - 章鱼哥, Haiyang Huang, and Haruki Oyama - a convergence that suggests the code path is reachable via standard client behavior rather than requiring obscure protocol manipulation.

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.0 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 5.9 MEDIUM

Network-reachable authenticated race condition (PR:L, AC:H); server crash is primary impact (A:H) with minor freed-memory read exposure (C:L); no integrity or scope change.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:H
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 5.9 MEDIUM
AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:H
Red Hat 5.9 MEDIUM

Primary rating from Vendor (CNA).

CVSS VectorVendor

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

Lifecycle Timeline

3
CVSS changed
Jul 30, 2026 - 17:22 NVD
6.0 (MEDIUM)
CVE Published
Jul 02, 2026 - 10:57 github-releases
UNKNOWN (no severity yet)
CVE Published
Jul 02, 2026 - 10:57 github-releases
MEDIUM 6.0

Description PRE-NVD

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

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
High
widely deployed VPN daemon across enterprise, cloud, and ISP environments
Data Quality
6 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.4%
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
High

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 12 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

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