CVE-2025-67722: FreePBX - Privilege Escalation
- Cve: CVE-2025-67722
- Name: FreePBX - Privilege Escalation
- Description: 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.
- Impact: Local attackers in the asterisk group can escalate privileges to root, compromising the entire system.
- Remediation: Upgrade to FreePBX versions 16.0.45 or 17.0.24 or later. Additionally, restrict asterisk group membership and verify configuration settings.
- Vulnerability type: broken_access_control
- Vulnerability impact: privilege_escalation
- Requirement type: logged_in
- Requirements: Attacker must be a member of the asterisk group with local access.
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00137
- Epss percentile: 0.03111
- Assignee: [email protected]
- Published at: 2025-12-16T01:15:52Z
- Age in days: 343
- Modified at: 2026-10-07T19:10:00Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-67722
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-426 | Untrusted Search Path |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/FreePBX/security-reporting/security/advisories/GHSA-p42w-v77m-hfp8 | nvd | Vendor Advisory |
| https://www.freepbx.org/watch-what-we-do-with-security-fixes-%f0%9f%91%80 | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| sangoma:freepbx | >= 17.0, < 17.0.24; >= 16.0, < 16.0.45 | no | nvd | /v1/products/sangoma/freepbx |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| FreePBX/security-reporting | security_advisory | yes | /v1/repositories/FreePBX/security-reporting |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Exposed hosts: 11277
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports