CVE-2026-49485
Published:July 17, 2026
Updated:July 21, 2026
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.
Affected Packages
ca.uhn.hapi.fhir:org.hl7.fhir.r5 (JAVA):
Affected version(s) >=6.9.5 <6.9.9Fix Suggestion:
Update to version 6.9.9ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may (JAVA):
Affected version(s) >=6.9.5 <6.9.9Fix Suggestion:
Update to version 6.9.9ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 (JAVA):
Affected version(s) >=0.0.1 <6.9.4.2Fix Suggestion:
Update to version 6.9.4.2ca.uhn.hapi.fhir:org.hl7.fhir.r4 (JAVA):
Affected version(s) >=0.0.1 <6.9.4.2Fix Suggestion:
Update to version 6.9.4.2ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may (JAVA):
Affected version(s) >=0.0.1 <6.9.4.2Fix Suggestion:
Update to version 6.9.4.2ca.uhn.hapi.fhir:org.hl7.fhir.r4b (JAVA):
Affected version(s) >=6.9.5 <6.9.9Fix Suggestion:
Update to version 6.9.9ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 (JAVA):
Affected version(s) >=6.9.5 <6.9.9Fix Suggestion:
Update to version 6.9.9ca.uhn.hapi.fhir:org.hl7.fhir.r4 (JAVA):
Affected version(s) >=6.9.5 <6.9.9Fix Suggestion:
Update to version 6.9.9ca.uhn.hapi.fhir:org.hl7.fhir.r5 (JAVA):
Affected version(s) >=0.0.1 <6.9.4.2Fix Suggestion:
Update to version 6.9.4.2ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli (JAVA):
Affected version(s) >=4.0.0 <6.9.4.2Fix Suggestion:
Update to version 6.9.4.2ca.uhn.hapi.fhir:org.hl7.fhir.validation (JAVA):
Affected version(s) >=6.9.5 <6.9.9Fix Suggestion:
Update to version 6.9.9ca.uhn.hapi.fhir:org.hl7.fhir.r4b (JAVA):
Affected version(s) >=5.6.22 <6.9.4.2Fix Suggestion:
Update to version 6.9.4.2ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 (JAVA):
Affected version(s) >=0.0.1 <6.9.4.2Fix Suggestion:
Update to version 6.9.4.2ca.uhn.hapi.fhir:org.hl7.fhir.validation (JAVA):
Affected version(s) >=0.0.1 <6.9.4.2Fix Suggestion:
Update to version 6.9.4.2ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 (JAVA):
Affected version(s) >=6.9.5 <6.9.9Fix Suggestion:
Update to version 6.9.9Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
0.68