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.
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.
Metrics
Affected Vendors & Products
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Tue, 23 Sep 2025 16:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
First Time appeared |
Asterisk
Asterisk asterisk |
|
Vendors & Products |
Asterisk
Asterisk asterisk |
Tue, 23 Sep 2025 04:45:00 +0000
Type | Values Removed | Values Added |
---|---|---|
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. | |
Title | Asterisk Unsafe Shell Sourcing in safe_asterisk Leads to Local Privilege Escalation | |
Weaknesses | CWE-427 | |
References |
| |
Metrics |
cvssV4_0
|

Status: PUBLISHED
Assigner: Gridware
Published:
Updated: 2025-09-23T04:31:02.784Z
Reserved: 2025-02-08T04:11:43.201Z
Link: CVE-2025-1131

No data.

Status : Received
Published: 2025-09-23T05:15:35.603
Modified: 2025-09-23T05:15:35.603
Link: CVE-2025-1131

No data.

Updated: 2025-09-23T16:03:28Z