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.003 (55.8th 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
- github.com/FreePBX/api/commit/5f194e39a47e5481e8947f9694304d32724175f6 (patch)
- github.com/FreePBX/api/blob/5f194e39a47e5481e8947f9694304d32724175f6/Api.class… (related)
- github.com/FreePBX/api/blob/5f194e39a47e5481e8947f9694304d32724175f6/ApiGqlHelp… (related)
- www.vulncheck.com/advisories/freepbx-api-module-command-injection-via-graphql (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.