← CVE Intelligence

CVE-2025-1131

Asterisk Unsafe Shell Sourcing in safe_asterisk Leads to Local Privilege Escalation PUBLISHED

Description (CNA)

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.

Affected (CNA)

Vendor / productVersions
Asterisk / Asteriskaffected Asterisk <=18.26.2; affected Asterisk <= 20.15.0; affected Asterisk <= 21.10.0; affected Asterisk <= 22.5.0

CWE

CWE-427

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.

CVE

No English description supplied.