Skip to main content
← All vulnerabilities
CVE-2026-49485GHSA-7CMJ-V6X8-FRVV

HAPI FHIR: ReDoS via FHIRPath matches()/replaceMatches() in FHIR Validator HTTP Endpoint

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.9.4.2, 6.9.9
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • hapifhir org.hl7.fhir.core

    fixed in 6.9.4.2; From 6.9.5 · fixed in 6.9.9

  • ca.uhn.hapi.fhir:org.hl7.fhir.dstu2Maven

    From 6.9.5 · fixed in 6.9.9

  • ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016mayMaven

    From 6.9.5 · fixed in 6.9.9

  • ca.uhn.hapi.fhir:org.hl7.fhir.dstu3Maven

    From 6.9.5 · fixed in 6.9.9

  • ca.uhn.hapi.fhir:org.hl7.fhir.r4Maven

    From 6.9.5 · fixed in 6.9.9

  • ca.uhn.hapi.fhir:org.hl7.fhir.r4bMaven

    From 6.9.5 · fixed in 6.9.9

  • ca.uhn.hapi.fhir:org.hl7.fhir.r5Maven

    From 6.9.5 · fixed in 6.9.9

  • ca.uhn.hapi.fhir:org.hl7.fhir.validationMaven

    From 6.9.5 · fixed in 6.9.9

  • ca.uhn.hapi.fhir:org.hl7.fhir.validation.cliMaven

    From 6.9.5 · fixed in 6.9.9

  • ca.uhn.hapi.fhir:org.hl7.fhir.dstu2Maven

    fixed in 6.9.4.2

  • ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016mayMaven

    fixed in 6.9.4.2

  • ca.uhn.hapi.fhir:org.hl7.fhir.dstu3Maven

    fixed in 6.9.4.2

  • ca.uhn.hapi.fhir:org.hl7.fhir.r4Maven

    fixed in 6.9.4.2

  • ca.uhn.hapi.fhir:org.hl7.fhir.r4bMaven

    fixed in 6.9.4.2

  • ca.uhn.hapi.fhir:org.hl7.fhir.r5Maven

    fixed in 6.9.4.2

  • ca.uhn.hapi.fhir:org.hl7.fhir.validationMaven

    fixed in 6.9.4.2

  • ca.uhn.hapi.fhir:org.hl7.fhir.validation.cliMaven

    fixed in 6.9.4.2

References 6

GitHub · hapifhir/org.hl7.fhir.core