High severity · published Dec 11, 2025
CVE-2024-58294
FreePBX 16 contains an authenticated remote code execution vulnerability in the API module that allows attackers with valid session credentials to execute arbitrary commands
8.8
CVSS
3.6%
EPSS
No
On KEV
Description
FreePBX 16 contains an authenticated remote code execution vulnerability in the API module that allows attackers with valid session credentials to execute arbitrary commands. Attackers can exploit the 'generatedocs' endpoint by crafting malicious POST requests with bash command injection to establish remote shell access.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)3.6% · higher than 89% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
FR
Freepbx · Sangoma
16.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-58294
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-58294
Exploit
https://www.exploit-db.com/exploits/52031
Product
https://www.freepbx.org/
Third Party Advisory
https://www.vulncheck.com/advisories/freepbx-authenticated-remote-code-execution-via-api-module
Exploit
https://www.youtube.com/watch?v=rqFJ0BxwlLI
More from Freepbx
9.8
CVE-2025-57819
FreePBX Affected by Authentication Bypass Leading to SQL Injection and RCE
9.8
CVE-2019-19006
Sangoma FreePBX Improper Authentication Vulnerability
7.2
CVE-2025-64328
FreePBX Administration GUI is Vulnerable to Authenticated Command Injection
9.8
CVE-2026-73665
FreePBX UCP: Unauthenticated remote code execution via socket.io namespace auth bypass and AMI action injection
9.8
CVE-2026-73663
FreePBX: Unauthenticated SQL injection in FreePBX missedcall via inbound Caller ID name leads to administrator takeover
