The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2023-48123

CVE-2023-48123: Netgate pfSense RCE Vulnerability

CVE-2023-48123 is a remote code execution vulnerability in Netgate pfSense affecting Plus v.23.05.1 and CE v.2.7.0. Attackers can exploit packet_capture.php to run arbitrary code. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 4, 2026

CVE-2023-48123 Overview

CVE-2023-48123 is an input validation vulnerability affecting Netgate pfSense Plus v.23.05.1 and earlier, as well as pfSense CE v.2.7.0. This vulnerability allows remote attackers to execute arbitrary code via crafted requests to the packet_capture.php file within the pfSense web interface. The flaw stems from improper validation of user-supplied input parameters in the packet capture diagnostics functionality.

Critical Impact

Remote attackers with low-level authenticated access can exploit this vulnerability to achieve full system compromise, potentially gaining complete control over the firewall appliance and network infrastructure it protects.

Affected Products

  • Netgate pfSense Plus v.23.05.1 and earlier versions
  • Netgate pfSense CE v.2.7.0 and earlier versions
  • Network appliances running vulnerable pfSense web GUI components

Discovery Timeline

  • 2023-12-06 - CVE-2023-48123 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-48123

Vulnerability Analysis

This vulnerability exists in the packet capture diagnostic functionality within the pfSense web administration interface. The diag_packet_capture.php file fails to properly validate and sanitize user-supplied input for the count and length POST parameters before using them in system operations. Without proper validation, attackers can inject malicious values that break out of the intended context, leading to arbitrary code execution on the underlying system.

The attack requires network access to the pfSense web interface and basic authenticated access (low privileges). Once exploited, an attacker can achieve complete confidentiality, integrity, and availability impact on the targeted system—effectively taking full control of the firewall appliance.

Root Cause

The root cause of this vulnerability is insufficient input validation in the packet capture functionality. The original code directly used user-supplied POST parameters ($_POST['count'] and $_POST['length']) without verifying that they contain only numeric integer values. This allowed attackers to submit specially crafted non-numeric payloads that could be processed by the system in unintended ways, leading to command injection or code execution.

Attack Vector

The attack vector is network-based, requiring the attacker to submit malicious HTTP POST requests to the diag_packet_capture.php endpoint on the pfSense web interface. The attacker must have at least low-level authenticated access to the pfSense administration panel. By crafting a malicious request with specially formatted count or length parameters, an attacker can bypass the intended input handling and execute arbitrary code on the server.

php
// Security patch validating count and length parameters
// Source: https://github.com/pfsense/pfsense/commit/f72618c4abb61ea6346938d0c93df9078736b775

 	$input_filter = ($_POST['filter'] !== null) ? intval($_POST['filter']) : null;
 	if ($_POST['count'] == '0') {
 		$input_count = 0;
+	} elseif (empty($_POST['count'])) {
+		$input_count = 1000;
+	} elseif (!is_numericint($_POST['count'])) {
+		$input_error[] = 'Invalid Packet Count.';
 	} else {
-		$input_count = empty($_POST['count']) ? 1000 : $_POST['count'];
+		$input_count = intval($_POST['count']);
+	}
+	if (empty($_POST['length'])) {
+		$input_length = 0;
+	} elseif (!is_numericint($_POST['length'])) {
+		$input_error[] = 'Invalid Packet Length.';
+	} else {
+		$input_length = intval($_POST['length']);
 	}
-	$input_length = empty($_POST['length']) ? 0 : $_POST['length'];
 	$input_promiscuous = empty($_POST['promiscuous']) ? false : $_POST['promiscuous'];
 	// view options
 	$input_viewdetail = empty($_POST['viewdetail']) ? 'normal' : $_POST['viewdetail'];

The patch introduces proper validation using is_numericint() to ensure that only numeric integer values are accepted for the count and length parameters. Non-numeric input now generates an error message rather than being processed.

Detection Methods for CVE-2023-48123

Indicators of Compromise

  • Unusual or malformed HTTP POST requests to /diag_packet_capture.php containing non-numeric values in count or length parameters
  • Web server logs showing repeated or suspicious access patterns to the packet capture diagnostic endpoint
  • Evidence of unauthorized command execution or shell spawning from the pfSense web server process
  • Unexpected outbound network connections originating from the pfSense appliance

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block POST requests to diag_packet_capture.php containing non-numeric or excessively long values in count and length parameters
  • Monitor pfSense web server access logs for abnormal patterns targeting diagnostic endpoints
  • Deploy intrusion detection signatures to identify exploitation attempts against this specific vulnerability
  • Review authentication logs for suspicious login activity preceding access to diagnostic functions

Monitoring Recommendations

  • Enable comprehensive logging on pfSense web interface access, particularly for diagnostic and system administration pages
  • Configure alerts for failed authentication attempts followed by successful logins to the pfSense admin panel
  • Monitor system process creation on the pfSense appliance for unexpected child processes from the web server
  • Implement network traffic analysis to detect anomalous outbound connections from firewall management interfaces

How to Mitigate CVE-2023-48123

Immediate Actions Required

  • Update pfSense Plus to a version newer than v.23.05.1 that includes the security patch
  • Update pfSense CE to a version newer than v.2.7.0 that includes the security patch
  • Restrict access to the pfSense web administration interface to trusted networks and IP addresses only
  • Review user accounts with access to the pfSense admin panel and remove unnecessary privileges

Patch Information

Netgate has released a security patch addressing this vulnerability. The fix is documented in Netgate Security Advisory pfSense-SA-23_11. The specific code changes implementing proper input validation can be reviewed in the GitHub commit f72618c4abb61ea6346938d0c93df9078736b775. Additional details are available in the pfSense issue tracker entry #14809.

Workarounds

  • Implement network-level access controls to limit which IP addresses can reach the pfSense web interface
  • Deploy a web application firewall in front of the pfSense management interface to filter malicious requests
  • Disable direct internet access to the pfSense administration panel and require VPN for remote management
  • Consider temporarily disabling the packet capture diagnostic feature if not actively needed until patching is complete
bash
# Example: Restrict pfSense web interface access via firewall rules
# Add to pfSense firewall rules to limit admin interface access

# Allow management only from trusted admin network
pfctl -a "admin_access" -f - <<EOF
pass in on em0 proto tcp from 10.0.0.0/24 to any port 443
block in on em0 proto tcp from any to any port 443
EOF

# Verify current firewall rules
pfctl -a "admin_access" -sr

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechNetgate Pfsense

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability68.25%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Vendor Resources
  • Netgate Security Advisory

  • GitHub Commit for pfSense

  • pfSense Issue Tracker Entry
  • Related CVEs
  • CVE-2023-42326: Netgate pfSense RCE Vulnerability

  • CVE-2023-27253: Netgate pfSense RCE Vulnerability

  • CVE-2023-42325: Netgate pfSense XSS Vulnerability

  • CVE-2024-46538: Netgate pfSense XSS 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