High severity7.2NVD Advisory· Published Apr 21, 2026· Updated Apr 23, 2026
CVE-2026-40520
CVE-2026-40520
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
2Patches
Vulnerability mechanics
References
4- github.com/FreePBX/api/commit/5f194e39a47e5481e8947f9694304d32724175f6nvdPatch
- www.vulncheck.com/advisories/freepbx-api-module-command-injection-via-graphqlnvdThird Party Advisory
- github.com/FreePBX/api/blob/5f194e39a47e5481e8947f9694304d32724175f6/Api.class.phpnvdProduct
- github.com/FreePBX/api/blob/5f194e39a47e5481e8947f9694304d32724175f6/ApiGqlHelper.class.phpnvdProduct
News mentions
0No linked articles in our index yet.