CVE-2025-1131
NixOS vulnerability analysis and mitigation

Overview

A local privilege escalation vulnerability (CVE-2025-1131) was discovered in the safeasterisk script included with the Asterisk toolkit package. The vulnerability affects multiple versions of Asterisk (<=18.26.2, <=20.15.0, <=21.10.0, <=22.5.0, <=18.9-cert15, <=20.7-cert6) and was disclosed on July 31, 2025. The issue exists when Asterisk is started via the safeasterisk script, which is common in SysV init or FreePBX environments (GitHub Advisory).

Technical details

The vulnerability stems from the safe_asterisk script's behavior of sourcing all .sh files located in /etc/asterisk/startup.d/ as root, without validating ownership or permissions. The script runs with root privileges and executes every file with .sh extension in the specified directory without performing any chmod or ownership verification. The vulnerability has been assigned a CVSS v4.0 base score of 6.9 (Moderate) with the vector string CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N. The issue is classified as CWE-427 (Uncontrolled Search Path Element) (GitHub Advisory).

Impact

The vulnerability allows non-root users with legitimate write access to /etc/asterisk to escalate their privileges to root. An attacker could place malicious scripts in the startup.d directory that would execute with root privileges upon service restart. This could lead to complete system compromise through unauthorized root access (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions 18.26.3, 20.15.1, 21.10.1, 22.5.1, 18.9-cert16, and 20.7-cert7. It's important to note that installations using the recommended systemd asterisk.service file to start Asterisk are not affected by this vulnerability. The issue only exists when using the safe_asterisk script to start the Asterisk daemon (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-65622MEDIUM5.4
  • PHPPHP
  • snipe/snipe-it
NoYesDec 01, 2025

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