Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2024-42365: Asterisk is an open source private branch exchange (PBX) and telephony toolkit

54
This month
HIGH 7.4UPGRADEDOWNGRADE

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.

Risk facts

CVSS score7.4 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededLow
User interactionNone
EPSS exploit chance4.7% (top 8%)
CISA exploited listNo
WeaknessCWE-267, CWE-1220
Published2024-08-08
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: asterisk

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

asterisk asterisk UPGRADE
Affected: < 18.24.2 · >= 19.0.0 and < 20.9.1 · 21.4.0
Fixed in: 18.24.2, 20.9.1
Safe to downgrade to: a release before 19.0.0
1. Check installed version
apt-cache policy asterisk || rpm -q asterisk || asterisk --version
2. UPGRADE to 18.24.2 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade asterisk
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade asterisk
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 19.0.0 (Debian / Ubuntu)
apt-cache madison asterisk sudo apt install asterisk=<VERSION_BEFORE_19.0.0> sudo apt-mark hold asterisk
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list asterisk sudo dnf downgrade asterisk-<VERSION_BEFORE_19.0.0> sudo dnf versionlock add asterisk
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
asterisk certified asterisk DOWNGRADE
Affected: 13.13.0 · 13.13.0 cert1 · 13.13.0 cert1-rc1 · 13.13.0 cert1-rc2 · 13.13.0 cert1-rc3 · 13.13.0 cert1-rc4 · 13.13.0 cert2 · 13.13.0 cert3
Fixed in: no fixed release known
Safe to downgrade to: a release before 13.13.0
1. Check installed version
apt-cache policy certified-asterisk || rpm -q certified-asterisk || certified-asterisk --version
2. No fixed release: DOWNGRADE to a release before 13.13.0 (Debian / Ubuntu)
apt-cache madison certified-asterisk sudo apt install certified-asterisk=<VERSION_BEFORE_13.13.0> sudo apt-mark hold certified-asterisk
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list certified-asterisk sudo dnf downgrade certified-asterisk-<VERSION_BEFORE_13.13.0> sudo dnf versionlock add certified-asterisk
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
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

curl vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.