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

Exp

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: 2025-09-23 Last update: 2025-11-03 Assigner: b7efe717-a805-47cf-8e9a-921fca0ce0ce Source: b7efe717-a805-47cf-8e9a-921fca0ce0ce

Conclusion & alert: CVE-2025-1131 is rated Exploit Available (50/100): CVSS High severity, with low exploitation likelihood (EPSS 0.05%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2025-1131

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2025-1131

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-03 0.04% 0.05% +0.01%
2 2026-05-01 0.05% 0.04% -0.01%
3 2026-04-19 0.05%

Full EPSS history (8 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-1131

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.0 4.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/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 Click to expand
Attack vector (AV:L)
Attacker needs local access on the target system.
Attack complexity (AC:L)
Exploitation conditions are straightforward and stable.
Attack requirements (AT:P)
Additional preconditions must be present for exploitation.
Privileges required (PR:L)
Low privileges are required.
User interaction (UI:P)
A user has to participate (for example click/open/approve).
Vulnerable system confidentiality impact (VC:H)
High confidentiality impact on the vulnerable system.
Vulnerable system integrity impact (VI:H)
High integrity impact on the vulnerable system.
Vulnerable system availability impact (VA:H)
High availability impact on the vulnerable system.
Subsequent system confidentiality impact (SC:H)
High confidentiality impact on subsequent systems.
Subsequent system integrity impact (SI:H)
High integrity impact on subsequent systems.
Subsequent system availability impact (SA:N)
No availability impact on subsequent systems.
Exploit maturity (threat) (E:X)
Not defined: no reliable threat intelligence; scoring assumes the worst case (equivalent to Attacked).
Confidentiality requirement (CR:X)
Not defined: insufficient information; scoring treats this like High (worst case).
Integrity requirement (IR:X)
Not defined: insufficient information; scoring treats this like High (worst case).
Availability requirement (AR:X)
Not defined: insufficient information; scoring treats this like High (worst case).
Modified attack vector (MAV:X)
Not defined: scoring uses the Base Attack Vector (AV).
Modified attack complexity (MAC:X)
Not defined: scoring uses the Base Attack Complexity (AC).
Modified attack requirements (MAT:X)
Not defined: scoring uses the Base Attack Requirements (AT).
Modified privileges required (MPR:X)
Not defined: scoring uses the Base Privileges Required (PR).
Modified user interaction (MUI:X)
Not defined: scoring uses the Base User Interaction (UI).
Modified vulnerable system confidentiality impact (MVC:X)
Not defined: scoring uses the Base VC metric.
Modified vulnerable system integrity impact (MVI:X)
Not defined: scoring uses the Base VI metric.
Modified vulnerable system availability impact (MVA:X)
Not defined: scoring uses the Base VA metric.
Modified subsequent system confidentiality impact (MSC:X)
Not defined: scoring uses the Base SC metric.
Modified subsequent system integrity impact (MSI:X)
Not defined: scoring uses the Base SI metric.
Modified subsequent system availability impact (MSA:X)
Not defined: scoring uses the Base SA metric.
Safety (supplemental) (S:X)
Not evaluated.
Automatable (supplemental) (AU:X)
Not evaluated.
Recovery (supplemental) (R:X)
Not evaluated.
Value density (supplemental) (V:C)
Concentrated: a single exploit event controls rich resources (e.g., a central server).
Vulnerability response effort (supplemental) (RE:H)
High/significant effort (privileged updates, firmware/microcode, depot repair, or strong scheduling impact).
Provider urgency (supplemental) (U:AMBER)
Amber: provider rates moderate urgency.
b7efe717-a805-47cf-8e9a-921fca0ce0ce
7.8 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.8 5.9 [email protected]

Weakness enumeration for CVE-2025-1131

OS Trackers for CVE-2025-1131

vendor priority summary link
alpine high CVE-2025-1131: 1 source package rows (asterisk); 16 state rows across 5 repos (3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 0, open 16. https://security.alpinelinux.org/vuln/CVE-2025-1131
debian not yet assigned CVE-2025-1131 not yet assigned priority: Debian including 1 source packages (asterisk), 2 status rows across 2 suites (bullseye, sid): resolved 2. https://security-tracker.debian.org/tracker/CVE-2025-1131
gentoo high CVE-2025-1131: 1 GLSA(s) (202601-04), 1 atom(s) (net-misc/asterisk); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2025-1131
ubuntu medium CVE-2025-1131 medium priority: Ubuntu including 1 source packages (asterisk), 8 status rows across 8 suites (bionic, focal, jammy, noble, plucky, questing, upstream, xenial): needs-triage 5, ignored 1, not-affected 1, released 1. https://ubuntu.com/security/CVE-2025-1131

Affected software / configurations for CVE-2025-1131

Vendor Product Version Raw CPE
sangoma asterisk < 18.26.3 cpe:2.3:a:sangoma:asterisk:*:*:*:*:*:*:*:*
sangoma asterisk >= 20.0.0, < 20.15.1 cpe:2.3:a:sangoma:asterisk:*:*:*:*:*:*:*:*
sangoma asterisk >= 21.0.0, < 21.10.1 cpe:2.3:a:sangoma:asterisk:*:*:*:*:*:*:*:*
sangoma asterisk >= 22.0.0, < 22.5.1 cpe:2.3:a:sangoma:asterisk:*:*:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert1:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert1-rc1:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert10:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert11:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert12:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert13:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert14:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert15:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert2:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert3:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert4:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert5:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert6:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert7:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert8:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert8-rc1:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert8-rc2:*:*:*:*:*:*
sangoma certified_asterisk 18.9 cpe:2.3:a:sangoma:certified_asterisk:18.9:cert9:*:*:*:*:*:*
sangoma certified_asterisk 20.7 cpe:2.3:a:sangoma:certified_asterisk:20.7:cert1:*:*:*:*:*:*
sangoma certified_asterisk 20.7 cpe:2.3:a:sangoma:certified_asterisk:20.7:cert1-rc1:*:*:*:*:*:*
sangoma certified_asterisk 20.7 cpe:2.3:a:sangoma:certified_asterisk:20.7:cert1-rc2:*:*:*:*:*:*
sangoma certified_asterisk 20.7 cpe:2.3:a:sangoma:certified_asterisk:20.7:cert2:*:*:*:*:*:*
sangoma certified_asterisk 20.7 cpe:2.3:a:sangoma:certified_asterisk:20.7:cert3:*:*:*:*:*:*
sangoma certified_asterisk 20.7 cpe:2.3:a:sangoma:certified_asterisk:20.7:cert4:*:*:*:*:*:*
sangoma certified_asterisk 20.7 cpe:2.3:a:sangoma:certified_asterisk:20.7:cert5:*:*:*:*:*:*
sangoma certified_asterisk 20.7 cpe:2.3:a:sangoma:certified_asterisk:20.7:cert6:*:*:*:*:*:*

References for CVE-2025-1131

cvelogic Threat Intelligence