Uncontrolled Search Path Element Affecting asterisk package, versions [,18.26.3)[20.15.0,20.15.1)[21.10.0,21.10.1)[22.5.0,22.5.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-ASTERISK-13007650
  • published23 Sept 2025
  • disclosed23 Sept 2025
  • creditThatTotallyRealMyth

Introduced: 23 Sep 2025

NewCVE-2025-1131  (opens in a new tab)
CWE-427  (opens in a new tab)

How to fix?

Upgrade asterisk to version 18.26.3, 20.15.1, 21.10.1, 22.5.1 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Search Path Element via the safe_asterisk script, which sources all .sh files in the /etc/asterisk/startup.d/ directory as root without validating ownership or permissions. An attacker can execute arbitrary code with root privileges by placing a malicious script in the specified directory and triggering a service restart.

References

CVSS Base Scores

version 4.0
version 3.1