{"id":"CVE-2024-42365","aliases":["ALPINE-CVE-2024-42365","DEBIAN-CVE-2024-42365","DLA-3925-1","EUVD-2024-39574","GHSA-c4cg-9275-6w44","UBUNTU-CVE-2024-42365"],"status":"published","title":"Asterisk allows `Write=originate` as sufficient permissions for code execution / `System()` dialplan","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.","severity":{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.04703,"percentile":0.91875,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-1220","CWE-267"],"published":"2024-08-08T16:29:07Z","modified":"2026-11-02T12:02:46Z","exploits":[{"source":"metasploit","id":"exploit/linux/misc/asterisk_ami_originate_auth_rce","title":"Asterisk AMI Originate Authenticated RCE","type":"exploit","platform":"Unix","date":"2024-08-08","verified":true,"url":"https://www.rapid7.com/db/modules/exploit/linux/misc/asterisk_ami_originate_auth_rce"},{"source":"pocgithub","id":"Raajgupta01/htb-machine-ringdown","title":"Raajgupta01/htb-machine-ringdown","date":"2026-08-30","url":"https://github.com/Raajgupta01/htb-machine-ringdown"}],"fixes":[{"ecosystem":"Alpine:v3.17","package":"asterisk","fixed_in":["18.24.3-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"asterisk","fixed_in":["18.24.3-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"asterisk","fixed_in":["20.9.3-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"asterisk","fixed_in":["20.9.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"asterisk","fixed_in":["20.9.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"asterisk","fixed_in":["20.9.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"asterisk","fixed_in":["20.9.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"asterisk","fixed_in":["20.9.2-r0"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"asterisk","fixed_in":["1:20.9.3~dfsg+~cs6.14.60671435-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.17","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"19.0.0"},{"fixed":"18.24.3-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"19.0.0"},{"fixed":"18.24.3-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"19.0.0"},{"fixed":"20.9.3-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"19.0.0"},{"fixed":"20.9.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"19.0.0"},{"fixed":"20.9.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"19.0.0"},{"fixed":"20.9.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"19.0.0"},{"fixed":"20.9.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"19.0.0"},{"fixed":"20.9.2-r0"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:20.9.3~dfsg+~cs6.14.60671435-1"}]}],"versions":["0.1.11-3","0.1.11-3woody1","1:1.0.5-2","1:1.0.5-4","1:1.0.6-1","1:1.0.6-2","1:1.0.7-1","1:1.0.7.dfsg.1-1","1:1.0.7.dfsg.1-2","1:1.0.7.dfsg.1-2sarge1","1:1.0.7.dfsg.1-2sarge2","1:1.0.7.dfsg.1-2sarge3","1:1.0.7.dfsg.1-2sarge4","1:1.0.7.dfsg.1-2sarge5","1:1.0.7.dfsg.1-2sarge6","1:1.0.9.dfsg-1","1:1.0.9.dfsg-3","1:1.0.9.dfsg-4","1:1.0.9.dfsg-5","1:1.0.9.dfsg-6","1:1.2.0-beta1.dfsg-1","1:1.2.0-beta2.dfsg-1","1:1.2.0-beta2.dfsg-2","1:1.2.0-beta2.dfsg-3","1:1.2.0-rc1.dfsg-1","1:1.2.0-rc2.dfsg-1","1:1.2.0.dfsg-1","1:1.2.0.dfsg-2","1:1.2.0.dfsg-3","1:1.2.0.dfsg-4","1:1.2.0.dfsg-5","1:1.2.0.dfsg-6","1:1.2.1.dfsg-1","1:1.2.1.dfsg-2","1:1.2.1.dfsg-3","1:1.2.10.dfsg-1","1:1.2.10.dfsg-1bpo1","1:1.2.10.dfsg-2","1:1.2.10.dfsg-3","1:1.2.11.dfsg-1","1:1.2.12.1.dfsg-1","1:1.2.13~dfsg-1","1:1.2.13~dfsg-2","1:1.2.13~dfsg-2etch1","1:1.2.13~dfsg-2etch2","1:1.2.13~dfsg-2etch3","1:1.2.13~dfsg-2etch4","1:1.2.14~dfsg-1","1:1.2.14~dfsg-2","1:1.2.14~dfsg-3","1:1.2.14~dfsg-4","1:1.2.15~dfsg-1","1:1.2.16~dfsg-1","1:1.2.17~dfsg-1","1:1.2.4.dfsg-1","1:1.2.4.dfsg-2","1:1.2.4.dfsg-3","1:1.2.4.dfsg-4","1:1.2.4.dfsg-5","1:1.2.4.dfsg-6","1:1.2.4.dfsg-6+b1","1:1.2.4.dfsg-7","1:1.2.7.1.dfsg-1","1:1.2.7.1.dfsg-2","1:1.2.7.1.dfsg-3","1:1.2.9.1.dfsg-1","1:1.4.10~dfsg-1","1:1.4.11~dfsg-1","1:1.4.11~dfsg-2","1:1.4.11~dfsg-3","1:1.4.11~dfsg-4","1:1.4.13~dfsg-1","1:1.4.15~dfsg-1","1:1.4.16.2~dfsg-1","1:1.4.16.2~dfsg-2","1:1.4.17~dfsg-1","1:1.4.17~dfsg-2","1:1.4.18.1~dfsg-1","1:1.4.18~dfsg-1","1:1.4.19.1~dfsg-1","1:1.4.20~dfsg-1","1:1.4.21.1~dfsg-1","1:1.4.21.2~dfsg-1","1:1.4.21.2~dfsg-2","1:1.4.21.2~dfsg-3","1:1.4.21.2~dfsg-3+lenny1","1:1.4.21.2~dfsg-3+lenny2","1:1.4.21.2~dfsg-3+lenny2.1","1:1.4.21.2~dfsg-3+lenny3","1:1.4.21.2~dfsg-3+lenny5","1:1.4.21.2~dfsg-3+lenny6","1:1.4.21.2~dfsg-3.1","1:1.4.2~dfsg-1","1:1.4.2~dfsg-2","1:1.4.2~dfsg-3","1:1.4.2~dfsg-4","1:1.4.2~dfsg-5","1:1.4.3~dfsg-1","1:1.4.4~dfsg-1","1:1.4.4~dfsg-2","1:1.4.4~dfsg-3","1:1.4.5~dfsg-1","1:1.4.6~dfsg-1","1:1.4.8~dfsg-1","1:1.4.8~dfsg-2","1:1.4.9~dfsg-1","1:1.6.1.0~dfsg-1","1:1.6.1.0~dfsg~rc3-1","1:1.6.2.0-1","1:1.6.2.0~dfsg~beta3-1","1:1.6.2.0~dfsg~rc1-1","1:1.6.2.0~rc3-1","1:1.6.2.0~rc3-2","1:1.6.2.0~rc6-1","1:1.6.2.0~rc7-1","1:1.6.2.2-1","1:1.6.2.6-1","1:1.6.2.7-1","1:1.6.2.9-1","1:1.6.2.9-1~bpo50+1","1:1.6.2.9-1~bpo50+2","1:1.6.2.9-1~bpo50+3","1:1.6.2.9-2","1:1.6.2.9-2+squeeze1","1:1.6.2.9-2+squeeze10","1:1.6.2.9-2+squeeze11","1:1.6.2.9-2+squeeze12","1:1.6.2.9-2+squeeze2","1:1.6.2.9-2+squeeze3","1:1.6.2.9-2+squeeze4","1:1.6.2.9-2+squeeze5","1:1.6.2.9-2+squeeze6","1:1.6.2.9-2+squeeze7","1:1.6.2.9-2+squeeze8","1:1.6.2.9-2+squeeze9","1:1.8.10.0~dfsg-1","1:1.8.10.1~dfsg-1","1:1.8.11.1~dfsg-1","1:1.8.13.0~dfsg-1","1:1.8.13.0~dfsg-1~bpo60+1","1:1.8.13.1~dfsg-1","1:1.8.13.1~dfsg-1+powerpcspe1","1:1.8.13.1~dfsg-1~bpo60+1","1:1.8.13.1~dfsg-2","1:1.8.13.1~dfsg-3","1:1.8.3.3-1","1:1.8.4-1","1:1.8.4.2-1","1:1.8.4.3-1","1:1.8.4.4~dfsg-1","1:1.8.4.4~dfsg-2","1:1.8.7.1~dfsg-1","1:1.8.7.1~dfsg-2","1:1.8.7.1~dfsg-3","1:1.8.8.0~dfsg-1","1:1.8.8.2~dfsg-1","1:11.10.0~dfsg-1","1:11.10.0~dfsg-1~bpo70+1","1:11.10.2~dfsg-1","1:11.10.2~dfsg-1~bpo70+1","1:11.11.0~dfsg-1","1:11.11.0~dfsg-1~bpo70+1","1:11.11.0~dfsg-2","1:11.12.0~dfsg-1","1:11.12.0~dfsg-1~bpo70+1","1:11.12.1~dfsg-1","1:11.13.0~dfsg-1","1:11.13.0~dfsg-1~bpo70+1","1:11.13.1~dfsg-1","1:11.13.1~dfsg-2","1:11.13.1~dfsg-2~bpo70+1","1:11.5.1~dfsg-1","1:11.5.1~dfsg-2","1:11.5.1~dfsg1-1","1:11.5.1~dfsg1-1~bpo70+1","1:11.6.0~dfsg-1","1:11.6.0~dfsg-2","1:11.6.0~dfsg-3","1:11.7.0~dfsg-1","1:11.7.0~dfsg-1+e1","1:11.7.0~dfsg-1~bpo70+1","1:11.8.0~dfsg-1","1:11.8.0~dfsg-2","1:11.8.1~dfsg-1","1:11.8.1~dfsg-1~bpo70+1","1:11.9.0~dfsg-1","1:11.9.0~dfsg-2","1:11.9.0~dfsg-2~bpo70+1","1:13.0.0~dfsg-1","1:13.0.0~dfsg-2","1:13.1.0~dfsg-1","1:13.1.0~dfsg-1.1","1:13.10.0~dfsg-1","1:13.11.2~dfsg-1","1:13.12.1~dfsg-1","1:13.12.2~dfsg-1","1:13.12.2~dfsg-2","1:13.13.1~dfsg-1","1:13.13.1~dfsg-2","1:13.13.1~dfsg-3","1:13.13.1~dfsg-3~exp1","1:13.13.1~dfsg-4","1:13.14.0~dfsg-1","1:13.14.0~dfsg-1~exp1","1:13.14.1~dfsg-1","1:13.14.1~dfsg-2","1:13.17.0~dfsg-1","1:13.17.0~dfsg-2","1:13.17.1~dfsg-1","1:13.17.2~dfsg-1","1:13.17.2~dfsg-2","1:13.18.1~dfsg-1","1:13.18.3~dfsg-1","1:13.18.5~dfsg-1","1:13.20.0~dfsg-1","1:13.22.0~dfsg-1","1:13.22.0~dfsg-2","1:13.23.1~dfsg-1","1:13.23.1~dfsg-2","1:13.7.2~dfsg-1","1:13.8.0~dfsg-1","1:13.8.2~dfsg-1","1:13.9.1~dfsg-1","1:13.9.1~dfsg-2","1:16.1.0~dfsg-1","1:16.1.0~dfsg-2","1:16.1.0~dfsg-3","1:16.1.0~dfsg-4","1:16.1.1~dfsg-1","1:16.10.0~dfsg-1","1:16.12.0~dfsg-1","1:16.15.0~dfsg-1","1:16.15.1~dfsg-1","1:16.16.1~dfsg+~2.10-1","1:16.16.1~dfsg+~2.10-2","1:16.16.1~dfsg-1","1:16.16.1~dfsg-1~bpo10+1","1:16.16.1~dfsg-2","1:16.16.1~dfsg-3","1:16.16.1~dfsg-4","1:16.2.0~dfsg-1","1:16.2.1~dfsg-1","1:16.2.1~dfsg-2","1:16.23.0~dfsg+~2.10-1","1:16.23.0~dfsg+~cs6.10.20220309-1","1:16.23.0~dfsg+~cs6.10.20220309-2","1:16.23.0~dfsg+~cs6.10.40431411-1","1:18.10.0~dfsg+~cs6.10.40431411-1","1:18.10.0~dfsg+~cs6.10.40431411-2","1:18.10.1~dfsg+~cs6.10.40431411-1","1:18.11.1~dfsg+~cs6.10.40431413-1","1:18.11.2~dfsg+~cs6.10.40431413-1","1:18.12.0~dfsg+~cs6.12.40431413-1","1:18.14.0~dfsg+~cs6.12.40431414-1","1:18.14.0~~rc1~dfsg+~cs6.12.40431414-1","1:18.9.0~dfsg+~cs6.10.40431411-1","1:20.0.0~dfsg+~cs6.12.40431414-1","1:20.0.0~dfsg+~cs6.12.40431414-2","1:20.0.0~~rc1~dfsg+~cs6.12.40431414-1","1:20.0.0~~rc2~dfsg+~cs6.12.40431414-1","1:20.0.1~dfsg+~cs6.12.40431414-1","1:20.1.0~dfsg+~cs6.12.40431414-1","1:20.1.0~~rc2~dfsg+~cs6.12.40431414-1","1:20.2.1~dfsg+~cs6.13.40431413-1","1:20.3.0~dfsg+~cs6.13.40431413-1","1:20.4.0~dfsg+~cs6.13.40431414-1","1:20.4.0~dfsg+~cs6.13.40431414-2","1:20.5.0~dfsg+~cs6.13.40431414-1","1:20.5.1~dfsg+~cs6.13.40431414-1","1:20.5.2~dfsg+~cs6.13.40431414-1","1:20.6.0~dfsg+~cs6.13.40431414-1","1:20.6.0~dfsg+~cs6.13.40431414-2","1:20.8.1~dfsg+~cs6.14.40431414-1"]},{"source":"osv","ecosystem":"Debian:11","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:16.28.0~dfsg-0+deb11u5"}]}],"versions":["1:16.16.1~dfsg+~2.10-1","1:16.16.1~dfsg+~2.10-2","1:16.16.1~dfsg-1","1:16.16.1~dfsg-1+deb11u1","1:16.16.1~dfsg-1+deb11u1~bpo10+1","1:16.16.1~dfsg-2","1:16.16.1~dfsg-3","1:16.16.1~dfsg-4","1:16.23.0~dfsg+~2.10-1","1:16.23.0~dfsg+~cs6.10.20220309-1","1:16.23.0~dfsg+~cs6.10.20220309-2","1:16.23.0~dfsg+~cs6.10.40431411-1","1:16.28.0~dfsg-0+deb11u1","1:16.28.0~dfsg-0+deb11u2","1:16.28.0~dfsg-0+deb11u3","1:16.28.0~dfsg-0+deb11u4"],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:13.1.0~dfsg-1.1ubuntu3","1:13.1.0~dfsg-1.1ubuntu4","1:13.1.0~dfsg-1.1ubuntu4.1","1:13.1.0~dfsg-1.1ubuntu4.1+esm1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:13.17.2~dfsg-1ubuntu1","1:13.17.2~dfsg-2ubuntu1","1:13.18.1~dfsg-1ubuntu1","1:13.18.3~dfsg-1ubuntu1","1:13.18.3~dfsg-1ubuntu2","1:13.18.3~dfsg-1ubuntu3","1:13.18.3~dfsg-1ubuntu4"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:16.2.1~dfsg-2build2","1:16.2.1~dfsg-2build3","1:16.2.1~dfsg-2ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:16.16.1~dfsg-2","1:16.16.1~dfsg-4","1:16.16.1~dfsg-4build1","1:16.16.1~dfsg+~2.10-1","1:18.10.0~dfsg+~cs6.10.40431411-2"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:20.4.0~dfsg+~cs6.13.40431414-2","1:20.5.0~dfsg+~cs6.13.40431414-1","1:20.5.1~dfsg+~cs6.13.40431414-1","1:20.5.2~dfsg+~cs6.13.40431414-1","1:20.6.0~dfsg+~cs6.13.40431414-1","1:20.6.0~dfsg+~cs6.13.40431414-2","1:20.6.0~dfsg+~cs6.13.40431414-2build3","1:20.6.0~dfsg+~cs6.13.40431414-2build4","1:20.6.0~dfsg+~cs6.13.40431414-2build5"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:22.2.0~dfsg+~cs6.15.60671435-2","1:22.3.0~dfsg+~cs6.15.60671435-1","1:22.4.1~dfsg+~cs6.15.60671435-1","1:22.4.1~dfsg+~cs6.15.60671435-2","1:22.5.1~dfsg+~cs6.15.60671435-1","1:22.5.2~dfsg+~cs6.15.60671435-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:22.5.2~dfsg+~cs6.15.60671435-1","1:22.10.0+dfsg+~cs6.17.60671434-1ubuntu2","1:22.10.0+dfsg+~cs6.17.60671434-1ubuntu3"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"asterisk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:22.5.2~dfsg+~cs6.15.60671435-1"]}],"products":[{"vendor":"asterisk","product":"asterisk"},{"vendor":"asterisk","product":"certified_asterisk"}],"references":[{"url":"https://github.com/asterisk/asterisk/security/advisories/GHSA-c4cg-9275-6w44","tags":["x_refsource_CONFIRM","Exploit","Technical Description","Vendor Advisory","advisory","report"]},{"url":"https://github.com/asterisk/asterisk/commit/42a2f4ccfa2c7062a15063e765916b3332e34cc4","tags":["x_refsource_MISC","Patch","fix","report"]},{"url":"https://github.com/asterisk/asterisk/commit/7a0090325bfa9d778a39ae5f7d0a98109e4651c8","tags":["x_refsource_MISC","Patch","fix","report"]},{"url":"https://github.com/asterisk/asterisk/commit/b4063bf756272254b160b6d1bd6e9a3f8e16cc71","tags":["x_refsource_MISC","Patch","fix","report"]},{"url":"https://github.com/asterisk/asterisk/commit/bbe68db10ab8a80c29db383e4dfe14f6eafaf993","tags":["x_refsource_MISC","Patch","fix","report"]},{"url":"https://github.com/asterisk/asterisk/commit/faddd99f2b9408b524e5eb8a01589fe1fa282df2","tags":["x_refsource_MISC","Patch","fix","report"]},{"url":"https://github.com/asterisk/asterisk/blob/14367caaf7241df1eceea7c45c5b261989c2c6db/main/manager.c#L6426","tags":["x_refsource_MISC","Issue Tracking","web","report"]},{"url":"https://github.com/asterisk/asterisk/blob/7d28165cb1b2d02d66e8693bd3fe23ee72fc55d8/main/manager.c#L6426","tags":["x_refsource_MISC","Issue Tracking","web","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00016.html","tags":["web"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2024-42365","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42365.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42365","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-42365","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-42365","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-42365","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2024-42365","title":"Asterisk allows `Write=originate` as sufficient permissions for code execution / `System()` dialplan","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.","status":"published","published":"2024-08-08T16:29:07.436Z","modified":"2025-11-03T22:04:48.935Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","level":"high","assessor":"cna"}],"cwes":["CWE-267","CWE-1220"],"updated_at":"2026-11-02T14:34:03.333404Z"}],"euvd":[{"id":"EUVD-2024-39574","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.","status":"published","published":"2024-08-08T16:29:07Z","modified":"2025-11-03T22:04:48Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","level":"high"}],"updated_at":"2026-11-02T19:49:29.890052Z"}],"nvd":[{"id":"CVE-2024-42365","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.","status":"published","published":"2024-08-08T17:15:19.34Z","modified":"2026-06-17T07:49:20.013Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","level":"high","assessor":"secondary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-267","CWE-1220"],"updated_at":"2026-11-02T14:10:17.832118Z"}],"osv":[{"id":"ALPINE-CVE-2024-42365","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.","status":"published","published":"2024-08-08T17:15:19.34Z","modified":"2026-11-02T11:17:50.106223915Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:27:49.709457Z"},{"id":"CVE-2024-42365","title":"Asterisk allows `Write=originate` as sufficient permissions for code execution / `System()` dialplan","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.","status":"published","published":"2024-08-08T16:29:07.436Z","modified":"2026-10-28T10:58:05.248470968Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-1220","CWE-267"],"updated_at":"2026-11-02T15:44:42.322107Z"},{"id":"DEBIAN-CVE-2024-42365","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.","status":"published","published":"2024-08-08T17:15:19.34Z","modified":"2026-11-02T12:02:46.884932221Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:43.156294Z"},{"id":"UBUNTU-CVE-2024-42365","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.","status":"published","published":"2024-08-08T17:15:00Z","modified":"2026-10-17T12:57:23.165332155Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","level":"high"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T16:54:58.679387Z"},{"id":"DLA-3925-1","title":"asterisk - security update","status":"published","published":"2024-10-20T00:00:00Z","modified":"2026-03-09T01:19:03.801173Z","updated_at":"2026-11-02T15:46:12.203458Z"}]}}
