FreePBX
CVE-2025-67722
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain asterisk-group local account
-
DeliveryWrite malicious freepbx_engine to /etc/asterisk/
-
Exploitamportal resolves untrusted path
-
ExecutionScript execs file as root
-
ImpactFull root compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path verification
|
| Exploitation Conditions | Exploitation requires a local account that is a member of the |
| Impact | This is a genuine but comparatively low-urgency issue - a local privilege-escalation flaw (CWE-426, untrusted search path) in the deprecated |
| Exploit ScenarioDerived | A local user who is a member of the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 07, 2026
Local privilege escalation in FreePBX framework versions prior to 16.0.45 and 17.0.24 allows a local user in the asterisk group to place a malicious freepbx_engine file in /etc/asterisk/, which the deprecated amportal startup script may then execute with root privileges. The flaw is not remotely exploitable; exploitation requires write access to /etc/asterisk/, the legacy amportal utility to still be executed as root, and the attacker to already hold a local account in the asterisk group. EPSS is low at 0.13% (2nd percentile), and no public exploit or confirmed active exploitation is identified in the available data.
RemediationAI
Upgrade the FreePBX framework to version 16.0.45 or 17.0.24, which contains the vendor fix. Confirm that only trusted local OS users are members of the asterisk group; removing untrusted accounts from that group may disrupt legitimate Asterisk or FreePBX administration and file access, so validate operational impact before making changes. Inspect /etc/asterisk/ for unexpected freepbx_engine files via Admin -> Config Edit in the GUI or via the CLI. Ensure live_dangerously = no (the default) is set in /etc/asterisk/asterisk.conf; explicitly setting it to no could break custom dialplan or applications that intentionally rely on privileged Asterisk functions. Eliminate unsafe custom dialplan applications and functions such as System() and FILE() that can manipulate the file system, understanding that this may break custom call flows. Vendor advisory: https://github.com/FreePBX/security-reporting/security/advisories/GHSA-p42w-v77m-hfp8 and https://www.freepbx.org/watch-what-we-do-with-security-fixes-%f0%9f%91%80.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
FreePBX is an open-source web GUI that manages Asterisk. The deprecated amportal startup script performs a search-path lookup for the freepbx_engine file in /etc/asterisk/, a directory that FreePBX commonly configures as writable by the asterisk user and members of the asterisk group. Because amportal may be executed with root privileges, a non-root user in the asterisk group can plant a freepbx_engine file that will be run as root. This is CWE-426, untrusted search path, localized to the legacy startup script. The CPE data identifies Sangoma FreePBX (cpe:2.3:a:sangoma:freepbx) as the affected product. The independent assessment rates this as CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, emphasizing local authenticated access, group membership, and the continued presence and root execution of the deprecated amportal utility. Risk is effectively neutralized where only trusted OS users belong to the asterisk group and live_dangerously = no (the default) is set in /etc/asterisk/asterisk.conf.
Know when Freepbx gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
Local-only untrusted search path (AV:L/AC:L); requires asterisk-group membership - a specific low-privilege grant, so PR:L not PR:H; no interaction; root outcome gives C/I/A High.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
FreePBX is an open-source web-based graphical user interface (GUI) that manages Asterisk. Prior to versions 16.0.45 and 17.0.24 of the FreePBX framework, an authenticated local privilege escalation exists in the deprecated FreePBX startup script amportal. In the deprecated amportal utility, the lookup for the freepbx_engine file occurs in /etc/asterisk/ directories. Typically, these are configured by FreePBX as writable by the asterisk user and any members of the asterisk group. This means that a member of the asterisk group can add their own freepbx_engine file in /etc/asterisk/ and upon amportal executing, it would exec that file with root permissions (even though the file was created and placed by a non-root user). Version 16.0.45 and 17.0.24 contain a fix for the issue. Other mitigation strategies are also available. Confirm only trusted local OS system users are members of the asterisk group. Look for suspicious files in the /etc/asterisk/ directory (via Admin -> Config Edit in the GUI, or via CLI). Double-check that live_dangerously = no is set (or unconfigured, as the default is no) in /etc/asterisk/asterisk.conf file. Eliminate any unsafe custom use of Asterisk dial plan applications and functions that potentially can manipulate the file system, e.g., System(), FILE(), etc.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
Affected Products (CPE)CVE.org
FreePBX 15, 16, and 17 contain SQL injection vulnerabilities enabling unauthenticated access to the administrator interf
The callme_startcall function in recordings/misc/callme_page.php in FreePBX 2.9, 2.10, and earlier allows remote attacke
admin/libraries/view.functions.php in FreePBX 2.9 before 2.9.0.14, 2.10 before 2.10.1.15, 2.11 before 2.11.0.23, and 12
htdocs_ari/includes/login.php in the ARI Framework module/Asterisk Recording Interface (ARI) in FreePBX before 2.9.0.9,
Authenticated arbitrary file upload in the FreePBX Endpoint Manager module (FreePBX 16 before 16.0.92 and FreePBX 17 bef
Authenticated SQL injection in the FreePBX Endpoint Manager module allows a user holding a valid, known FreePBX username
Authentication bypass in the FreePBX Endpoint Manager module lets remote, unauthenticated attackers impersonate any targ
Sangoma FreePBX 115.0.16.26 and below, 14.0.13.11 and below, 13.0.197.13 and below have Incorrect Access Control. Rated
Sangoma Technologies FreePBX before cdr 15.0.18, 16.0.40, 15.0.16, and 16.0.17 was discovered to contain an access contr
FreePBX 10.13.66-32bit and 14.0.1.24 (SNG7-PBX-64bit-1712-2) allow post-authentication SQL injection via the order param
Multiple cross-site scripting (XSS) vulnerabilities in FreePBX 2.9 and earlier allow remote attackers to inject arbitrar
An issue was discovered in Manager 13.x before 13.0.2.6 and 15.x before 15.0.6 before FreePBX 14.0.10.3. Rated medium se
NVD
CVE.org
EPSS
GitHub
Exploit-DB