CVE-2026-57203

Asterisk: Local privilege escalation through ast_loggrabber's world-writable helper location

Published Oct 27, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Asterisk’s ast_loggrabber executes a Python script located in the world‑writable "/tmp" directory. The vulnerability stems from improper file permissions (CWE‑426) that allow a locally authenticated attacker to drop a malicious script into "/tmp" and then trigger ast_loggrabber as a privileged user, resulting in elevation of privileges or execution of arbitrary code on the host system.

Affected Systems

Vulnerable to all Asterisk releases before 20.20.1, 21.12.3, 22.10.1, 23.4.1 and the certified releases 20.7‑cert11 and 22.8‑cert3. Affected packages include asterisk:asterisk and asterisk:certified-asterisk.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. EPSS is not available and the vulnerability is not listed in CISA KEV, suggesting limited public exploitation. The attack requires local system access with the ability to write to "/tmp"; thus the threat is significant if an attacker can gain an authenticated shell session or otherwise write to the directory. Privileged execution of ast_loggrabber will allow the attacker to run arbitrary code as the user running the command, potentially gaining full system control.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Asterisk 20.20.1 or later, 21.12.3 or later, 22.10.1 or later, 23.4.1 or later, or the certified releases 20.7‑cert11 or 22.8‑cert3
  • Ensure that the "/tmp" directory is not world‑writable and that only trusted users can create executable files inside it
  • Restrict the use of ast_loggrabber to administrative accounts and monitor for unauthorized scripts in temporary directories

Generated by OpenCVE AI on October 27, 2026 at 23:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Asterisk
Asterisk asterisk
Asterisk certified Asterisk
Vendors & Products Asterisk
Asterisk asterisk
Asterisk certified Asterisk
Type Values Removed Values Added
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.
Title Asterisk: Local privilege escalation through ast_loggrabber's world-writable helper location
Weaknesses CWE-426
References
Metrics cvssV4_0

{'score': 6.9, '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 29, 2026, 6:22 PM
Reserved
Jun 24, 2026, 2:00 AM
Status
Awaiting Analysis
Published
Oct 27, 2026, 10:17 PM
Modified
Oct 29, 2026, 7:17 PM
Severity
Important
Public date
Oct 27, 2026, 9:48 PM