CVE-2026-40520

FreePBX api module Command Injection via GraphQL

HIGH
8.8
CVSS Score
Published: April 21, 2026 at 12:41 PM UTC
Updated: July 14, 2026 at 09:34 PM UTC
1 product affected across 1 vendorAPI

Using api by FreePBX?

Get instant alerts when new vulnerabilities affect api - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 1%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≤ 17.0.8v < 17.0.8
Affected range stops below 17.0.8, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5f194e39a47e5481e8947f9694304d32724175f6 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-78

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card