Skip to content
OpenAdvisories
High · 7.4 Public exploit CVE-2024-42365 EUVD-2024-39574

Asterisk allows `Write=originate` as sufficient permissions for code execution / `System()` dialplan

Published Aug 8, 2024 · Updated Nov 3, 2025 · Assigned by GitHub_M

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

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

References