CVE-2025-1131
HIGH 7.0CVSS 4.0A 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.
- Published
- 23 Sep 2025
- Last modified
- 19 Oct 2026
- Assigned by
- b7efe717-a805-47cf-8e9a-921fca0ce0ce
- NVD status
- Modified
- Weakness
- CWE-427
- Sources
- NVDJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | b7efe717-a805-47cf-8e9a-921fca0ce0ce (Secondary) | CVSS 4.0 | HIGH 7.0 | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:C/RE:H/U:Amber |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sangoma | asteriskcpe:2.3:a:sangoma:asterisk:*:*:*:*:*:*:*:* |
< 18.26.3 | 18.26.3 |
| NVD | sangoma | asteriskcpe:2.3:a:sangoma:asterisk:*:*:*:*:*:*:*:* |
>= 20.0.0, < 20.15.1 | 20.15.1 |
| NVD | sangoma | asteriskcpe:2.3:a:sangoma:asterisk:*:*:*:*:*:*:*:* |
>= 21.0.0, < 21.10.1 | 21.10.1 |
| NVD | sangoma | asteriskcpe:2.3:a:sangoma:asterisk:*:*:*:*:*:*:*:* |
>= 22.0.0, < 22.5.1 | 22.5.1 |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert1:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert1-rc1:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert10:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert11:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert12:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert13:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert14:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert15:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert2:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert3:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert4:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert5:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert6:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert7:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert8:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert8-rc1:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert8-rc2:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:18.9:cert9:*:*:*:*:*:* |
= 18.9 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:20.7:cert1:*:*:*:*:*:* |
= 20.7 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:20.7:cert1-rc1:*:*:*:*:*:* |
= 20.7 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:20.7:cert1-rc2:*:*:*:*:*:* |
= 20.7 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:20.7:cert2:*:*:*:*:*:* |
= 20.7 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:20.7:cert3:*:*:*:*:*:* |
= 20.7 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:20.7:cert4:*:*:*:*:*:* |
= 20.7 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:20.7:cert5:*:*:*:*:*:* |
= 20.7 | |
| NVD | sangoma | certified_asteriskcpe:2.3:a:sangoma:certified_asterisk:20.7:cert6:*:*:*:*:*:* |
= 20.7 |
References
- https://github.com/asterisk/asterisk/security/advisories/GHSA-v9q8-9j8m-5xwp · Exploit, Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2025/10/msg00006.html
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 23 Sep 2025)