# CVE-2025-67722: Authenticated amportal search for ‘freepbx_engine’ in non root writeable directories leads to potential privilege escalation

- Severity: Medium 5.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2025-12-16T00:14:18.746Z
- Modified: 2026-10-07T19:10:00.160Z
- Weaknesses: CWE-426
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- FreePBX framework: < 16.0.45; >= 17.0.0, < 17.0.24
- sangoma freepbx: from 16.0 before 16.0.45; from 17.0 before 17.0.24

## Every score

- GitHub_M: CVSS:4.0 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`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/FreePBX/security-reporting/security/advisories/GHSA-p42w-v77m-hfp8> (vendor-advisory)
- <https://www.freepbx.org/watch-what-we-do-with-security-fixes-%f0%9f%91%80> (vendor-advisory)

## Sources

- CVE List: [CVE-2025-67722](https://www.cve.org/CVERecord?id=CVE-2025-67722), CVE Terms of Use, modified 2026-02-26
- NVD: [CVE-2025-67722](https://nvd.nist.gov/vuln/detail/CVE-2025-67722), Public domain, modified 2026-10-07

---

Page: https://cve.day/CVE-2025-67722 · Whole record: https://cve.day/CVE-2025-67722.json · Rebuilt by cve.day 2026-11-25T22:59:09.431Z
