CVE-2024-42365 in Asterisk and 1 more product
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 becau...
Affects 2 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Asterisk | Asterisk | < 18.24.2 ≥ 19.0.0, < 20.9.2 ≥ 21.0.0, < 21.4.2 |
| Asterisk | Certified Asterisk | 13.13.0 16.8 16.8.0 18.9 20.7 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-42365 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-047700-H |
| CVSS 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 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-267: CWE-267
CWE-1220: CWE-1220
Related attack patterns (CAPEC)
CAPEC-58 Restful Privilege Elevation via CWE-267
CAPEC-634 Probe Audio and Video Peripherals via CWE-267
CAPEC-637 Collect Data from Clipboard via CWE-267
CAPEC-643 Identify Shared Files/Directories on System via CWE-267
CAPEC-648 Collect Data from Screen Capture via CWE-267
Show all 7
CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-1220
CAPEC-180 Exploiting Incorrectly Configured Access Control Security Levels via CWE-1220
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
{ "executive_summary": "A vulnerability in Asterisk versions prior to 18.24.2, 20.9.2, 21.4.2, and certified-asterisk versions 18.9-cert11 and 20.7-cert2 allows an AMI user with 'write=originate' permissions to modify all configuration files in the /etc/asterisk/ directory by curling remote files and writing them to disk.", "attack_vector_detail": "An attacker with AMI access and 'write=originate' permissions can exploit this vulnerability to download malicious configuration files from a remote server and overwrite existing configuration files in the /etc/asterisk/ directory. This can lead to unauthorized changes in the system's behavior, including potential remote code execution.", "affected_components": [ "Asterisk versions prior to 18.24.2", "Asterisk versions prior to 20.9.2", "Asterisk versions prior to 21.4.2", "Certified-Asterisk versions prior to 18.9-cert11", "Certified-Asterisk versions
Vulnerability details: 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 resu CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
Questions
What is CVE-2024-42365?
{ "executive_summary": "A vulnerability in Asterisk versions prior to 18.24.2, 20.9.2, 21.4.2, and certified-asterisk versions 18.9-cert11 and 20.7-cert2 allows an AMI user with 'write=originate' permissions to modify all configuration files in the /etc/asterisk/ directory by curling remote files and writing them to disk.", "attack_vector_detail": "An attacker with AMI access and 'write=originate' permissions can exploit this vulnerability to download malicious configuration files from a rem
What is the CVSS score for CVE-2024-42365?
CVE-2024-42365 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 7.5%.
Is CVE-2024-42365 actively exploited?
No confirmed active exploitation of CVE-2024-42365 as of 2026-09-25.
How do I remediate CVE-2024-42365?
Priority: MEDIUM. PSIRT: [email protected]
What systems are affected by CVE-2024-42365?
CVE-2024-42365 affects Asterisk Asterisk, Certified Asterisk.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Asterisk","product":"Asterisk","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.