BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2025-1131 in Sangoma Asterisk and 1 more product

High 7.8

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 permi...

Affects 2 products from 1 vendor. Facts below cite their sources.

CVSS 3.17.8
CVSS v47.0
EPSS0.2%
EPSS percentile8th
FixUnknown

Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Sangoma Asterisk < 18.26.3 ≥ 20.0.0, < 20.15.1 ≥ 21.0.0, < 21.10.1 ≥ 22.0.0, < 22.5.1
Sangoma Certified Asterisk 18.9 20.7

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: b7efe717-a805-47cf-8e9a-921fca0ce0ce

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-1131
BreachSpider IDBS-2025-GLOBAL-035526-H
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2025-09-23
Last modified2026-10-19
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-427: CWE-427

Related attack patterns (CAPEC)

CAPEC-38 Leveraging/Manipulating Configuration File Search Paths via CWE-427

CAPEC-471 Search Order Hijacking via CWE-427

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A local privilege escalation vulnerability exists in the safe_asterisk script of the Asterisk toolkit package, allowing non-root users with write access to /etc/asterisk to execute arbitrary code as root.

The vulnerability arises because the safe_asterisk script sources all .sh files in /etc/asterisk/startup.d/ as root without validating file ownership or permissions. An attacker with legitimate write access to /etc/asterisk can place a malicious .sh file in the startup.d directory, which will be executed with root privileges when Asterisk starts.

Questions

What is CVE-2025-1131?

A local privilege escalation vulnerability exists in the safe_asterisk script of the Asterisk toolkit package, allowing non-root users with write access to /etc/asterisk to execute arbitrary code as root.

What is the CVSS score for CVE-2025-1131?

CVE-2025-1131 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.2%.

Is CVE-2025-1131 actively exploited?

No confirmed active exploitation of CVE-2025-1131 as of 2026-10-25.

How do I remediate CVE-2025-1131?

Priority: HIGH. PSIRT: b7efe717-a805-47cf-8e9a-921fca0ce0ce

What systems are affected by CVE-2025-1131?

CVE-2025-1131 affects Sangoma Asterisk, Certified Asterisk.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Sangoma","product":"Asterisk","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-19.