CVE Catalog

CVE-2025-1131

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.22%

11th percentile - higher than 11% of all known CVEs

Summary

The safe_asterisk script included with the Asterisk toolkit sources all .sh files in /etc/asterisk/startup.d/ as root without validating ownership or permissions. Non-root users with legitimate write access to /etc/asterisk can place malicious scripts in startup.d that execute with root privileges upon service restart.

Risk Assessment

A local attacker can escalate privileges to root, leading to full compromise of the Asterisk host. This particularly affects SysV init and FreePBX environments where the script is commonly used.

Recommendation

Restrict write access to /etc/asterisk and the startup.d directory to root only, and audit startup.d for unauthorized scripts. Consider starting Asterisk without safe_asterisk or update the package to a patched version.

Other vulnerabilities in Asterisk

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS