CVE-2024-42365
Asterisk ≤ 18.24.2
Raw vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:LCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2024-42365 is a high-severity Privilege Defined With Unsafe Actions (CWE-267) vulnerability in Asterisk. Its CVSS base score is 7.4 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Additional Cloud Roles (T1098.003); ranked in the top 8% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
The strongest mitigations our analysis identified map to AC-24 (Access Control Decisions) and AC-3 (Access Enforcement) — see the control section below for these in your framework.
Deeper analysis AI-assisted summary
Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.
Asterisk, an open source PBX and telephony toolkit, contains an improper access control flaw in its Asterisk Manager Interface (AMI) that affects all versions prior to 18.24.2, 20.9.2, 21.4.2 and the corresponding certified-asterisk releases 18.9-cert11 and 20.7-cert2. An authenticated AMI user granted the originate write permission can leverage the CURL() dialplan function together with the SET application’s FILE() function to retrieve remote content and overwrite or append to any file under /etc/asterisk/, bypassing intended configuration restrictions.
An attacker with a low-privileged AMI account can therefore escalate privileges, inject arbitrary dialplan or module configuration, achieve remote code execution, or perform blind server-side request forgery against arbitrary protocols by writing chosen payloads into Asterisk configuration files that are subsequently loaded by the server.
The referenced commits and updated releases (18.24.2, 20.9.2, 21.4.2, 18.9-cert11, 20.7-cert2) contain the corrective changes that restrict the ability of originate-authorized AMI users to write arbitrary files via these functions. The EPSS score for this CVE rose from a low baseline to a peak of 0.4971, indicating that exploitation interest increased after public disclosure.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-39574
Vulnerability Data
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.…
more
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
- 13 hardening rules · 7 OS baselines
V16.4.2V13.2.2V8.4.2V11.7.1
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Least privilege explicitly demands that only the minimum necessary accesses are granted, eliminating the broad permissions that define this weakness.
AC-24 requires access decisions to be applied precisely and unambiguously to every request, structurally blocking insufficiently granular policies.
AC-3 requires enforcement of authorizations according to policy, directly compelling sufficiently granular rules so broad allowances cannot be introduced.
AC-4 enforces approved information flows with explicit source/destination rules, preventing overly coarse access policies from being deployed.
Separation of duties splits high-risk actions across multiple privileges so that no single privilege can perform the full unsafe sequence.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Defining and enforcing least-privilege permissions directly reduces the chance that a privilege permits unintended unsafe actions.
PR.IR-01's segmentation + zero-trust rules directly enforce minimum-necessary access at network boundaries, removing most instances of overly broad policy; CWE-1220 can still exist in application-layer or intra-segment controls that this single outcome does not address.
PR.PS-06's general SDLC practices can surface granularity issues during design/review (partial prevention) but do not specifically target access-control policy breadth, so they remove only part of CWE-1220's risk.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
A.8.29's programme (code review, penetration testing, vulnerability scanning) reaches CWE-267 through both source review of role/privilege definitions and runtime probing of unsafe actions; the remainder is subtle intent-vs-implementation gaps that require deeper architectural analysis beyond what standard testing catches.
A.8.3 mandates configuration mechanisms, per-user/group rights, isolation, and dynamic access management that directly supply the missing granularity for this weakness; well-implemented, the flaw (over-broad policy) stops being present in the product, with only a bounded remainder (e.g. certain physical or non-dynamic edge cases) left over.
Training developers about least-privilege and safe privilege design reduces some instances of CWE-267, but the weakness is a design/implementation defect in how privileges are defined, and human practice is fallible — consistent with the A.6.3 -> CWE-598 partial anchor on the same clause.
Secure coding practices can avoid unsafe privilege implementations but do not address privileges already defined.
A.8.8's reach is DISCLOSURE — it sees only instances carrying a vendor-published flaw. CWE-267 does surface as CVEs (the observed examples show this), so a minority of instances are found through published advisories and scanning, but the bulk of the class lives in custom privilege/role definitions that never receive a CVE assignment.
Hardening callouts derived
Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over our cross-walk; rows rated `none` are excluded, and each rule says how its mapping was checked.
Definition changed on 29 October 2026. Until then this section listed every rule rated above none, partial included. From that date it lists rules whose mapping is rated full or mostly and checked at llm_unverified or higher; partial mappings show when you ask.
No rule maps to these weaknesses at full or mostly. Tick the option above to see the partial mappings.
Oracle Linux 9 (1 partial rule)
- V-271725 OL 9 must require users to provide a password for privilege escalation. blocks CWE-267
Ubuntu 22.04 (3 partial rules)
- V-260470 Ubuntu 22.04 LTS, when booted, must require authentication upon booting into single-user and maintenance modes. blocks CWE-267
- V-260529 Ubuntu 22.04 LTS must be configured so that remote X connections are disabled, unless to fulfill documented and validated mission requirements. blocks CWE-267
- V-260542 Ubuntu 22.04 LTS must prevent direct login into the root account. blocks CWE-267
Windows Server 2016 (1 partial rule)
- V-225025 Local accounts with blank passwords must be restricted to prevent access from the network. blocks CWE-1220