CVE-2024-42365
A public proof of concept exists; no exploitation attested.
- Published2024-08-08
- Fixed in21.4.2 · 20.9.2 · 20.9.1 · 18.24.2
- WeaknessCWE-1220 · CWE-267
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2024-08-0817:15CVE publishedNVD
Versions per branch
CISA-ADP · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 21.x | ≥ 21.0.0, < 21.4.2 | 21.4.2 | CISA-ADP |
| 20.9 | ≥ 19.0.0, < 20.9.2 | 20.9.2 | CISA-ADP |
| 20.9 | ≥ 19.0.0, < 20.9.1 | 20.9.1 | NVD |
| 18.24 | < 18.24.2 | 18.24.2 | NVD · CISA-ADP |
| 21.4 | = 21.4.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 20.7 | ≥ 19.0, < 20.7-cert2 | 20.7-cert2 | CISA-ADP |
| 18.9 | < 18.9-cert11 | 18.9-cert11 | CISA-ADP |
| 13.13 | = 13.13.0 | no fix published | NVD |
| 16.8 | = 16.8 | no fix published | NVD |
| 16.8 | = 16.8.0 | no fix published | NVD |
| 18.9 | = 18.9 | no fix published | NVD |
| 20.7 | = 20.7 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- asteriskAffected
- = < 18.24.2no fix stated
- = >= 19.0.0, < 20.9.2no fix stated
- = >= 21.0.0, < 21.4.2no fix stated
- = < 18.9-cert11no fix stated
- = >= 19.0, < 20.7-cert2no fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-08-08
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- asteriskUbuntu:Pro:16.04:LTSall versions · no fixed version listed
- asteriskUbuntu:26.10all versions · no fixed version listed
- asteriskUbuntu:26.04:LTSall versions · no fixed version listed
- asteriskUbuntu:25.10all versions · no fixed version listed
- asteriskUbuntu:24.04:LTSall versions · no fixed version listed
- asteriskUbuntu:22.04:LTSall versions · no fixed version listed
- asteriskUbuntu:20.04:LTSall versions · no fixed version listed
- asteriskUbuntu:18.04:LTSall versions · no fixed version listed
11 more package ranges on OSV.dev
Vendor advisories
- CVE-2024-42365 Red Hat Product Security
asterisk: Write=originate, is sufficient permissions for code execution / System dialplan
Fix
- Update Asterisk to 21.4.2 · 20.9.2 · 20.9.1 · 18.24.2
Advisories and patches
- github.comPatch
- github.comPatch
- github.comPatch
- github.comPatch
- github.comPatch
- github.comVendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2024-08-08
- PoC-in-GitHub1 repository, unverifiedknown since 2026-11-01Raajgupta01/htb-machine-ringdown
- Metasploit modules
- 1 moduleexploit/linux/misc/asterisk_ami_originate_auth_rcerank: greatModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2024-08-08
- CNACVSS 3.17.4known since 2026-10-23
- NVDCVSS 3.18.8read 2026-10-23
- CNAweakness (CWE)CWE-1220, CWE-267known since 2026-10-23
- FIRST EPSSEPSS score4.7 %2026-11-17
- PoC-in-GitHubproof of concept1known since 2026-11-01
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
Identifiers
- EUVD-2024-39574same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- exploit/linux/misc/asterisk_ami_originate_auth_rceexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
- DLA-3925-1advisory covering several CVEsDebian · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Published
- 2024-08-08
- Last Modified
- 2026-06-17
- NVD status
- Modified
Frequently asked questions
What is CVE-2024-42365?
Is CVE-2024-42365 actively exploited?
What is the CVSS score for CVE-2024-42365?
Running asterisk? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- Metasploit Framework · BSD-3-Clause
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0