| Package | Affected versions | Patched versions |
|---|---|---|
| asterisk | ≥ 20.0.0, < 20.15.1≥ 21.0.0, < 21.10.1≥ 22.0.0, < 22.5.1< 18.26.3 | 20.15.121.10.122.5.118.26.3 |
| certified asterisk | = 18.9= 20.7 |
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.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free