CVE-2024-58294CWE-78

FreePBX 16 Authenticated Remote Code Execution via API Module

High · published December 11, 2025

CVSS v4.0
8.7
EPSS
4%
Percentile
89.3
In the wild
Unconfirmed
What it is

⚡ A sneaky command injection vulnerability lurks in FreePBX 16's API module! Valid session credentials are all an attacker needs to execute arbitrary commands through the 'generatedocs' endpoint. 🔥 Think of this as a waiter who takes orders but never checks them against the menu — a crafty chef could whip up anything, and you’d never know! The implications here are seriously alarming! An attacker could seize control of the system, running any command they desire. This could lead to unauthorized access to sensitive data, system tampering, or even a full takeover of the server. Yikes!

Put simply

Think of this as a waiter who takes orders but never checks them against the menu — a crafty chef could whip up anything, and you’d never know! This vulnerability allows authenticated users to execute arbitrary commands via crafted POST requests, specifically exploiting a bash command injection in the 'generatedocs' API endpoint.

What to do

The implications here are seriously alarming! An attacker could seize control of the system, running any command they desire. This could lead to unauthorized access to sensitive data, system tampering, or even a full takeover of the server. Yikes! To secure your installation, patch FreePBX to version 16.0.1 or later as soon as possible. Additionally, review and tighten API access permissions to limit exposure. Regularly audit your session authentication practices to ensure only trusted users have access. You've got this! Fixing this vulnerability will boost your security and keep your systems safe. 🛡️

The record
Technical detail
CVSS v4.0
8.7 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.03568 · 89.3th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2025-12-11T21:36Z
EPSS history
Timeline
  • 11 DEC 21:36Z
    FreePBX 16 Authenticated Remote Code Execution via API Module
    cvelistv5