CVE-2026-49485

High

Description

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductCa.uhn.hapi.fhir:org.hl7.fhir.dstu2
PublishedJul 17, 2026
First seenJul 17, 2026

How to fix

Update
  • ca.uhn.hapi.fhir:org.hl7.fhir.dstu26.9.9, 6.9.4.2 or later
  • ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may6.9.9, 6.9.4.2 or later
  • ca.uhn.hapi.fhir:org.hl7.fhir.dstu36.9.9, 6.9.4.2 or later
  • ca.uhn.hapi.fhir:org.hl7.fhir.r46.9.9, 6.9.4.2 or later
  • ca.uhn.hapi.fhir:org.hl7.fhir.r4b6.9.9, 6.9.4.2 or later
  • ca.uhn.hapi.fhir:org.hl7.fhir.r56.9.9, 6.9.4.2 or later
  • ca.uhn.hapi.fhir:org.hl7.fhir.validation6.9.9, 6.9.4.2 or later
  • ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli6.9.9, 6.9.4.2 or later

Affected products

ProductAffected versionsFixed in
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2Maven6.9.5 ≤ v < 6.9.9, v < 6.9.4.26.9.9, 6.9.4.2
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016mayMaven6.9.5 ≤ v < 6.9.9, v < 6.9.4.26.9.9, 6.9.4.2
ca.uhn.hapi.fhir:org.hl7.fhir.dstu3Maven6.9.5 ≤ v < 6.9.9, v < 6.9.4.26.9.9, 6.9.4.2
ca.uhn.hapi.fhir:org.hl7.fhir.r4Maven6.9.5 ≤ v < 6.9.9, v < 6.9.4.26.9.9, 6.9.4.2
ca.uhn.hapi.fhir:org.hl7.fhir.r4bMaven6.9.5 ≤ v < 6.9.9, v < 6.9.4.26.9.9, 6.9.4.2
ca.uhn.hapi.fhir:org.hl7.fhir.r5Maven6.9.5 ≤ v < 6.9.9, v < 6.9.4.26.9.9, 6.9.4.2
ca.uhn.hapi.fhir:org.hl7.fhir.validationMaven6.9.5 ≤ v < 6.9.9, v < 6.9.4.26.9.9, 6.9.4.2
ca.uhn.hapi.fhir:org.hl7.fhir.validation.cliMaven6.9.5 ≤ v < 6.9.9, v < 6.9.4.26.9.9, 6.9.4.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-49485 · Ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 · Dark Radar