SOC status:Duty analyst on shift

UK Cyber Defence
VulnerabilityModified

CVE-2025-1131

A local privilege escalation vulnerability exists in the safe_asterisk script included with the Asterisk toolkit package.

HIGH 7.0EPSS 0.21%

Does this matter?

High impact if exploited, but EPSS currently rates exploitation as unlikely (0.21%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.

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.

CVSS 4.0
7.0 HIGHCVSS: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/M
EPSS
0.21% probability · 12th percentile
CISA KEV
Not listed
Weakness
CWE-427
Affected
sangoma/asterisk · sangoma/certified asterisk
Source
b7efe717-a805-47cf-8e9a-921fca0ce0ce

Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.