CVE-2025-1131
Published: Sep 23, 2025
Modified: Feb 26, 2026
Description
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.
| Vendor | Product | Versions |
|---|---|---|
Asterisk | Asterisk | affected Asterisk <=18.26.2affected Asterisk <= 20.15.0affected Asterisk <= 21.10.0affected Asterisk <= 22.5.0 |
Weaknesses (CWE)
Security Training
Train your team to recognize and prevent security threats with our comprehensive security awareness program.
Start TrainingVulnerability Scanning
Discover vulnerabilities in your applications and infrastructure before attackers do.
Scan Now