CVE-2025-1131
published high CVSS 4.0 · 7.0Asterisk Unsafe Shell Sourcing in safe_asterisk Leads to Local Privilege Escalation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Asterisk | — | AsteriskAsterisk <=18.26.2 · Asterisk <= 20.15.0 · Asterisk <= 21.10.0 · Asterisk <= 22.5.0 · Other versions: unaffected · Platforms: Linux, MacOS | Affected | Not stated | Gridware |
| Debian | bullseye | asterisk | Advisory build | 1:16.28.0~dfsg-0+deb11u8 | DLA-4326-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- Gridware · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Asterisk | Asterisk | Asterisk <=18.26.2 (affected · custom)Asterisk <= 20.15.0 (affected · custom)Asterisk <= 21.10.0 (affected · custom)Asterisk <= 22.5.0 (affected · custom)Default: unaffected | Gridware · cna |
Weaknesses
1- CWE-427 CWE-427 Uncontrolled Search Path Element
References
2Provider assertions
3Gridware · cna
Asterisk Unsafe Shell Sourcing in safe_asterisk Leads to Local Privilege Escalation
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5e4221eb70446d7f650e1ebdad07bde7fd28348fcac0e7ccba8f53b58c3768e9
- Ingested
- 23 Sep 2026, 08:38:35 UTC
- Source record
- Official CVE record