CVE-2026-142125: OpenVPN DNS Script Helper Local Privilege Escalation
OpenVPN 2.7 alpha1 through 2.7.9 contains a local privilege-escalation vulnerability in the --dns-updown script execution mechanism on POSIX systems. When the main process drops privileges through --user, a separate root-privileged helper remains available to execute DNS configuration scripts. The main process passes DNS variables through a temporary file that the helper sources without validating its path or ownership. An attacker already executing code as the configured unprivileged account can exploit control over this file to execute code as root.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation elevates an attacker from the OpenVPN privilege-drop account to root, potentially compromising the confidentiality, integrity, and availability of the host. The vulnerability is conditional on DNS script use and privilege dropping; it is not an unauthenticated remote route to root on default installations.
Mitigation
If you can’t patch tonight, do this now.
Until the fix is deployed, disable --dns-updown and its DNS script integration where operationally feasible, arranging DNS configuration through a separate trusted mechanism. Review deployed profiles to identify installations combining DNS scripts with --user privilege dropping. Do not remove privilege dropping as a workaround.
Remediation
Patch, then assume compromise.
Upgrade OpenVPN Community Edition to version 2.7.10 or a later release containing the fix. Version 2.7.10 replaces the temporary-file transfer with a pipe and restricts accepted DNS variable names. For distribution packages or OpenVPN Access Server, obtain the applicable fix through the vendor's update channel. Restart the service, verify the running version, and test VPN connectivity and DNS updates.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-142125 exploited in the wild?
- As of Dec 4, 2026, Mallory has no reports of CVE-2026-142125 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-142125?
- As of Dec 4, 2026, Mallory has found no public exploit for CVE-2026-142125.
- Is there a patch for CVE-2026-142125?
- Upgrade OpenVPN Community Edition to version 2.7.10 or a later release containing the fix. Version 2.7.10 replaces the temporary-file transfer with a pipe and restricts accepted DNS variable names.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.