Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-31814

CVE-2022-31814: Netgate pfBlockerNG RCE Vulnerability

CVE-2022-31814 is a remote code execution vulnerability in Netgate pfBlockerNG that allows attackers to execute arbitrary OS commands as root. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 18, 2026

CVE-2022-31814 Overview

CVE-2022-31814 is a critical command injection vulnerability affecting pfSense pfBlockerNG through version 2.1.4_26. The vulnerability allows unauthenticated remote attackers to execute arbitrary operating system commands with root privileges by injecting shell metacharacters into the HTTP Host header. This vulnerability represents a severe security risk as it enables complete system compromise without any prior authentication.

Critical Impact

Unauthenticated remote attackers can achieve root-level command execution on pfSense firewalls running vulnerable versions of pfBlockerNG, potentially compromising the entire network perimeter security.

Affected Products

  • Netgate pfBlockerNG versions through 2.1.4_26 for pfSense
  • pfSense installations with vulnerable pfBlockerNG package installed
  • Note: pfBlockerNG 3.x is unaffected by this vulnerability

Discovery Timeline

  • 2022-09-05 - CVE-2022-31814 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-31814

Vulnerability Analysis

This vulnerability stems from insufficient input validation in the pfBlockerNG package's handling of HTTP Host headers. When a request is processed, the Host header value is incorporated into shell commands without proper sanitization, allowing attackers to break out of the intended command context and inject arbitrary commands.

The attack requires no authentication, making it particularly dangerous for internet-exposed pfSense installations. Successful exploitation grants attackers root-level access to the underlying FreeBSD operating system, enabling them to modify firewall rules, intercept network traffic, establish persistence, or pivot to internal network resources.

Root Cause

The root cause is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command - OS Command Injection). The pfBlockerNG package fails to sanitize shell metacharacters present in the HTTP Host header before passing the value to system shell functions. Characters such as semicolons, backticks, and pipe operators are not filtered or escaped, allowing command injection attacks.

Attack Vector

The attack is network-based and can be executed remotely against any pfSense installation running the vulnerable pfBlockerNG versions. The attacker crafts a malicious HTTP request with shell metacharacters embedded in the Host header. When the pfBlockerNG package processes this request, the injected commands are executed with root privileges on the firewall system.

The exploitation technique involves sending specially crafted HTTP requests to the pfSense web interface with a manipulated Host header containing shell metacharacters followed by the attacker's commands. The vulnerability can be leveraged to upload web shells, establish reverse connections, or directly execute commands for immediate impact. Detailed technical exploitation methods are documented in the IHTeam Advisory on pfBlockerNG RCE and Packet Storm Remote Code Execution resources.

Detection Methods for CVE-2022-31814

Indicators of Compromise

  • Unusual HTTP requests to pfSense with malformed or suspicious Host headers containing shell metacharacters (;, `, |, $())
  • Unexpected processes spawned by the web server with root privileges
  • New or modified files in web-accessible directories, particularly PHP web shells
  • Outbound connections from the pfSense firewall to unknown external IP addresses
  • Modifications to pfSense configuration files or user accounts

Detection Strategies

  • Monitor web server access logs for requests containing shell metacharacters in the Host header field
  • Implement network-based intrusion detection rules to identify command injection patterns in HTTP headers
  • Deploy file integrity monitoring on the pfSense system to detect unauthorized file modifications
  • Review process execution logs for unexpected command execution by web server processes

Monitoring Recommendations

  • Enable detailed HTTP access logging on pfSense and forward logs to a SIEM for analysis
  • Configure alerts for any new user accounts or SSH keys added to the firewall
  • Monitor for unexpected network connections originating from the pfSense management interface
  • Implement behavioral monitoring to detect anomalous process execution patterns on the firewall

How to Mitigate CVE-2022-31814

Immediate Actions Required

  • Upgrade pfBlockerNG to version 3.x or later, which is not affected by this vulnerability
  • If immediate upgrade is not possible, consider temporarily disabling the pfBlockerNG package
  • Restrict access to the pfSense web interface to trusted IP addresses only
  • Review firewall logs for any signs of exploitation attempts

Patch Information

Netgate has addressed this vulnerability in pfBlockerNG version 3.x. The fix involves proper sanitization and validation of HTTP header inputs before they are processed by shell commands. Administrators should update to the latest available version of pfBlockerNG through the pfSense Package Manager. Details about the fix can be found in the GitHub FreeBSD-ports Pull Request and the GitHub Commit Details for Pull Request.

Workarounds

  • Implement network-level access controls to restrict access to the pfSense web interface from untrusted networks
  • Use a web application firewall (WAF) in front of pfSense to filter requests containing shell metacharacters in headers
  • Disable the pfBlockerNG package if it is not actively required until patching can be completed
  • Consider implementing IP-based allowlisting for management interface access at the network perimeter
bash
# Configuration example - Restrict pfSense web interface access via firewall rules
# Add rule to allow management access only from trusted admin subnet
# Navigate to: Firewall > Rules > WAN
# Action: Block, Source: any, Destination: This Firewall, Dest Port: 443
# Then add allow rule above for trusted admin IP range only

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechNetgate Pfblockerng

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability94.36%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • Packet Storm Shell Upload Exploit

  • Packet Storm Remote Code Execution

  • GitHub FreeBSD-ports Pull Request

  • GitHub Commit Details for Pull Request

  • IHTeam Advisory on pfBlockerNG RCE
  • Vendor Resources
  • Netgate pfBlockerNG Documentation
  • Latest CVEs
  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal Vulnerability

  • CVE-2026-40259: SiYuan Auth Bypass Vulnerability

  • CVE-2026-40255: AdonisJS HTTP Server CSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English