Description
Asterisk is an open source private branch exchange (PBX) and telephony toolkit. Prior to asterisk versions 18.24.2, 20.9.2, and 21.4.2 and certified-asterisk versions 18.9-cert11 and 20.7-cert2, an AMI user with `write=originate` may change all configuration files in the `/etc/asterisk/` directory. This occurs because they are able to curl remote files and write them to disk, but are also able to append to existing files using the `FILE` function inside the `SET` application. This issue may result in privilege escalation, remote code execution and/or blind server-side request forgery with arbitrary protocol. Asterisk versions 18.24.2, 20.9.2, and 21.4.2 and certified-asterisk versions 18.9-cert11 and 20.7-cert2 contain a fix for this issue.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| asterisk | asterisk | < 18.24.2, >= 19.0.0, < 20.9.2, >= 21.0.0, < 21.4.2, < 18.9-cert11, >= 19.0, < 20.7-cert2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | asterisk | 1:20.9.3~dfsg+~cs6.14.60671435-1 | — |
| Debian 11 | asterisk | 1:16.28.0~dfsg-0+deb11u5 | DLA-3925-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | asterisk | No fix yet | — |
| Ubuntu 26.04 LTS | asterisk | No fix yet | — |
| Ubuntu 25.10 | asterisk | No fix yet | — |
| Ubuntu 24.04 LTS | asterisk | No fix yet | — |
| Ubuntu 22.04 LTS | asterisk | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | asterisk | No fix yet | — |
| Ubuntu 18.04 LTS | asterisk | No fix yet | — |
| Ubuntu Pro 16.04 LTS | asterisk | No fix yet | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | asterisk | 20.9.2-r0 | — |
| Alpine v3.23 | asterisk | 20.9.2-r0 | — |
| Alpine v3.22 | asterisk | 20.9.2-r0 | — |
| Alpine v3.21 | asterisk | 20.9.2-r0 | — |
| Alpine v3.20 | asterisk | 20.9.2-r0 | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | asterisk | 20.9.3-r0 | — |
| Alpine v3.18 | asterisk | 18.24.3-r0 | — |
| Alpine v3.17 | asterisk | 18.24.3-r0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Asterisk AMI Originate Authenticated RCE
exploit/linux/misc/asterisk_ami_originate_auth_rce
GitHub 1 repository
-
Raajgupta01/htb-machine-ringdown ★ 0 · Aug 30, 2026
Detailed design & exploitation writeup for Ringdown—an original Debian/Asterisk vulnerable machine featuring CVE-2024-42365 (AMI), PJSIP pre-hash cracking, and Fail2ban POSIX ACL privilege escalation.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 3
- WID-SEC-2024-1805 Asterisk: Schwachstelle ermöglicht Privilegienerweiterung und Codeausführung BSI CERT-Bund (WID) · Apr 12, 2026
- DLA-3925-1 asterisk - security update Debian Security (DSA / DLA) · Mar 9, 2026
- NCSC-2024-0330 Kwetsbaarheid verholpen in Asterisk NCSC-NL (Netherlands) · Aug 12, 2024
References
- https://github.com/asterisk/asterisk/security/advisories/GHSA-c4cg-9275-6w44
- https://github.com/asterisk/asterisk/commit/42a2f4ccfa2c7062a15063e765916b3332e34cc4
- https://github.com/asterisk/asterisk/commit/7a0090325bfa9d778a39ae5f7d0a98109e4651c8
- https://github.com/asterisk/asterisk/commit/b4063bf756272254b160b6d1bd6e9a3f8e16cc71
- https://github.com/asterisk/asterisk/commit/bbe68db10ab8a80c29db383e4dfe14f6eafaf993
- https://github.com/asterisk/asterisk/commit/faddd99f2b9408b524e5eb8a01589fe1fa282df2
- https://github.com/asterisk/asterisk/blob/14367caaf7241df1eceea7c45c5b261989c2c6db/main/manager.c#L6426
- https://github.com/asterisk/asterisk/blob/7d28165cb1b2d02d66e8693bd3fe23ee72fc55d8/main/manager.c#L6426