RCE in Freepbx Api
CVE-2026-40520
FreePBX api module version 17.0.8 and prior contain a command injection vulnerability in the initiateGqlAPIProcess() function where GraphQL mutation input fields are passed directly to shell_exec() without sanitization or escaping. An auth…
Vulnerability class: Command Injection (OS Command Injection)
EPSS: 0.014 (69.1th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Freepbx Api — versions 0, 5f194e39a47e5481e8947f9694304d32724175f6
Weakness classification (CWE)
References
- disclosure@vulncheck.com (Patch, patch)
- disclosure@vulncheck.com (related, Product)
- disclosure@vulncheck.com (related, Product)
- disclosure@vulncheck.com (Third Party Advisory, third-party-advisory)
Frequently asked questions
- What is CVE-2026-40520?
- CVE-2026-40520 is a high-severity vulnerability in Freepbx Api, classified under OS Command Injection. CVSS score: 7.2/10. Published 2026-04-21.
- How severe is CVE-2026-40520?
- High severity. CVSS v3 base score is 7.2 out of 10.