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 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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:freepbx:api:*:*:*:*:*:*:*:*

History

26 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (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.

Information

Published : 2026-04-21 13:16

Updated : 2026-10-26 21:10


NVD link : CVE-2026-40520

Mitre link : CVE-2026-40520

CVE.ORG link : CVE-2026-40520


JSON object : View

Products Affected

freepbx

  • api
CWE
CWE-78

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')