CVE-2012-4870: Multiple XSS in FreePBX 2.9 and earlier
- Vendor
- Sangoma Technologies Corporation
CVE-2012-4870 describes multiple cross-site scripting (XSS) vulnerabilities in FreePBX 2.9 and earlier. The vulnerabilities exist in several parameters across different PHP scripts, including the 'context' parameter in panel/index_amp.php and panel/dhtml/index.php, 'clid' and 'clidname' in panel/flash/mypage.php, PATH_INFO in admin/views/freepbx_reload.php, and the 'login' parameter in recordings/index.php. These flaws are due to insufficient input validation, allowing remote attackers to inject arbitrary web script or HTML.
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 allows remote attackers to execute arbitrary JavaScript in the context of the user's browser session, potentially leading to session hijacking, credential theft, or other attacks leveraging the user's authenticated session in FreePBX.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict access to the FreePBX web interface to trusted networks, employ web application firewalls with XSS filtering, and educate users to avoid clicking on suspicious links while authenticated to the FreePBX interface.
Remediation
Patch, then assume compromise.
Upgrade to a patched version of FreePBX where these input validation issues have been addressed. Ensure all user-supplied input is properly sanitized and encoded before being rendered in the browser.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
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-2012-4870 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2012-4870 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2012-4870?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2012-4870.
- Is there a patch for CVE-2012-4870?
- Upgrade to a patched version of FreePBX where these input validation issues have been addressed. Ensure all user-supplied input is properly sanitized and encoded before being rendered in the browser.
- What products are affected by CVE-2012-4870?
- Sangoma Technologies Corporation Freepbx.
- How severe is CVE-2012-4870?
- CVE-2012-4870 has a CVSS v2 score of 4.3 (Medium) and an EPSS score of 2.0% (81st percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.