# CVE-2025-1131: Asterisk Unsafe Shell Sourcing in safe_asterisk Leads to Local Privilege Escalation

- Severity: High 7.0 (CVSS:4.0, scored by Gridware) `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/V:C/RE:H/U:Amber`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-23T04:31:02.784Z
- Modified: 2026-10-19T16:10:00.260Z
- Weaknesses: CWE-427
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: Gridware

## 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.

(As written by CVE List.)

## Affected

- Asterisk Asterisk: Asterisk <=18.26.2; Asterisk <= 20.15.0; Asterisk <= 21.10.0; Asterisk <= 22.5.0
- sangoma asterisk: before 18.26.3; from 20.0.0 before 20.15.1; from 21.0.0 before 21.10.1; from 22.0.0 before 22.5.1
- sangoma certified_asterisk: 18.9; 20.7

## Every score

- Gridware: CVSS:4.0 7.0 High `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/V:C/RE:H/U:Amber`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## 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>

## Sources

- CVE List: [CVE-2025-1131](https://www.cve.org/CVERecord?id=CVE-2025-1131), CVE Terms of Use, modified 2026-02-26
- NVD: [CVE-2025-1131](https://nvd.nist.gov/vuln/detail/CVE-2025-1131), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-1131 · Whole record: https://cve.day/CVE-2025-1131.json · Rebuilt by cve.day 2026-11-25T22:59:05.025Z
