Vulnerabilities · 2025 · Sangoma
CVE-2025-1131
Sangoma Asterisk vulnerability
A local privilege escalation vulnerability exists in the safe_asterisk script included with the Asterisk toolkit package. When Asterisk is started via this script (common in SysV init or FreePBX environments), it sources all .sh files located in /etc/asterisk/startup.d/ as root, without validating ownership or permissions. Non-root users with legitimate write access to /etc/asterisk can exploit this behaviour by placing malicious scripts in the startup.d directory, which will then execute with root privileges upon service restart.
Affected products
Asterisk, Certified Asterisk. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Sangoma Asterisk runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
More vulnerabilities in Sangoma products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.