CVE-2026-40520

HIGH CVSS 4.0: 8.6 EPSS 1.43%
Updated Oct 27, 2026
Freepbx
Parameter Value
CVSS 8.6 (HIGH)
Affected Versions before 17.0.8
Fixed In 17.0.8
Type CWE-78 (OS Command Injection)
Vendor Freepbx
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
High
Admin privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Freepbx Api
cpe:2.3:a:freepbx:api:*:*:*:*:*:*:*:*
— 17.0.8