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.
Severity (CVSS)
| Base score | 6.9 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | 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 |
| Provided by | CNA |
Weaknesses
- CWE-426 — CWE-426: Untrusted Search Path
Affected products
| Vendor | Product | Versions |
|---|---|---|
| asterisk | asterisk | < 20.20.1 [affected]; >= 21.0.0-pre1, < 21.12.3 [affected]; >= 22.0.0-pre1, < 22.10.1 [affected]; >= 23.0.0-pre1, < 23.4.1 [affected] |
| asterisk | certified-asterisk | < 20.7-cert11 [affected]; >= 22.8-cert1-pre1, < 22.8-cert3 [affected] |
References
- https://github.com/asterisk/asterisk/security/advisories/GHSA-xgj6-2gc5-5x9c (x_refsource_CONFIRM)
- https://github.com/asterisk/asterisk/commit/022407ec47adebe27b7ec8bcf5626e5a02fe1551 (x_refsource_MISC)
- https://github.com/asterisk/asterisk/commit/a51c4e3d6bccce4bc4226c43e78952573a62f165 (x_refsource_MISC)
- https://github.com/asterisk/asterisk/commit/ba8e5bdecd5280fc0ab230df59e41ea21b3a052f (x_refsource_MISC)
- https://github.com/asterisk/asterisk/commit/bd63fe121d0e86867863bd98b5771e592273b035 (x_refsource_MISC)
- https://github.com/asterisk/asterisk/commit/c0fc2ae54cb6289a48a80333432f5fdf5a40c7de (x_refsource_MISC)
- https://github.com/asterisk/asterisk/commit/f18ac4c964781f671e400342790bf40679698067 (x_refsource_MISC)
- https://github.com/asterisk/asterisk/releases/tag/20.20.1 (x_refsource_MISC)
- https://github.com/asterisk/asterisk/releases/tag/21.12.3 (x_refsource_MISC)
- https://github.com/asterisk/asterisk/releases/tag/22.10.1 (x_refsource_MISC)
- https://github.com/asterisk/asterisk/releases/tag/23.4.1 (x_refsource_MISC)
- https://github.com/asterisk/asterisk/releases/tag/certified-20.7-cert11 (x_refsource_MISC)
- https://github.com/asterisk/asterisk/releases/tag/certified-22.8-cert3 (x_refsource_MISC)
- https://github.com/asterisk/asterisk/tree/24.0.0-pre1 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 28 Oct 2026 07:01 UTC.