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

CVE-2026-111220: pfSense CE Crontab Injection RCE Vulnerability

CVE-2026-111220 is a crontab injection RCE flaw in pfSense CE through version 2.9.0 that allows authenticated users to execute commands as root. This post explains its impact, affected versions, and mitigation steps.

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-111220 Overview

CVE-2026-111220 is a crontab injection vulnerability [CWE-93] in pfSense CE through version 2.9.0. The flaw resides in interfaces_ppps_edit.php and allows authenticated users with the WebCfg - Interfaces: PPPs: Edit privilege to execute arbitrary commands as root. Attackers inject newline characters into the ptpid or reset hour/minute fields. The configure_cron() function then writes these unescaped values into /etc/crontab, enabling scheduled execution of attacker-controlled commands with root privileges.

Critical Impact

Authenticated attackers with PPP edit permissions can gain root command execution on pfSense firewalls, compromising the perimeter device that mediates all network traffic.

Affected Products

  • Netgate pfSense CE through version 2.9.0
  • interfaces_ppps_edit.php web interface component
  • configure_cron() function in services.inc

Discovery Timeline

  • 2026-10-15 - CVE CVE-2026-111220 published to NVD
  • 2026-10-15 - Last updated in NVD database

Technical Details for CVE-2026-111220

Vulnerability Analysis

The vulnerability is a CRLF/newline injection flaw that enables command execution through the FreeBSD cron scheduler. The pfSense PPP interface configuration page accepts user input for periodic reset scheduling fields and a parent interface identifier (ptpid). The web application fails to sanitize newline characters in these fields before persisting them to configuration state.

When configure_cron() reconstructs /etc/crontab, it concatenates the stored values into cron job lines. Because newlines are preserved, an attacker can terminate the legitimate cron entry early and append an entirely new entry. FreeBSD cron executes jobs defined in /etc/crontab as root, which converts the injection into arbitrary root command execution on the firewall.

Root Cause

The root cause is improper neutralization of CRLF sequences [CWE-93] in form inputs processed by interfaces_ppps_edit.php at lines 271-278. Neither the input handler nor the downstream configure_cron() writer in services.inc escapes or rejects newline characters, allowing crafted POST data to break out of a single cron row.

Attack Vector

An authenticated user holding the WebCfg - Interfaces: PPPs: Edit privilege submits a POST request to the PPP edit endpoint. The request embeds %0A sequences in the ptpid, reset hour, or minute parameters, followed by an attacker-controlled cron line. Once the configuration is saved, pfSense rewrites /etc/crontab with the malicious entry. The injected job runs under root on its scheduled interval, delivering persistent command execution. See the VulnCheck Advisory for pfSense and the Abraxas Labs Research Article for further technical analysis.

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

Indicators of Compromise

  • Unexpected entries in /etc/crontab that do not match pfSense defaults, particularly lines referencing shells, curl, fetch, nc, or base64-encoded payloads.
  • Modifications to config.xml where PPP ptpid, pppoe-reset-type, or reset hour/minute fields contain newline characters or shell metacharacters.
  • Root-owned processes spawned on cron intervals (hourly, daily) that were not previously observed on the firewall.
  • Outbound connections from the pfSense host to attacker infrastructure originating from cron-scheduled contexts.

Detection Strategies

  • Hash and baseline /etc/crontab after installation and alert on any out-of-band modification.
  • Audit pfSense web GUI access logs for POST requests to interfaces_ppps_edit.php from accounts that do not routinely manage WAN interfaces.
  • Inspect saved pfSense config.xml backups for ppp sub-entries containing \n, %0A, or multi-line values in scheduling fields.

Monitoring Recommendations

  • Forward pfSense system and cron logs to a centralized log platform and alert on new or unknown cron job IDs executed as root.
  • Monitor process execution on the firewall for shells, network tools, or scripts invoked by cron outside of documented maintenance windows.
  • Track administrative privilege assignments and flag any account granted WebCfg - Interfaces: PPPs: Edit that does not need PPP management.

How to Mitigate CVE-2026-111220

Immediate Actions Required

  • Restrict the WebCfg - Interfaces: PPPs: Edit privilege to a minimal set of trusted administrators and remove it from shared or operator accounts.
  • Block access to the pfSense web GUI from untrusted networks and require VPN plus multi-factor authentication for administrative sessions.
  • Review /etc/crontab and config.xml on all pfSense CE 2.9.0 and earlier systems for injected entries or multi-line PPP scheduling values.
  • Rotate administrative credentials and API keys if evidence of configuration tampering is found.

Patch Information

At the time of publication, no fixed version is referenced in the NVD entry. Monitor Netgate release notes for a pfSense CE update that neutralizes newline characters in PPP scheduling fields and in configure_cron(). Reference the VulnCheck Advisory for pfSense for vendor coordination status.

Workarounds

  • Remove the PPP edit privilege from all non-essential accounts until a patched release is available.
  • Deploy a file integrity monitor on /etc/crontab and alert administrators on any change.
  • Replace PPP/PPPoE reset scheduling driven by the GUI with a manually maintained cron entry controlled outside the web interface.
  • Restrict web GUI network reachability using firewall rules so only management subnets can reach the pfSense administrative interface.
bash
# Example: review current crontab and audit PPP configuration for injected newlines
cat /etc/crontab
grep -nE 'ptpid|pppoe-reset-type|<hour>|<minute>' /cf/conf/config.xml

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.