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/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:AmberSangoma Asterisk
APPSangoma< 18.26.320.0.0 – 20.15.1 (bez)21.0.0 – 21.10.1 (bez)22.0.0 – 22.5.1 (bez)Sangoma Certified Asterisk
APPSangoma18.920.7
Related vulnerabilities
Insecure Permissions w Sangoma Asterisk v22 — tworzenie plików poza katalogiem aplikacji
PJSIP is a free and open source multimedia communication library written in C language implementing standard b...
Asterisk is an open source private branch exchange and telephony toolkit. Prior to versions 20.15.2, 21.10.2, ...
Asterisk is an open-source private branch exchange (PBX). Prior to versions 18.26.2, 20.14.1, 21.9.1, and 22.4...
Asterisk is an open source private branch exchange and telephony toolkit. In Asterisk prior to versions 18.20....