CVE-2024-42365: Asterisk is an open source private branch exchange (PBX) and telephony toolkit
CVE-2024-42365 is a high-severity flaw (CVSS 7.4) affecting asterisk, certified asterisk. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- High severity
- EPSS top 8%: very likely to be exploited
- Public exploit reference
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Metasploit: Asterisk AMI Originate Authenticated RCE
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-42365?
asterisk: upgrade to 18.24.2, 20.9.1; certified asterisk: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2024-42365 being exploited?
CVE-2024-42365 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-42365 affect?
CVE-2024-42365 affects asterisk, certified asterisk. Severity is high (CVSS 7.4). 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
How urgent is CVE-2024-42365?
Priority 54/100. High severity; EPSS top 8%: very likely to be exploited; Public exploit reference
Software pages
Related CVEs
- CVE-2025-1131 HIGH 7.8 UPGRADE DOWNGRADE A local privilege escalation vulnerability exists in the safe_asterisk script included with the Asterisk toolk
- CVE-2026-23741 NONE 0.0 UPGRADE UPGRADE Asterisk is an open source private branch exchange and telephony toolkit
- CVE-2026-23740 NONE 0.0 DOWNGRADE UPGRADE Asterisk is an open source private branch exchange and telephony toolkit
- CVE-2026-23739 LOW 2.0 UPGRADE UPGRADE Asterisk is an open source private branch exchange and telephony toolkit
- CVE-2026-23738 LOW 3.5 UPGRADE UPGRADE Asterisk is an open source private branch exchange and telephony toolkit