Catégories
CVE-2026-45367 high CVSS 7.5

Vulnérabilité dans ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 (CVE-2026-45367)

Résumé

Vulnérabilité dans ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 (CVE-2026-45367). Risque d'opérations non autorisées ou de divulgation. Exploitable via funcMatches. Atténuation : mise à jour vers 6.9.7 ou plus.

Description d'origine

La description telle que publiée par la source (souvent en anglais).

Summary

All implementations of FHIRPathEngine accept arbitrary FHIRPath expressions and evaluate them without input validation. The FHIRPath functions matches(), matchesFull(), and replaceMatches() pass user-controlled regular expressions directly to Java's Pattern.compile() and String.replaceAll() without complexity checks or timeouts. An attacker can send a resource containing an evil regex pattern that causes catastrophic backtracking, exhausting system resources, and causing Denial-of-Service.

Details

The vulnerability exists in regex execution in FHIRPathEngine implementations across multiple code modules. For example the org.hl7.fhir.r5 module:

Entry point 1 — FHIRPathEngine.java:5929 (R5 funcMatches):

private List funcMatches(ExecutionContext context, List focus, ExpressionNode exp) {
    String sw = convertToString(swb); // attacker-controlled regex pattern
    // ...
    Pattern p = Pattern.compile("(?s)" + sw); // VULNERABLE: no complexity check
    Matcher m = p.matcher(st);                // no timeout
    boolean ok = m.find();

Entry point 2 — FHIRPathEngine.java:5951 (R5 funcMatchesFull):

Pattern p = Pattern.compile("(?s)" + sw); // VULNERABLE: same pattern
Matcher m = p.matcher(st);
boolean ok = m.matches();

Entry point 3 — FHIRPathEngine.java:5120 (R5 funcReplaceMatches):

result.add(new StringType(convertToString(focus.get(0))
    .replaceAll(regex, repl)).noExtensions()); // VULNERA…

Source: GitHub Security Advisories (Global) NVD GitHub Advisory

Résumé généré automatiquement

Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.

Une vulnérabilité référencée CVE-2026-45367 a été découverte dans ca.uhn.hapi.fhir:org.hl7.fhir.dstu2.
Des attaquants peuvent cibler un point d'entrée spécifique comme funcMatches à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation. Score CVSS : 7.5/10.
Action : mettez à jour ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 vers 6.9.7 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 CVE-2026-45367 » sur le site de l'éditeur.

CVE-2026-45367 (ca.uhn.hapi.fhir:org.hl7.fhir.dstu2) — CWE-1333 / CVSS v3 7.5
Vecteur d'attaque : distant (réseau) / non authentifié / sans interaction utilisateur
Surface d'attaque : funcMatches / funcMatchesFull / funcReplaceMatches / ValidationTimeout
Correctif : 6.9.7 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.

❓ Quel est le problème

Une vulnérabilité (CWE-1333) affecte ca.uhn.hapi.fhir:org.hl7.fhir.dstu2. Les attaquants atteignent le code vulnérable via funcMatches sans authentification.

📍 Périmètre concerné

Consultez l'avis de l'éditeur pour les versions affectées de ca.uhn.hapi.fhir:org.hl7.fhir.dstu2. Surface d'attaque : funcMatches / funcMatchesFull / funcReplaceMatches / ValidationTimeout.

🔥 Gravité

Gravité : Élevée (CVSS 7.5/10). Risque d'opérations non autorisées ou de divulgation.

🔧 Comment corriger

Mettre à jour vers 6.9.7.

🛡️ Contournement

En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.

🔍 Détection

Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.

Actions de réponse

Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre

  1. 1
    Identify exposure identify
    Audit SBOM/dependencies for affected components.

    資産台帳・SBOM・依存マニフェストで ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 を使っているサービスとバージョンを洗い出す。

  2. 2
    Apply patch patch
    Upgrade ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 to 6.9.7

    ステージング環境で 6.9.7 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verification verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Paquets affectés

maven ca.uhn.hapi.fhir:org.hl7.fhir.dstu2
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.9.7"}]}]
maven ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.9.7"}]}]
maven ca.uhn.hapi.fhir:org.hl7.fhir.dstu3
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.9.7"}]}]
maven ca.uhn.hapi.fhir:org.hl7.fhir.r4
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.9.7"}]}]
maven ca.uhn.hapi.fhir:org.hl7.fhir.r4b
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.9.7"}]}]
maven ca.uhn.hapi.fhir:org.hl7.fhir.r5
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.9.7"}]}]
maven ca.uhn.hapi.fhir:org.hl7.fhir.validation
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.9.7"}]}]
maven ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.9.7"}]}]

Références

Nous utilisons des cookies pour l'analyse d'audience et la mesure publicitaire. Ce réglage s'applique à tous les sites de Game co., Ltd. En savoir plus