CVE-2026-40520: FreePBX api module Command Injection via GraphQL

Published Apr 21, 2026
·
Updated

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 shellexec() 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 Software

2 affected components
Sangoma FreePBX api module<=17.0.8
FreePBX api<17.0.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade FreePBX api module to a version that resolves this vulnerability.

    Fixed in 17.0.8

Event History

Apr 21, 2026
CVE Published
via MITRE·12:41 PM
Data Sourced
via MITRE·12:41 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-40520?

CVE-2026-40520 has a critical severity rating due to the potential for command injection.

2

How do I fix CVE-2026-40520?

To fix CVE-2026-40520, update the FreePBX api module to version 17.0.9 or later where the vulnerability is patched.

3

What type of vulnerability is CVE-2026-40520?

CVE-2026-40520 is a command injection vulnerability that can allow attackers to execute arbitrary commands.

4

Who is affected by CVE-2026-40520?

CVE-2026-40520 affects users of the FreePBX api module version 17.0.8 and earlier.

5

What components of FreePBX are impacted by CVE-2026-40520?

CVE-2026-40520 impacts the initiateGqlAPIProcess() function within the FreePBX api module.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203