Vulnerability in Asterisk
CVE-2025-1131
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.002 (10.4th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 10th percentile — 10.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.002 · newest: 0.002 · change: -0.000
Affected products
- Asterisk — versions Asterisk <=18.26.2, Asterisk <= 20.15.0, Asterisk <= 21.10.0
- Sangoma Asterisk
- Sangoma Certified Asterisk — versions 18.9, 20.7
Weakness classification (CWE)
Public proof-of-concept exploits
References
- b7efe717-a805-47cf-8e9a-921fca0ce0ce (Exploit, Vendor Advisory)
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2025-1131?
- CVE-2025-1131 is a high-severity vulnerability in Asterisk, classified under Uncontrolled Search Path Element. CVSS score: 7.8/10. Published 2025-09-23.
- How severe is CVE-2025-1131?
- High severity. CVSS v3 base score is 7.8 out of 10.
- Is CVE-2025-1131 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.