8.6high
FreePBX api module Command Injection via GraphQL
- Severity
- 8.6high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 2.52% (higher than 86% of CVEs)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
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 authenticated user with a valid bearer token can send a GraphQL moduleOperations mutation with backtick-wrapped commands in the module field to execute arbitrary commands on the underlying host as the web server user.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| FreePBX api | up to 17.0.8, before 17.0.8 Not affected: 5f194e39a47e5481e8947f9694304d32724175f6 | CVE List, NVD |
All scores
| VulnCheck | 8.6high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| VulnCheck | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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 authenticated user with a valid bearer token can send a GraphQL moduleOperations mutation with backtick-wrapped commands in the module field to execute arbitrary commands on the underlying host as the web server user.
NVD (es)
El módulo API de FreePBX versión 17.0.8 y anteriores contienen una vulnerabilidad de inyección de comandos en la función initiateGqlAPIProcess() donde los campos de entrada de mutación de GraphQL se pasan directamente a shell_exec() sin saneamiento ni escape. Un usuario autenticado con un token de portador válido puede enviar una mutación GraphQL moduleOperations con comandos envueltos en comillas invertidas en el campo module para ejecutar comandos arbitrarios en el host subyacente como el usuario del servidor web.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-40520 changed 2026-09-24 | CVE Terms of Use |
| NVD | CVE-2026-40520 changed 2026-10-26 | Public domain |