CVE-2021-45461: Remote Code Execution in FreePBX Rest Phone Apps
- Vendor
- Sangoma Technologies Corporation
CVE-2021-45461 is a remote code execution vulnerability in the FreePBX Rest Phone Apps (restapps) module affecting versions 15.0.19.87, 15.0.19.88, 16.0.18.40, and 16.0.18.41. Improper handling of attacker-controlled web request input can lead to arbitrary command execution on the PBX host. Exploitation was observed in the wild in December 2021 and subsequently associated with PHP webshell deployment on FreePBX and Elastix systems. The exact vulnerable function and request parameter are not independently established; the described parameter-level demonstration used simulated vulnerable logic.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the confidentiality, integrity, and availability of the affected PBX by enabling arbitrary code execution. Associated intrusions deployed PHP webshells supporting configuration and credential theft, unauthorized administrative sessions, persistent access, and outbound call initiation. These capabilities can facilitate toll fraud and continued compromise of telephony infrastructure. The vulnerability alone does not establish that execution occurs with root privileges.
Mitigation
If you can’t patch tonight, do this now.
Restrict network access to the Rest Phone Apps web interface to trusted systems while updates are pending. Monitor web-server processes spawning shells, unauthorized PHP files, unexpected scheduled tasks, privileged account changes, and abnormal outbound connections. To limit downstream telephony abuse, restrict SIP trunk registrations to approved addresses and enforce destination restrictions and spending limits. These controls do not replace the module update or remove an existing compromise.
Remediation
Patch, then assume compromise.
Upgrade the restapps module to version 15.0.20 for the 15.x branch or 16.0.19 for the 16.x branch, or a later supported release containing the fix. For systems with evidence of exploitation, patching must be accompanied by incident response: isolate the host, preserve evidence, investigate webshells and persistence, and rebuild from a trusted image where system integrity cannot be established. Rotate exposed credentials after the system is clean.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-45461 exploited in the wild?
- Yes. As of Oct 28, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2021-45461?
- Yes. As of Oct 28, 2026, Mallory has reports of a public exploit for CVE-2021-45461.
- Is there a patch for CVE-2021-45461?
- Upgrade the restapps module to version 15.0.20 for the 15.x branch or 16.0.19 for the 16.x branch, or a later supported release containing the fix. For systems with evidence of exploitation, patching must be accompanied by incident response: isolate the host, preserve evidence, investigate webshells and persistence, and rebuild from a trusted image where system integrity cannot be established.
- What products are affected by CVE-2021-45461?
- Sangoma Technologies Corporation Restapps.
- How severe is CVE-2021-45461?
- CVE-2021-45461 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 21.5% (98th percentile) as of Oct 28, 2026.
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.