Skip to content

openvpn

v2.6.21 Security

This release includes 6 security fixes for security teams reviewing exposed deployments.

Published 24d VPN & Tunnels
✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →
This release patches 6 known CVEs

Topics

security vpn

Affected surfaces

auth rce_ssrf crypto_tls

Summary

AI summary

Updates Security fixes, Bugfixes, and www.aipyaipy.com across a mixed release.

Full changelog

Security fixes:

  • Fix use-after-free bug in ack_write_buf(), triggerable by a well-timed
    sequence of control channel + authentication packets (CVE-2026-12996)

    Bug found by multiple researchers:

    • 章鱼哥 (www.aipyaipy.com)
    • Haiyang Huang
    • Haruki Oyama (Waseda University)
  • Fix use-after-free bug in tls_wrap_reneg(), triggerable by suitable
    sequence of dynamic tls-crypt control-channel packets (CVE-2026-13117)

    Bug found by multiple researchers:

    • Trace37 Labs (github.com/trace37labs)
    • Haiyang Huang
  • Fix server crash on reception of suitably malformed auth-token, if
    --auth-gen-token external-auth is active (CVE-2026-13122)

    Bug found by Haiyang Huang.

  • Fix memory-leak in tls-crypt-v2 client key handling that could lead
    to out-of-memory situations and subsequent server crashes (CVE-2026-12932)

    Bug found by Valton Tahiri.

  • Fix possible 1-byte buffer overrun on NTLMv2 proxy responses.
    (CVE-2026-11771)

    Bug found by Tristan Madani (@TristanInSec).

  • Fix another memory leak on reception of suitable tls-crypt-v2 packets
    that could lead to an out of memory situation and server crash
    (CVE-2026-13698)

    Bug found by Max Fillinger. Overlaps with a report
    from Valton Tahiri that we believe to
    be fixed by this bugfix as well.

Bugfixes:

  • Windows: fix plugin trusted-dir check prefix bypass
    (this fixes a bug in the path checking logic we do on Windows for
    "is loading a plugin from this path allowed?", but since we could
    not find a way to exploit this unless starting with admin privs or
    a social engineering attack, not classified as a security fix)

  • options: fix use-after-free of DNS options on client connect
    (using suitable --dns or --dhcp-option DNS options in a server
    config - not pushed, but applying to the server itself - triggers a
    double free() and use-after-free condition, possibly crashing the
    server) (Github: OpenVPN/openvpn#1060)

  • Null-terminate tls-crypt client keys when testing - non-exploitable
    strlen() on a buffer that is not null-terminated

  • Ensure pushed tun-mtu is no lower than TUN_MTU_MIN - this fixes a bug
    where a server can push a suitable combination of options and make the
    client ASSERT().

    (Reported as security issue by Haiyang Huang,
    but it was decided that the server always has means to make the client
    "not function properly", and it can not be exploited beyond that)

For details see Changes.rst

Windows Client: Community MSI installer for Windows client can be found at Community Downloads.

Linux Packages: Instructions for installing community-maintained Linux packages can be found in the Community Wiki.

Full Changelog: https://github.com/OpenVPN/openvpn/compare/v2.6.20...v2.6.21

Security Fixes

  • CVE-2026-12996 – Fix use-after-free in ack_write_buf() triggered by control channel + authentication packets
  • CVE-2026-13117 – Fix use-after-free in tls_wrap_reneg() triggered by dynamic tls-crypt packets
  • CVE-2026-13122 – Fix server crash on malformed auth-token when `--auth-gen-token external-auth` is active
  • CVE-2026-12932 – Fix memory-leak in tls-crypt-v2 client key handling that could cause OOM and crashes
  • CVE-2026-11771 – Fix 1‑byte buffer overrun on NTLMv2 proxy responses
  • CVE-2026-13698 – Fix additional memory leak on tls-crypt-v2 packet reception

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track openvpn

Get notified when new releases ship.

Sign up free

About openvpn

OpenVPN is an open source VPN daemon

All releases →

Related context

Beta — feedback welcome: [email protected]