CVE-2024-42365

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

HIGH
8.8
CVSS Score
Published: August 8, 2024 at 04:29 PM UTC
Updated: June 17, 2026 at 07:49 AM UTC
2 products affected across 1 vendorAsteriskCertified Asterisk

Using asterisk by asterisk?

Get instant alerts when new vulnerabilities affect asterisk - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 5%
SSVC
PoC

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 18.24.2v < 18.9-cert11v < 20.7-cert2v < 20.9.2v < 21.4.219.0.0 ≤ v < 20.9.119.0.0 ≤ v < 20.9.221.0.0 ≤ v < 21.4.219.0.021.0.021.4.0
Affected range stops below 18.24.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 18.9-cert11, so it looks safe — our inference, not a vendor statement
Affected range stops below 20.7-cert2, so it looks safe — our inference, not a vendor statement
Affected range stops below 20.9.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 20.9.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 21.4.2, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-267CWE-1220NVD-CWE-Other

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card