CVE-2025-1131 Details
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.
A local privilege escalation vulnerability has been identified in the safe_asterisk script of the Asterisk toolkit package, affecting versions through 18.26.2, 20.15.0, 21.10.0, 22.5.0, 18.9-cert15, and 20.7-cert6. The vulnerability arises because the script, when executed to start Asterisk in non-systemd environments, runs all .sh files in the /etc/asterisk/startup.d/ directory as root. This occurs without checking the files' ownership or permissions. Non-root users with legitimate write access to /etc/asterisk can exploit this by placing malicious scripts in the startup.d directory, which will be executed with root privileges when Asterisk is restarted.
Users can upgrade to Asterisk versions 18.26.3, 20.15.1, 21.10.1, 22.5.1, 18.9-cert16, or 20.7-cert7 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 24, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://lists.debian.org/debian-lts-announce/2025/10/msg00006.html | CVE | |
| https://github.com/asterisk/asterisk/security/advisories/GHSA-v9q8-9j8m-5xwp | Gridware | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-427 | Uncontrolled Search Path Element | Gridware |
Affected Products
| Product | Versions |
|---|---|
| sangoma asterisk | < 18.26.3 >= 20.0.0, < 20.15.1 >= 21.0.0, < 21.10.1 >= 22.0.0, < 22.5.1 |
CPE
Remediation
| |
| sangoma certified asterisk | 18.9 cert1 18.9 cert1-rc1 18.9 cert10 18.9 cert11 18.9 cert12 18.9 cert13 18.9 cert14 18.9 cert15 18.9 cert2 18.9 cert3 18.9 cert4 18.9 cert5 18.9 cert6 18.9 cert7 18.9 cert8 18.9 cert8-rc1 18.9 cert8-rc2 18.9 cert9 20.7 cert1 20.7 cert1-rc1 20.7 cert1-rc2 20.7 cert2 20.7 cert3 20.7 cert4 20.7 cert5 20.7 cert6 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | Gridware |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Oct 8, 2025 | Initial Analysis | [email protected] |
| Sep 23, 2025 | New CVE Received | Gridware |