{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-1131","id":"CVE-2025-1131","title":"Asterisk Unsafe Shell Sourcing in safe_asterisk Leads to Local Privilege Escalation","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.\n\n\nNon-root users with legitimate write access to /etc/asterisk can exploit ","descriptionLong":"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.","published":"2025-09-23T04:31:02.784Z","updated":"2026-10-28T02:31:00.772304108Z","reserved":"2025-02-08T04:11:43.201Z","status":"Modified","rejected":false,"assigner":"Gridware","metric":{"version":"4.0","score":7,"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","rating":"high","source":"Gridware"},"metrics":[{"version":"4.0","score":7,"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","rating":"high","source":"Gridware"},{"version":"4.0","score":7,"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/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","rating":"high","source":"b7efe717-a805-47cf-8e9a-921fca0ce0ce"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Asterisk"],"affectedProducts":[{"vendor":"Asterisk","product":"Asterisk","defaultStatus":"unaffected","versions":[{"status":"affected","version":"Asterisk <=18.26.2","versionType":"custom"},{"status":"affected","version":"Asterisk <= 20.15.0","versionType":"custom"},{"status":"affected","version":"Asterisk <= 21.10.0","versionType":"custom"},{"status":"affected","version":"Asterisk <= 22.5.0","versionType":"custom"}],"platforms":["Linux","MacOS"]}],"packages":[],"cwes":["CWE-427"],"aliases":["GHSA-v9q8-9j8m-5xwp"],"references":[{"url":"https://github.com/asterisk/asterisk/security/advisories/GHSA-v9q8-9j8m-5xwp","tags":["Exploit","Vendor Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00006.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1131.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1131","tags":["advisory"]},{"url":"https://github.com/asterisk/asterisk","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00218,"epssPercentile":0.12323,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-1131","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1131","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-1131","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-1131","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}