{"id":"CVE-2026-40520","published":"2026-04-21T12:41:05Z","modified":"2026-09-24T14:17:37Z","title":"FreePBX api module Command Injection via GraphQL","vendor":"FreePBX","product":"api","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01433,"percentile":0.73715,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/FreePBX/api/commit/5f194e39a47e5481e8947f9694304d32724175f6","tags":["patch"]},{"url":"https://github.com/FreePBX/api/blob/5f194e39a47e5481e8947f9694304d32724175f6/Api.class.php#L546C1-L554C3","tags":["related"]},{"url":"https://github.com/FreePBX/api/blob/5f194e39a47e5481e8947f9694304d32724175f6/ApiGqlHelper.class.php#L34C1-L36C136","tags":["related"]},{"url":"https://www.vulncheck.com/advisories/freepbx-api-module-command-injection-via-graphql","tags":["third-party-advisory"]}],"priority":{"score":19.8,"factors":[{"name":"EPSS percentile","points":14.74},{"name":"CVSS severity","points":5.04}]},"vendorSlug":"freepbx","affectedVersions":[{"vendor":"FreePBX","product":"api","versions":["<= 17.0.8"]}],"fixedVersions":[{"vendor":"FreePBX","product":"api","versions":["5f194e39a47e5481e8947f9694304d32724175f6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-21T13:31:32.268711Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-24086","exploited":false,"provenance":"source"}}