CVE-2024-58294 FreePBX 16 Authenticated Remote Code Execution via API Module
Authenticated attackers can execute arbitrary commands via the API module in FreePBX, leading to remote code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-58294?
CVE-2024-58294 is a high-severity command injection vulnerability in Sangoma Freepbx, published on 11 Dec 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-78
Which versions are affected by CVE-2024-58294?
It affects 1 product.
Products include Sangoma Freepbx.
How do I fix CVE-2024-58294?
No fix has been published for CVE-2024-58294 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-58294 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-58294 exists.
Other vulnerabilities in Sangoma Freepbx
- CVE-2025-57819 Sangoma FreePBX Authentication Bypass
- CVE-2019-19006 Sangoma FreePBX Improper Authentication
- CVE-2026-73663 FreePBX: Unauthenticated SQL injection in FreePBX missedcall via inbound Caller ID name leads to administrator takeover
- CVE-2026-73665 FreePBX UCP: Unauthenticated remote code execution via socket.io namespace auth bypass and AMI action injection
- CVE-2026-46376 FreePBX: Unauthenticated Use of Hard-Coded Credentials Vulnerability in FreePBX UCP Interface
Sources
Also known as GHSA-3f55-6gfh-8xfx.