CVE 7 HIGH

Asterisk Unsafe Shell Sourcing in safe_asterisk Leads to Local Privilege Escalation_CVE-2025-1131

7 / 10
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/V:C/RE:H/U:Amber

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.

Basic Information

ID CVE-2025-1131
Source Gridware
Published Sep 23, 2025 at 04:31

Affected Product

Vendor Asterisk
Product Asterisk
Version Asterisk <=18.26.2
Affected Versions Asterisk Asterisk Asterisk <=18.26.2
Asterisk Asterisk Asterisk <= 20.15.0
Asterisk Asterisk Asterisk <= 21.10.0
Asterisk Asterisk Asterisk <= 22.5.0

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.