org.openmrs.web:openmrs-web に パストラバーサル (CVE-2026-40076)
概要
org.openmrs.web:openmrs-web に パストラバーサル (CVE-2026-40076) が存在。悪用されるとシステム全体を乗っ取られる可能性があります。POST /openmrs/ws/rest/v1/module 経由で攻撃可能。
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
Affected Versions
version ≤ 2.7.8 (latest version at time of disclosure)
https://github.com/openmrs/openmrs-core
Impact
The endpoint POST /openmrs/ws/rest/v1/module is vulnerable to a path traversal (Zip Slip) attack. An authenticated attacker can upload a crafted .omod archive containing ZIP entries with directory traversal sequences. Upon automatic extraction by the server, the incomplete path validation in WebModuleUtil.startModule() fails to prevent entries such as web/module/../../../../malicious.jsp from being written outside the intended module directory. If the traversal target falls within the web application root (e.g., /usr/local/tomcat/webapps/openmrs/), the attacker achieves arbitrary file write and subsequent Remote Code Execution.
Notably, other extraction methods in the same codebase (ModuleUtil.expandJar(), TestInstallUtil.addZippedTestModules()) are properly protected with normalize().startsWith() checks — this vulnerability is an oversight where the same fix was not applied.
Furthermore, the module.allow_web_admin runtime property, which is intended to restrict administrators from managing modules via the web interface, only gates the Legacy UI controller entry point. The REST API endpoint POST /openmrs/ws/rest/v1/module does not check this property, allowing this restriction to be fully bypassed.
Steps to Reproduce
- Construct a malicious
.omodfile (which is a ZIP/JAR archive) containing a ZIP entry with a path trav…
出典: GitHub Security Advisories (Global) NVD GitHub Advisory
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
org.openmrs.web:openmrs-web という製品で、CVE-2026-40076 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに POST /openmrs/ws/rest/v1/module のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
悪用されるとシステム全体を乗っ取られる可能性があります。重要度は CVSS スコア 8.8/10 です。
対策: ベンダー公式の修正版に更新してください。
心配なら、システム担当者や製品の公式サイトで「org.openmrs.web:openmrs-web CVE-2026-40076」を検索してください。
CVE-2026-40076 (org.openmrs.web:openmrs-web) — CWE-22 / CVSS v3 8.8
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 被害者操作不要
脆弱箇所: POST /openmrs/ws/rest/v1/module / POST /admin/modules/moduleList.form / POST /ws/rest/v1/module / module.allow_web_admin
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
org.openmrs.web:openmrs-web に パストラバーサル (CWE-22) があります。攻撃者は POST /openmrs/ws/rest/v1/module を経由して脆弱な処理に到達できます。
org.openmrs.web:openmrs-web の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: POST /openmrs/ws/rest/v1/module / POST /admin/modules/moduleList.form / POST /ws/rest/v1/module / module.allow_web_admin。
重要度: 重要 (CVSS 8.8/10)。悪用されるとシステム全体を乗っ取られる可能性があります。
ベンダー公式アドバイザリの修正版に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFのアクセスログで POST /openmrs/ws/rest/v1/module への異常リクエスト (不正な認証ヘッダ、SQL構文)を検索。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
Audit SBOM/dependencies for affected components.資産台帳・SBOM・依存マニフェストで org.openmrs.web:openmrs-web を使っているサービスとバージョンを洗い出す。
-
2ログでの侵入兆候検索 detect
grep 'POST /openmrs/ws/rest/v1/module' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
POST /openmrs/ws/rest/v1/moduleへの異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3事後検証 verify
Replay attack against POST /openmrs/ws/rest/v1/module on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。
影響パッケージ
参照URL
- advisory nvd.nist.gov
- exploit github.com
- package github.com
- web github.com