Description
Asterisk is an open source private branch exchange and telephony toolkit. Prior to Asterisk 20.20.1, 21.12.3, 22.10.1, 23.4.1 and Certified Asterisk 20.7-cert11, 22.8-cert3, `ast_loggrabber` executes a `Python script` from the world-writable `/tmp` directory. An attacker already authorized to open a shell session on the Asterisk server may place a malicious script there and gain elevated privileges or execute code when an administrator runs `ast_loggrabber` as a user with elevated privileges. This issue is fixed in Asterisk 20.20.1, 21.12.3, 22.10.1, 23.4.1 and Certified Asterisk 20.7-cert11, 22.8-cert3.
References10
- github.com/asterisk/asterisk/commit/022407ec47adebe27b7ec8bcf56…
- github.com/asterisk/asterisk/commit/a51c4e3d6bccce4bc4226c43e78…
- github.com/asterisk/asterisk/commit/ba8e5bdecd5280fc0ab230df59e…
- github.com/asterisk/asterisk/commit/bd63fe121d0e86867863bd98b57…
- github.com/asterisk/asterisk/commit/c0fc2ae54cb6289a48a80333432…
- github.com/asterisk/asterisk/commit/f18ac4c964781f671e400342790…
- github.com/asterisk/asterisk/releases/tag/20.20.1
- github.com/asterisk/asterisk/releases/tag/21.12.3
- github.com/asterisk/asterisk/releases/tag/22.10.1
- github.com/asterisk/asterisk/releases/tag/23.4.1
Metrics
- CVSS 4.0
-
6.9
MEDIUM
Score source: CNA
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 4 · as of 3 November 2026
- CWE
- CWE-426
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.