Skip to main content
Public proof of conceptFix available

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?

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
  1. 2024-08-0817:15CVE publishedNVD

Versions per branch

CISA-ADP · NVD
Asterisk
BranchAffectedFixed in
21.x≥ 21.0.0, < 21.4.221.4.2
20.9≥ 19.0.0, < 20.9.220.9.2
20.9≥ 19.0.0, < 20.9.120.9.1
18.24< 18.24.218.24.2
21.4= 21.4.0no fix published
Asterisk certified asterisk
BranchAffectedFixed in
20.7≥ 19.0, < 20.7-cert220.7-cert2
18.9< 18.9-cert1118.9-cert11
13.13= 13.13.0no fix published
16.8= 16.8no fix published
16.8= 16.8.0no fix published
18.9= 18.9no fix published
20.7= 20.7no fix published

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.

  • asterisk
    Affected
    • = < 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

Full record on NVD

Fix

  1. Update Asterisk to 21.4.2 · 20.9.2 · 20.9.1 · 18.24.2

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
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

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?

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.

Is CVE-2024-42365 actively exploited?

A proof-of-concept exploit exists for CVE-2024-42365, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-42365?

CVE-2024-42365 has a CVSS v3 base score of 8.8 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

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

Sources for this record