SecurityContext

CVE-2026-23741: Asterisk - Command Injection

  • Cve: CVE-2026-23741
  • Name: Asterisk - Command Injection
  • Description: Asterisk is an open source private branch exchange and telephony toolkit. Prior to versions 20.7-cert9, 20.18.2, 21.12.1, 22.8.2, and 23.2.2, the asterisk/contrib/scripts/ast_coredumper runs as root, as noted by the NOTES tag on line 689 of the ast_coredumper file. The script will source the contents of /etc/asterisk/ast_debug_tools.conf, which resides in a folder that is writeable by the asterisk user:group. Due to the /etc/asterisk/ast_debug_tools.conf file following bash semantics and it being loaded; an attacker with write permissions may add or modify the file such that when the root ast_coredumper is run; it would source and thereby execute arbitrary bash code found in the /etc/asterisk/ast_debug_tools.conf. This issue has been patched in versions 20.7-cert9, 20.18.2, 21.12.1, 22.8.2, and 23.2.2.
  • Impact: Attackers with write access can execute arbitrary code as root, leading to full system compromise.
  • Remediation: Update to versions 20.7-cert9, 20.18.2, 21.12.1, 22.8.2, or 23.2.2 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker needs write permissions to /etc/asterisk directory
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00211
  • Epss percentile: 0.11272
  • Assignee: [email protected]
  • Published at: 2026-02-06T17:16:26Z
  • Age in days: 291
  • Modified at: 2026-06-17T10:22:01Z
  • Patch available: yes
  • References total: 1
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-23741
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-427Uncontrolled Search Path Element

References

UrlSourceTags
https://github.com/asterisk/asterisk/security/advisories/GHSA-rvch-3jmx-3jf3nvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
sangoma:asterisk>= 23.0.0, < 23.2.2; >= 22.0.0, < 22.8.2; >= 21.0.0, < 21.12.1; < 20.18.2nonvd/v1/products/sangoma/asterisk
sangoma:certified_asterisk= 20.7 cert1, = 20.7 cert1-rc1, = 20.7 cert1-rc2, = 20.7 cert2, = 20.7 cert3, = 20.7 cert4, = 20.7 cert5, = 20.7 cert6, = 20.7 cert7, = 20.7 cert8, <= 18.9nonvd/v1/products/sangoma/certified_asterisk

Projects

RepositoryLink kindsIndexedUrl
asterisk/asterisksecurity_advisoryyes/v1/repositories/asterisk/asterisk

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts