CVE-2026-40520CWE-78

FreePBX api module Command Injection via GraphQL

High · published April 21, 2026

CVSS v4.0
8.6
EPSS
2%
Percentile
84.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
8.6 · HIGH
Vector
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
EPSS
0.02424 · 84.1th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2026-04-21T12:41Z
EPSS history
Timeline
  • 21 APR 12:41Z
    FreePBX api module Command Injection via GraphQL
    cvelistv5