CVE-2026-40520
JSON

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 packageVersionsReported by
FreePBX apiup to 17.0.8, before 17.0.8
Not affected: 5f194e39a47e5481e8947f9694304d32724175f6
CVE List, NVD

All scores

VulnCheck8.6high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-78

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

SourceRecordLicence
CVE ListCVE-2026-40520 changed 2026-09-24CVE Terms of Use
NVDCVE-2026-40520 changed 2026-10-26Public domain