Vulnerabilities

CVE-2025-1131

High 7.8 CVSS 3.1

Description

A local privilege escalation vulnerability exists in the safe_asterisk script included with the Asterisk toolkit package. When Asterisk is started via this script (common in SysV init or FreePBX environments), it sources all .sh files located in /etc/asterisk/startup.d/ as root, without validating ownership or permissions. Non-root users with legitimate write access to /etc/asterisk can exploit this behaviour by placing malicious scripts in the startup.d directory, which will then execute with root privileges upon service restart.

Description as published by the source, in English.

Key facts

Published
2025-09-23
Last modified
2026-10-19
Assigned by
b7efe717-a805-47cf-8e9a-921fca0ce0ce
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.2 % higher than 10 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
Sangoma Asterisk < 18.26.3 Affected
Sangoma Asterisk ≥ 20.0.0, < 20.15.1 Affected
Sangoma Asterisk ≥ 21.0.0, < 21.10.1 Affected
Sangoma Asterisk ≥ 22.0.0, < 22.5.1 Affected
Sangoma Certified Asterisk 18.9 Affected
Sangoma Certified Asterisk 20.7 Affected

Weakness type

Attack techniques

Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.

  • T1574.001: DLL stealth, execution
  • T1574.004: Dylib Hijacking stealth, execution
  • T1574.007: Path Interception by PATH Environment Variable stealth, execution
  • T1574.008: Path Interception by Search Order Hijacking stealth, execution
  • T1574.009: Path Interception by Unquoted Path stealth, execution

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities