HAPI FHIRで細工された正規表現により処理が停止するおそれ
概要
FHIRPathのmatches()などに細工された正規表現を含むリソースを送られると、CPUが使い尽くされサービス拒否(DoS)の状態になるおそれがあります。影響を受けるのはHAPI FHIRのorg.hl7.fhir各モジュールで、6.9.4.2以降の版で修正されています。6.9.4.2以降への更新をお勧めします。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 という製品で、CVE-2026-49485 という番号がついた弱点 (脆弱性) が見つかりました。
不正な操作・情報露出のリスクがあります。重要度は CVSS スコア 7.5/10 です。
対策: ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 を 6.9.4.2 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 CVE-2026-49485」を検索してください。
CVE-2026-49485 (ca.uhn.hapi.fhir:org.hl7.fhir.dstu2) — CWE-1333 / CVSS v3 7.5
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 認証不要 / 被害者操作不要
修正バージョン: 6.9.4.2 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 に 脆弱性 (CWE-1333) があります。
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 の影響バージョンはベンダーのアドバイザリで確認してください。
重要度: 重要 (CVSS 7.5/10)。不正な操作・情報露出のリスクがあります。
6.9.4.2 に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1
影響範囲の特定identify
Audit SBOM/dependencies for affected components.資産台帳・SBOM・依存マニフェストで ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 を使っているサービスとバージョンを洗い出す。
-
2
パッチ適用patch
Upgrade ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 to 6.9.4.2ステージング環境で 6.9.4.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
事後検証verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| mavenca.uhn.hapi.fhir:org.hl7.fhir.dstu2 |
6.9.4.2 未満→ 6.9.4.2 |
6.9.4.2 |
| mavenca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may |
6.9.4.2 未満→ 6.9.4.2 |
6.9.4.2 |
| mavenca.uhn.hapi.fhir:org.hl7.fhir.dstu3 |
6.9.4.2 未満→ 6.9.4.2 |
6.9.4.2 |
| mavenca.uhn.hapi.fhir:org.hl7.fhir.r4 |
6.9.4.2 未満→ 6.9.4.2 |
6.9.4.2 |
| mavenca.uhn.hapi.fhir:org.hl7.fhir.r4b |
6.9.4.2 未満→ 6.9.4.2 |
6.9.4.2 |
| mavenca.uhn.hapi.fhir:org.hl7.fhir.r5 |
6.9.4.2 未満→ 6.9.4.2 |
6.9.4.2 |
| mavenca.uhn.hapi.fhir:org.hl7.fhir.validation |
6.9.4.2 未満→ 6.9.4.2 |
6.9.4.2 |
| mavenca.uhn.hapi.fhir:org.hl7.fhir.validation.cli |
6.9.4.2 未満→ 6.9.4.2 |
6.9.4.2 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
HAPI FHIR is a complete implementation of the HL7 FHIR standard for healthcare interoperability in Java. Prior to 6.9.9 and 6.9.4.2, all implementations of FHIRPathEngine accept arbitrary FHIRPath expressions and evaluate them without input validation, and the FHIRPath functions matches(), matchesFull(), and replaceMatches() pass user-controlled regular expressions to Java's Pattern.compile() and String.replaceAll() through an incomplete timeout utility. An attacker can send a resource containing an evil regex pattern that causes catastrophic backtracking, exhausting CPU resources and causing denial of service in the FHIR Validator HTTP endpoint and affected org.hl7.fhir.* modules. This issue is fixed in versions 6.9.9 and 6.9.4.2.
出典: GitHub Security Advisories (Global) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- patch github.com
- web github.com
- web github.com
- web github.com