Skip to main content

FreePBX CVE-2025-67722

MEDIUM
Untrusted Search Path (CWE-426)
2025-12-16 security-advisories@github.com
5.7
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain asterisk-group local account
  2. Delivery
    Write malicious freepbx_engine to /etc/asterisk/
  3. Exploit
    amportal resolves untrusted path
  4. Execution
    Script execs file as root
  5. Impact
    Full 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 asterisk group (granting write access to /etc/asterisk/ directories), the presence of the deprecated amportal startup script, and that script subsequently being executed with root privileges. Key limiting factors: the attacker must already be a trusted-group local user (not remote, not an arbitrary unprivileged account), FreePBX must be older than 16.0.45 / 17.0.24, and the legacy amportal utility must still be in use. Risk is effectively neutralized where only trusted OS users belong to the asterisk group and where live_dangerously = no (the default) is set in /etc/asterisk/asterisk.conf.

Impact

This is a genuine but comparatively low-urgency issue - a local privilege-escalation flaw (CWE-426, untrusted search path) in the deprecated amportal startup script, not a remotely exploitable one. The vendor CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:H/UI:N, base 5.7) confirms a local attack vector with no user interaction but requiring existing privileges, and all three impact metrics are High (VC:H/VI:H/VA:H) because successful exploitation yields root. Exploitation signals are weak: EPSS is only 0.13% (2nd percentile), there is no CISA KEV listing, and no public exploit was identified at time of analysis - so there is no public exploit identified at time of analysis. The low EPSS is consistent with a local-only, precondition-heavy flaw rather than a mass-exploited internet-facing bug. One tension worth noting: the vendor rates PR:H, but the described precondition is membership in the asterisk service group, which is a specific granted privilege rather than full administrative access - this reviewer assesses it closer to PR:L, which would raise the real-world severity for any environment where non-trusted accounts belong to that group. Net: treat as a standard patch-cycle item for FreePBX operators, elevated only where untrusted users share the asterisk group.

Exploit ScenarioDerived

A local user who is a member of the asterisk group plants a malicious freepbx_engine file in a writable /etc/asterisk/ directory. When an administrator or scheduled process later runs the deprecated amportal script, it locates and executes that attacker-controlled file with root privileges, giving the low-privileged user full root on the host. No public exploit was identified at time of analysis, and exploitation is local-only with no user interaction required of the victim beyond running amportal.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (github) PRIMARY 5.7 MEDIUM
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
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Medium
popular open-source PBX/VoIP platform, common but not ubiquitous in enterprises
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:sangoma:freepbx:*:*:*:*:*:*:*:*
cpe:2.3:a:sangoma:freepbx:*:*:*:*:*:*:*:*
CVE-2025-57819 CRITICAL POC
10.0 Aug 28

FreePBX 15, 16, and 17 contain SQL injection vulnerabilities enabling unauthenticated access to the administrator interf

CVE-2012-4869 HIGH POC
7.5 Sep 06

The callme_startcall function in recordings/misc/callme_page.php in FreePBX 2.9, 2.10, and earlier allows remote attacke

CVE-2014-1903 HIGH POC
7.5 Feb 18

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

CVE-2014-7235 CRITICAL POC
10.0 Oct 07

htdocs_ari/includes/login.php in the ARI Framework module/Asterisk Recording Interface (ARI) in FreePBX before 2.9.0.9,

CVE-2025-61678 HIGH POC
8.6 Oct 14

Authenticated arbitrary file upload in the FreePBX Endpoint Manager module (FreePBX 16 before 16.0.92 and FreePBX 17 bef

CVE-2025-61675 HIGH POC
8.6 Oct 14

Authenticated SQL injection in the FreePBX Endpoint Manager module allows a user holding a valid, known FreePBX username

CVE-2025-66039 CRITICAL POC
9.3 Dec 09

Authentication bypass in the FreePBX Endpoint Manager module lets remote, unauthenticated attackers impersonate any targ

CVE-2019-19006 CRITICAL POC
9.8 Nov 21

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

CVE-2023-43336 HIGH POC
8.8 Nov 02

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

CVE-2018-6393 HIGH POC
7.2 Jan 29

FreePBX 10.13.66-32bit and 14.0.1.24 (SNG7-PBX-64bit-1712-2) allow post-authentication SQL injection via the order param

CVE-2012-4870 MEDIUM POC
4.3 Sep 06

Multiple cross-site scripting (XSS) vulnerabilities in FreePBX 2.9 and earlier allow remote attackers to inject arbitrar

CVE-2019-16967 MEDIUM POC
6.1 Oct 21

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy