Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40520: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in FreePBX api

0
High
VulnerabilityCVE-2026-40520cvecve-2026-40520cwe-78
Published: Tue Apr 21 2026 (04/21/2026, 12:41:05 UTC)
Source: CVE Database V5
Vendor/Project: FreePBX
Product: api

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-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/21/2026, 13:31:07 UTC

Technical Analysis

CVE-2026-40520 is an OS command injection vulnerability in FreePBX api module version 17.0.8 and prior. The issue arises in the initiateGqlAPIProcess() function where user-supplied GraphQL mutation input fields are passed unsanitized to shell_exec(), allowing an authenticated attacker with a valid bearer token to execute arbitrary shell commands on the underlying host as the web server user. This vulnerability is classified under CWE-78 and has a CVSS 4.0 base score of 8.6, indicating high severity. No patch or official remediation level has been disclosed as of the publication date.

Potential Impact

Successful exploitation allows an authenticated attacker to execute arbitrary commands on the host system with the privileges of the web server user. This could lead to unauthorized system access, data compromise, or further system compromise depending on the commands executed. The vulnerability requires authentication with a valid bearer token, limiting exploitation to authorized users or those who have obtained credentials.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to the FreePBX api module to trusted users only and monitor for suspicious activity involving GraphQL mutations. Avoid exposing the vulnerable API to untrusted networks. Follow vendor channels for updates on patches or official mitigations.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-04-13T20:29:02.810Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69e7789819fe3cd2cdd1623b

Added to database: 4/21/2026, 1:16:08 PM

Last enriched: 4/21/2026, 1:31:07 PM

Last updated: 4/22/2026, 6:05:46 AM

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses