製品・ソフトウェアに関する情報
FreePBXのAPI ModuleにおけるOS コマンドインジェクションの脆弱性
Title FreePBXのAPI ModuleにおけるOS コマンドインジェクションの脆弱性
Summary

FreePBXのapiモジュールバージョン17.0.8およびそれ以前には、initiateGqlAPIProcess()関数にコマンドインジェクションの脆弱性があります。この関数では、GraphQLのミューテーション入力フィールドがサニタイズやエスケープ処理なしに直接shell_exec()に渡されています。有効なベアラートークンを持つ認証済みユーザーは、moduleフィールドにバックティックで囲まれたコマンドを含むGraphQLのmoduleOperationsミューテーションを送信することで、ウェブサーバーユーザーとして基盤となるホスト上で任意のコマンドを実行可能です。

Possible impacts 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 21, 2026, midnight
Registration Date April 27, 2026, 11:26 a.m.
Last Update April 27, 2026, 11:26 a.m.
CVSS3.0 : 重要
Score 8.8
Vector CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected System
FreePBX
API Module 17.0.8 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年04月27日]
  掲載
April 27, 2026, 11:26 a.m.

NVD Vulnerability Information
CVE-2026-40520
Summary

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.

Publication Date April 21, 2026, 10:16 p.m.
Registration Date April 25, 2026, 4:03 a.m.
Last Update April 24, 2026, 1:27 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:freepbx:api:*:*:*:*:*:*:*:* 17.0.8
Related information, measures and tools
Common Vulnerabilities List