CVE-2026-40520

HIGHCVSS 8.8/10EPSS 1.38%

Last modified

CVE-2026-40520 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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.. EPSS estimates a 1.38% chance of exploitation in the next 30 days.

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.

Metrics

Weakness Enumeration

Affected Software

VendorProductVersions
FreepbxApi< 17.0.8

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is 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.
How severe is CVE-2026-40520?
CVE-2026-40520 has a CVSS score of 8.8/10 (HIGH severity). The EPSS model estimates a 1.38% probability of exploitation in the next 30 days.
How do I fix CVE-2026-40520?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2026

Are you affected by CVE-2026-40520?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST