{"answers":{"affected":"It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-42365 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2024-42365 is a high-severity vulnerability in asterisk, published on 8 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-42365 and fix it if it is affected.\n\nWhat it is: CVE-2024-42365 is a high-severity vulnerability in asterisk, published on 8 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-42365 exists.\n\nAffected product: asterisk. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-42365/ (Markdown: https://insights.sbomify.com/CVE-2024-42365/index.md)","id":"CVE-2024-42365","markdown":"https://insights.sbomify.com/CVE-2024-42365/index.md","name":"CVE-2024-42365","record":{"aliases":["ALPINE-CVE-2024-42365","DEBIAN-CVE-2024-42365","GHSA-c4cg-9275-6w44","UBUNTU-CVE-2024-42365"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Asterisk PBX","requires_auth":"low_privilege","summary":"An Asterisk AMI user with originate permissions can modify configuration files to achieve remote code execution and privilege escalation.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"asterisk","vendor":"asterisk"},{"product":"certified_asterisk","vendor":"asterisk"}],"cvss":{"score":7.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-267","name":"Privilege Defined With Unsafe Actions"},{"id":"CWE-1220","name":"Insufficient Granularity of Access Control"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2024-08-08","github_poc":1,"max_poc_stars":0,"metasploit":1,"nuclei":0,"refs":[{"date":"2024-08-08","kind":"metasploit","ref":"exploit/linux/misc/asterisk_ami_originate_auth_rce","stars":null,"title":"Asterisk AMI Originate Authenticated RCE"},{"date":"2026-08-30T16:32:16Z","kind":"github_poc","ref":"https://github.com/Raajgupta01/htb-machine-ringdown","stars":0,"title":"Detailed design \u0026 exploitation writeup for Ringdown—an original Debian/Asterisk vulnerable machine featuring CVE-2024-42365 (AMI), PJSIP pre-hash cracking, and Fail2ban POSIX ACL privilege escalation."}],"tier":"weaponised"},"has_fix":true,"headline":"Asterisk allows `Write=originate` as sufficient permissions for code execution / `System()` dialplan","id":"CVE-2024-42365","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"privilege_escalation","year":"2024"},"n_packages":0,"n_references":8,"next":{"headline":"VR Overlay RCE","id":"CVE-2024-42366"},"packages":[],"prev":{"headline":"homepage DNS rebinding vulnerability (GHSL-2024-096)","id":"CVE-2024-42364"},"products":["asterisk"],"published":"2024-08-08","related":[{"cvss_score":10,"headline":"Null dereference in n/a","id":"CVE-2007-2488","kev_date_added":null,"published":"2007-05-07"},{"cvss_score":9.3,"headline":"Weak cryptography in n/a","id":"CVE-2008-1390","kev_date_added":null,"published":"2008-03-24"},{"cvss_score":9.3,"headline":"Memory corruption in n/a","id":"CVE-2007-3762","kev_date_added":null,"published":"2007-07-18"},{"cvss_score":8.8,"headline":"Auth bypass in n/a","id":"CVE-2008-1332","kev_date_added":null,"published":"2008-03-20"},{"cvss_score":7.8,"headline":"Denial of service in n/a","id":"CVE-2008-3263","kev_date_added":null,"published":"2008-07-22"},{"cvss_score":7.8,"headline":"Null dereference in n/a","id":"CVE-2007-2294","kev_date_added":null,"published":"2007-04-26"},{"cvss_score":7.8,"headline":"Denial of service in n/a","id":"CVE-2007-2297","kev_date_added":null,"published":"2007-04-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["asterisk"]},"summary":"An Asterisk AMI user with originate permissions can modify configuration files to achieve remote code execution and privilege escalation.","url":"https://insights.sbomify.com/CVE-2024-42365/"}