A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2025-59051

CVE-2025-59051: FreePBX Endpoint Manager RCE Vulnerability

CVE-2025-59051 is a remote code execution vulnerability in FreePBX Endpoint Manager allowing authenticated attackers to execute OS commands. This article covers technical details, affected versions, and mitigation steps.

Published: May 26, 2026

CVE-2025-59051 Overview

CVE-2025-59051 is an authenticated OS command injection vulnerability in the FreePBX Endpoint Manager module. The Network Scanning feature exposes nmap functionality through a web interface for network device discovery. Insufficient sanitization of user-supplied input allows authenticated attackers to execute arbitrary operating system commands as the asterisk user. The flaw affects Endpoint Manager 16 before 16.0.92 and 17 before 17.0.6. Exploitation requires authentication with a known username, limiting opportunistic attacks but remaining viable for insiders or attackers with stolen credentials. The vulnerability is classified under [CWE-78] (Improper Neutralization of Special Elements used in an OS Command).

Critical Impact

Authenticated attackers can execute arbitrary OS commands as the asterisk user, enabling lateral movement, telephony service tampering, and potential pivoting into voice infrastructure.

Affected Products

  • FreePBX Endpoint Manager 16 prior to 16.0.92
  • FreePBX Endpoint Manager 17 prior to 17.0.6
  • FreePBX deployments exposing the Network Scanning feature

Discovery Timeline

  • 2025-10-14 - CVE-2025-59051 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-59051

Vulnerability Analysis

The FreePBX Endpoint Manager module ships a web-based wrapper around the nmap utility to help administrators discover SIP phones and other devices on the local network. The wrapper passes user-controlled parameters into a shell invocation without adequate input neutralization. An authenticated user with access to the Endpoint Manager interface can inject shell metacharacters into the scan parameters, causing the underlying shell to execute additional commands beyond nmap.

Because the FreePBX web stack runs Asterisk-related operations under the asterisk service account, injected commands inherit that account's permissions. The asterisk user typically owns call detail records, voicemail data, dialplan configurations, and recordings. Attackers gain access to sensitive telephony data and can modify call routing, intercept voicemail, or stage further attacks against the host.

Root Cause

The root cause is improper neutralization of special elements supplied to an OS command [CWE-78]. The Network Scanning handler concatenates user-supplied scan targets or options into a shell command string instead of using safe argument arrays or strict allow-list validation. Shell metacharacters such as ;, |, &&, and backticks pass through to the interpreter unchanged.

Attack Vector

The attack is network-reachable through the FreePBX administrative web interface. An attacker authenticates using a known username and valid credentials, then issues a crafted request to the Network Scanning endpoint. The injected payload is appended to the nmap invocation and executed by the shell as the asterisk user. No user interaction beyond the attacker's own session is required.

The vulnerability mechanism is described in the FreePBX GitHub Security Advisory GHSA-qgj3-f9gj-98v9. No public proof-of-concept code is referenced in the advisory.

Detection Methods for CVE-2025-59051

Indicators of Compromise

  • Unexpected child processes spawned by the FreePBX web server or PHP-FPM workers running as asterisk, such as /bin/sh, bash, wget, curl, nc, or python invocations following an nmap execution.
  • Outbound network connections from the FreePBX host to attacker-controlled infrastructure shortly after Endpoint Manager Network Scanning activity.
  • Modifications to Asterisk configuration files (/etc/asterisk/) or addition of new cron entries for the asterisk user.

Detection Strategies

  • Inspect web server access logs for POST requests to Endpoint Manager Network Scanning endpoints containing shell metacharacters such as ;, |, `, $(, or URL-encoded equivalents.
  • Correlate nmap process executions on FreePBX hosts with subsequent unrelated process spawns under the same parent PID.
  • Alert on authenticated administrative actions originating from unusual source IPs or outside normal change windows.

Monitoring Recommendations

  • Enable verbose audit logging on the Endpoint Manager module and forward FreePBX logs to a centralized SIEM for retention and correlation.
  • Monitor process trees on the FreePBX host using a Linux-capable EDR to flag command chains rooted in the web service account.
  • Track integrity of /etc/asterisk/ and PBX module directories to detect post-exploitation persistence.

How to Mitigate CVE-2025-59051

Immediate Actions Required

  • Upgrade FreePBX Endpoint Manager to version 16.0.92 or 17.0.6 or later as published by the FreePBX project.
  • Rotate credentials for all FreePBX administrative accounts, especially any accounts whose usernames may be known or guessable.
  • Restrict access to the FreePBX administrative web interface to trusted management networks using firewall rules or a VPN.

Patch Information

The FreePBX project addresses CVE-2025-59051 in Endpoint Manager 16.0.92 and 17.0.6. Patch details and release notes are available in the FreePBX Security Advisory GHSA-qgj3-f9gj-98v9. Administrators should apply the update through the standard FreePBX module manager and verify the new version after installation.

Workarounds

  • Disable the Network Scanning feature within Endpoint Manager until the patched version is installed.
  • Enforce strong, unique passwords and multi-factor authentication for all FreePBX administrative accounts to reduce the risk of credential-based exploitation.
  • Place the FreePBX administrative interface behind a reverse proxy or VPN that requires additional authentication and source IP restrictions.
bash
# Verify installed Endpoint Manager version and update via FreePBX CLI
fwconsole ma list | grep -i endpoint
fwconsole ma downloadinstall endpoint
fwconsole ma upgrade endpoint
fwconsole reload

# Restrict administrative UI access at the host firewall (example: allow only management subnet)
iptables -A INPUT -p tcp --dport 443 -s 10.10.0.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j DROP

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechFreepbx

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-26978: FreePBX Backup Module RCE Vulnerability

  • CVE-2026-40520: FreePBX API RCE Vulnerability

  • CVE-2026-28209: FreePBX Command Injection RCE Vulnerability

  • CVE-2026-28287: FreePBX Recordings Module RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

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.

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