Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2021-45461: Remote Code Execution in FreePBX Rest Phone Apps

Published Dec 22, 2021 · Updated 25 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 2 in a dayToday
CVSS9.8Critical · v3.1
EPSS21.5%98th percentile
CISA KEVNoNot listed
In the wildReported7 exploitation records in Mallory
Vendor
Sangoma Technologies Corporation
IdentifiersCVE-2021-45461CWE-78

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
Sangoma Technologies CorporationRestappsapplication
FAQ

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.
Activity feed

Recent activity

10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+5 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence2Every report linking this CVE to a named adversary.
Associated malware5Malware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.