CVE-2026-23740
NixOS vulnerability analysis and mitigation

Overview

CVE-2026-23740 is a privilege escalation vulnerability in Asterisk, the open-source PBX and telephony toolkit developed by Sangoma. The flaw exists in the ast_coredumper script, which runs as root and writes GDB initialization and output files to world-writable directories such as /tmp, allowing any local user to manipulate those files and cause root to execute arbitrary commands. Affected versions include Asterisk prior to 20.18.2, 21.12.1, 22.8.2, and 23.2.2, as well as Certified Asterisk prior to 20.7-cert9. The vulnerability was published on February 6, 2026. It carries a CVSS v3.1 base score of 7.8 (High) per NVD, though the GitHub Security Advisory rates it as Low with a different vector (GitHub Advisory, Red Hat CVE).

Technical details

The root cause is classified as CWE-427 (Uncontrolled Search Path Element). When ast_coredumper executes, it extracts GDB commands from itself and writes them to /tmp/.gdbinit; because /tmp is world-writable on Linux systems, any local user can pre-create or symlink /tmp/.gdbinit to an attacker-controlled file, or race the script to modify the file before GDB executes it with root privileges. GDB initialization files support arbitrary command execution, meaning a malicious .gdbinit can be weaponized to run commands as root. Additionally, the trap 'rm $gdbinit' EXIT cleanup mechanism can be abused to achieve arbitrary file deletion, further enabling privilege escalation (GitHub Advisory).

Impact

Successful exploitation allows a local, unprivileged user to escalate privileges to root by causing the ast_coredumper script to execute attacker-controlled GDB commands. This results in high confidentiality, integrity, and availability impact — an attacker can read sensitive files, overwrite arbitrary system files, or execute arbitrary commands as root. The attack is limited to the local system scope but could serve as a stepping stone for broader compromise of the host running Asterisk (GitHub Advisory, Red Hat CVE).

Exploitability

No public exploit code or in-the-wild exploitation has been reported for CVE-2026-23740. The EPSS score is approximately 0.016% (0.000160), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires local access to the system and user interaction (a privileged user must trigger ast_coredumper), which limits the practical attack surface (GitHub Advisory).

Exploitation steps

  1. Reconnaissance: Confirm the target system runs a vulnerable version of Asterisk (prior to 20.18.2, 21.12.1, 22.8.2, 23.2.2, or Certified Asterisk prior to 20.7-cert9) and that ast_coredumper is present and configured to run as root.
  2. Pre-stage malicious file: As a local unprivileged user, create or symlink /tmp/.gdbinit to an attacker-controlled file containing malicious GDB commands (e.g., shell chmod u+s /bin/bash or a reverse shell command).
  3. Race condition (alternative): If the file cannot be pre-staged, monitor for ast_coredumper execution and race to overwrite /tmp/.gdbinit with the malicious content before GDB reads it.
  4. Trigger execution: Wait for or social-engineer a privileged user (e.g., an administrator) to trigger a core dump analysis using ast_coredumper, which causes root to invoke GDB with the attacker-controlled init file.
  5. Achieve privilege escalation: GDB executes the malicious commands as root, granting the attacker elevated privileges or arbitrary file manipulation on the system (GitHub Advisory).

Indicators of compromise

  • File System: Unexpected or recently modified /tmp/.gdbinit file; symlinks in /tmp/ pointing to sensitive system files; unusual files created in /tmp/ with GDB command syntax.
  • Process: gdb process spawned by root with init file sourced from /tmp/; unexpected child processes of gdb running as root (e.g., /bin/bash, curl, nc).
  • Logs: System logs (/var/log/auth.log, /var/log/syslog) showing unexpected privilege escalation events or root shell activity following ast_coredumper execution; audit logs recording writes to /tmp/.gdbinit by non-root users.
  • File System: Unexpected SUID/SGID bit changes on system binaries; newly created or modified files owned by root in sensitive directories following ast_coredumper invocation (GitHub Advisory).

Mitigation and workarounds

Upgrade to patched versions: Asterisk 20.18.2, 21.12.1, 22.8.2, or 23.2.2; Certified Asterisk 20.7-cert9. As a workaround, restrict write access to /tmp for non-root users where operationally feasible, or configure ast_coredumper to write its GDB init and output files to a directory that is not world-writable. Debian LTS users should apply the security update announced via the Debian LTS mailing list (GitHub Advisory, Debian LTS).

Community reactions

Red Hat tracked the vulnerability and published a CVE page, though no specific Red Hat products were listed as affected. Debian issued a Long Term Support (LTS) security announcement (DLA-4515-1) addressing the vulnerability in their asterisk packages. No notable researcher commentary or significant social media discussion has been identified beyond standard vulnerability database aggregation (Red Hat CVE, Debian LTS).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

sid

asterisk: 1:22.8.2+dfsg+~cs6.15.60671435-1

Fixed

Ubuntu

Unknown

bionic (esm-apps)

asterisk

Unknown

devel

asterisk

Unknown

focal (esm-apps)

asterisk

Unknown

jammy

asterisk

Unknown

jammy (esm-apps)

asterisk

Unknown

noble

asterisk

Unknown

noble (esm-apps)

asterisk

Unknown

resolute

asterisk

Unknown

SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-86738CRITICAL9.3
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86734HIGH7.1
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86735MEDIUM5.9
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86737MEDIUM5.3
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86736MEDIUM5.3
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management