CVE-2024-58294 FreePBX 16 Authenticated Remote Code Execution via API Module

High 8.7 Published Updated

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.

All Sangoma Freepbx vulnerabilities

Sources

Also known as GHSA-3f55-6gfh-8xfx.

Is CVE-2024-58294 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free