Skip to main content
Vulnerability Database/CVE-2026-111225

CVE-2026-111225: pfSense CE OpenVPN RCE Vulnerability

CVE-2026-111225 is a command injection flaw in pfSense CE versions 2.5.0 through 2.9.0 that lets authenticated VPN clients execute arbitrary commands. This article covers the technical details, affected versions, and steps to protect your system.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-111225 Overview

CVE-2026-111225 is an OS command injection vulnerability [CWE-78] in Netgate pfSense CE versions 2.5.0 through 2.9.0. The flaw resides in the openvpn.learn-address.sh script, which handles OpenVPN client learn-address events. Authenticated VPN clients can embed shell metacharacters in a certificate common name (CN) or username. The script interpolates these values unquoted into su -c command strings, enabling command execution as the unbound user. Exploitation requires that the DNS Resolver client registration feature is enabled on the affected pfSense firewall.

Critical Impact

Authenticated OpenVPN clients can execute arbitrary shell commands as the unbound user on the pfSense firewall when DNS Resolver client registration is enabled.

Affected Products

  • Netgate pfSense CE 2.5.0
  • Netgate pfSense CE versions 2.5.1 through 2.8.x
  • Netgate pfSense CE 2.9.0

Discovery Timeline

  • 2026-10-15 - CVE-2026-111225 published to the National Vulnerability Database
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-111225

Vulnerability Analysis

The vulnerability affects the openvpn.learn-address.sh script shipped with pfSense CE. OpenVPN invokes this script whenever a client address is learned, added, or removed. The script receives the client's certificate common name or username as an argument. When DNS Resolver client registration is enabled, the script passes that identifier to su -c to update the unbound DNS resolver. The identifier is interpolated into the shell command without quoting or sanitization. An authenticated VPN client that controls its CN or username can inject arbitrary shell syntax that executes under the unbound user context. The EPSS score of 6.207% (93.499 percentile) indicates meaningful external interest in exploitation despite the attack prerequisites.

Root Cause

The root cause is improper neutralization of special elements in an OS command [CWE-78]. The affected lines 57–62 of openvpn.learn-address.sh build a su -c "..." string by concatenating unquoted shell variables that originate from client-supplied identity material. Shell metacharacters such as `, $(), ;, and | are not escaped before the command is executed.

Attack Vector

Exploitation requires valid OpenVPN credentials and a server configuration with DNS Resolver client registration enabled. The attacker provisions a client certificate whose CN contains shell metacharacters, or supplies a crafted username during authentication. Upon successful connection, the OpenVPN daemon invokes learn-address.sh with the malicious identifier, which is then evaluated by the shell under the unbound service account. The resulting foothold permits further local actions available to that account.

No verified public exploit code is available. For technical specifics, see the Abraxas Labs Research Article, the proof-of-concept repository, the vulnerable script snippet, and the VulnCheck Advisory for pfSense.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-111225

Indicators of Compromise

  • OpenVPN client certificates or usernames containing shell metacharacters such as `, $(), ;, |, or &.
  • Unexpected child processes spawned by openvpn.learn-address.sh or executed under the unbound user account.
  • New or modified files in directories writable by the unbound account following VPN client connection events.

Detection Strategies

  • Parse OpenVPN server logs for learn-address events whose common name or username fields contain non-alphanumeric characters outside the expected identifier character set.
  • Monitor process execution on pfSense hosts for su -c invocations originating from learn-address.sh with suspicious argument content.
  • Correlate connection events with subsequent outbound network activity from the unbound user context.

Monitoring Recommendations

  • Forward pfSense system logs and OpenVPN event logs to a central log platform for anomaly review.
  • Alert on any shell command execution chained from the OpenVPN learn-address hook.
  • Track changes to /usr/local/sbin/openvpn.learn-address.sh and related OpenVPN configuration files.

How to Mitigate CVE-2026-111225

Immediate Actions Required

  • Disable DNS Resolver client registration for OpenVPN until a patched release is installed; this removes the vulnerable code path.
  • Audit issued OpenVPN client certificates and username entries for values containing shell metacharacters and revoke any suspicious credentials.
  • Restrict OpenVPN enrollment to trusted operators and enforce strict identifier character policies on CN and username fields.

Patch Information

At the time of publication, no vendor advisory URL is listed in the enriched CVE data. Administrators should monitor Netgate pfSense CE release notes and apply the fixed version when published. Refer to the VulnCheck Advisory for pfSense for updates on remediation status.

Workarounds

  • Turn off the "Register DHCP leases from OpenVPN clients in the DNS Resolver" option in the pfSense WebGUI under Services > DNS Resolver.
  • Replace the su -c invocation inside openvpn.learn-address.sh with properly quoted arguments and validate that CN/username values match an allowlist pattern such as ^[A-Za-z0-9._-]+$.
  • Limit OpenVPN access to clients using certificates issued by an internal certificate authority that enforces CN format restrictions.
bash
# Configuration example: validate identifier before invoking su
if ! printf '%s' "$common_name" | grep -Eq '^[A-Za-z0-9._-]+$'; then
    logger -t openvpn "Rejected learn-address for invalid CN: $common_name"
    exit 1
fi

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.