# CVE-2024-58294: FreePBX 16 contains an authenticated remote code execution vulnerability in the API module that allows attackers with…

Source: https://junglewise.ai/threats/cve-2024-58294-freepbx-16-contains-an-authenticated-remote-code-execution  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-12-11  
License: CC BY 4.0 with a link back

CVE-2024-58294 · Severity: high · CVSS 8.8 · Published 2025-12-11

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.

Technologies: [Sangoma FreePBX](https://junglewise.ai/threats/technologies/freepbx). Vendors: [Sangoma](https://junglewise.ai/threats/vendors/sangoma).

## Quick answers

**Is CVE-2024-58294 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-58294 being exploited in the wild.

**How severe is CVE-2024-58294?** High severity, with a CVSS score of 8.8, published 11 December 2025.

**Which products and versions are affected?** Sangoma FreePBX. The advisory does not name versions.

**Is there a fix for CVE-2024-58294?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected by CVE-2024-58294?** Check whether you run Sangoma FreePBX. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- Sangoma FreePBX

## Related threats

- [Sangoma FreePBX improper authentication in admin interface](https://junglewise.ai/threats/cve-2019-19006-sangoma-freepbx-improper-authentication-in-admin-interface)
- [Sangoma FreePBX command injection in filestore module](https://junglewise.ai/threats/cve-2025-64328-sangoma-freepbx-command-injection-in-filestore-module)
- [Sangoma FreePBX auth bypass and RCE in endpoint module](https://junglewise.ai/threats/cve-2025-57819-sangoma-freepbx-auth-bypass-and-rce-in-endpoint-module)
