{"id":"CVE-2025-1131","published":"2025-09-23T04:31:02Z","modified":"2026-02-26T17:48:19Z","title":"Asterisk Unsafe Shell Sourcing in safe_asterisk Leads to Local Privilege Escalation","vendor":"Asterisk","product":"Asterisk","tier":"tail","description":{"text":"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.\n\n\nNon-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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00218,"percentile":0.12479,"provenance":"source"},"cwes":[{"id":"CWE-427","name":"Uncontrolled Search Path Element"}],"references":[{"url":"https://github.com/asterisk/asterisk/security/advisories/GHSA-v9q8-9j8m-5xwp","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00006.html","tags":[]}],"priority":{"score":7.4,"factors":[{"name":"EPSS percentile","points":2.5},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"asterisk","affectedVersions":[{"vendor":"Asterisk","product":"Asterisk","versions":["Asterisk <=18.26.2","Asterisk <= 20.15.0","Asterisk <= 21.10.0","Asterisk <= 22.5.0"]}],"capec":[{"id":"CAPEC-233","name":"Privilege Escalation"}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-09-24T03:55:15.207908Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-30828","exploited":false,"provenance":"source"}}