Home / Asterisk / Asterisk / CVE-2025-1131
CVE-2025-1131: is it exploited, and which versions of Asterisk are affected and fixed?
CVE-2025-1131 is an uncontrolled search path (DLL or library hijacking) vulnerability in Asterisk. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:09 UTC). Affected: Asterisk Asterisk <=18.26.2, Asterisk Asterisk <= 20.15.0, Asterisk Asterisk <= 21.10.0 and 1 more (CVE record by Gridware). Fixed in 18.26.3, 20.15.1, 21.10.1 and 22.5.1 (NVD). Severity: High (7.0, CVSS 4.0, from Gridware).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:09 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:17 UTC.
What is CVE-2025-1131?
Asterisk Unsafe Shell Sourcing in safe_asterisk Leads to Local Privilege Escalation
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.
From the CVE record by Gridware, last updated February 26, 2026, 17:48 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Asterisk | Asterisk Linux, MacOS | Asterisk <=18.26.2 Asterisk <= 20.15.0 Asterisk <= 21.10.0 Asterisk <= 22.5.0 |
As the CVE record by Gridware states it, last updated February 26, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| sangoma | asterisk | before 18.26.3 | application |
| sangoma | asterisk | from 20.0.0 before 20.15.1 | application |
| sangoma | asterisk | from 21.0.0 before 21.10.1 | application |
| sangoma | asterisk | from 22.0.0 before 22.5.1 | application |
| sangoma | certified asterisk | 18.9 | application |
| sangoma | certified asterisk | 20.7 | application |
NVD analysis (status Modified), last modified October 19, 2026, 16:10 UTC.
How severe is CVE-2025-1131?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.0 | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:N/V:C/RE:H/U:Amber | Gridware |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-1131 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, September 24, 2025)
- EPSS
- 0.22% probability of exploitation activity in the next 30 days, percentile 13.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-427 Uncontrolled Search Path Element
Where are the vendor advisories and references?
- https://github.com/asterisk/asterisk/security/advisories/GHSA-v9q8-9j8m-5xwp
- https://lists.debian.org/debian-lts-announce/2025/10/msg00006.html
Who found and reported it?
- Abdul Mhanni (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- February 8, 2025
- Published
- September 23, 2025, 04:31 UTC
- CVE record updated
- February 26, 2026, 17:48 UTC by Gridware
- NVD
- Modified, last modified October 19, 2026, 16:10 UTC
- Last checked
- CVE list November 19, 2026, 07:10 UTC; NVD November 19, 2026, 07:17 UTC; KEV December 3, 2026, 16:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Asterisk?
- Oct 27, 2026CVE-2026-57199 asterisk: out-of-bounds write (memory corruption)
- Oct 27, 2026CVE-2026-57203 asterisk: untrusted Search Path
- Oct 27, 2026CVE-2026-57190 asterisk: SQL injection
- Oct 27, 2026CVE-2026-57191 asterisk: buffer overflow
- Oct 27, 2026CVE-2026-57192 asterisk: out-of-bounds read
- Oct 27, 2026CVE-2026-57186 asterisk: numeric Range Comparison Without Minimum Check
- Oct 27, 2026CVE-2026-57200 asterisk: path traversal (reading or writing files outside the intended folder)
- Oct 27, 2026CVE-2026-57195 asterisk: NULL pointer dereference (crash)
Questions about CVE-2025-1131
Is CVE-2025-1131 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:09 UTC. FIRST's EPSS gives it a 0.22% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Asterisk are affected by CVE-2025-1131?
Asterisk Asterisk <=18.26.2, Asterisk Asterisk <= 20.15.0, Asterisk Asterisk <= 21.10.0 and Asterisk Asterisk <= 22.5.0, per the CVE record by Gridware. The tables above give every range the sources list.
Which version fixes CVE-2025-1131?
18.26.3, 20.15.1, 21.10.1 and 22.5.1, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-1131?
High (7.0, CVSS 4.0, from Gridware). The severity table above shows each score with its source.
Where is the official record of CVE-2025-1131?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.