Loading...
Skip to main content

CVE-2026-49485 — Vulnerability in...

HIGH

org.hl7.fhir.core: ReDoS via FHIRPath matches()/replaceMatches() in FHIR Validator HTTP Endpoint

Published July 9, 2026Updated July 9, 2026Source: osv

Summary

# Summary All implementations of FHIRPathEngine accept arbitrary FHIRPath expressions and evaluate them without input validation. The utility intended to secure this evaluation did so incorrectly, and did not fully cover all places in which evaluation was being done. 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. The FHIRPath functions matches(), matchesFull(), and replaceMatches() pass user-controlled regular expressions to Java's Pattern.compile() and String.replaceAll() through a utility class designed to time out after a specified interval. That utility correctly cancelled a single executor thread and returned with an exception, but the execution within the thread had no means to listen for this cancellation and would persist. Furthermore, three modules contained method calls in FHIRPathEngine that were not protected by this utility class. ## Why this is exploitable: Java's Pattern.compile() with a pattern like (a+)+$ against input "aaaaaaaaaaaaaaaaaaaaaa!" causes exponential backtracking (O(2^n) time complexity). ## Impact CPU Exhaustion: The exponential backtracking in Java's regex engine consumes 100% of a CPU core for the duration of the hang (effectively infinite for sufficiently long input strings) for callers of FHIRPathEngine.

Advisory Timeline

  • First published July 9, 2026 (95 days ago).
  • Last revised July 9, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 to 6.9.9 or later
<!-- Update pom.xml dependency version to 6.9.9 for ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 -->
Maven
Update ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may to 6.9.4.2 or later
<!-- Update pom.xml dependency version to 6.9.4.2 for ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may -->
Maven
Update ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 to 6.9.4.2 or later
<!-- Update pom.xml dependency version to 6.9.4.2 for ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 -->
Maven
Update ca.uhn.hapi.fhir:org.hl7.fhir.validation to 6.9.4.2 or later
<!-- Update pom.xml dependency version to 6.9.4.2 for ca.uhn.hapi.fhir:org.hl7.fhir.validation -->
Maven
Update ca.uhn.hapi.fhir:org.hl7.fhir.validation to 6.9.9 or later
<!-- Update pom.xml dependency version to 6.9.9 for ca.uhn.hapi.fhir:org.hl7.fhir.validation -->
Maven
Update ca.uhn.hapi.fhir:org.hl7.fhir.r4b to 6.9.4.2 or later
<!-- Update pom.xml dependency version to 6.9.4.2 for ca.uhn.hapi.fhir:org.hl7.fhir.r4b -->
Maven
Update ca.uhn.hapi.fhir:org.hl7.fhir.r4 to 6.9.4.2 or later
<!-- Update pom.xml dependency version to 6.9.4.2 for ca.uhn.hapi.fhir:org.hl7.fhir.r4 -->
Maven
Update ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli to 6.9.9 or later
<!-- Update pom.xml dependency version to 6.9.9 for ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli -->
Maven
Update ca.uhn.hapi.fhir:org.hl7.fhir.r5 to 6.9.4.2 or later
<!-- Update pom.xml dependency version to 6.9.4.2 for ca.uhn.hapi.fhir:org.hl7.fhir.r5 -->
Maven
Update ca.uhn.hapi.fhir:org.hl7.fhir.r4b to 6.9.9 or later
<!-- Update pom.xml dependency version to 6.9.9 for ca.uhn.hapi.fhir:org.hl7.fhir.r4b -->
Maven
Update ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 to 6.9.9 or later
<!-- Update pom.xml dependency version to 6.9.9 for ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 -->
Maven
Update ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli to 6.9.4.2 or later
<!-- Update pom.xml dependency version to 6.9.4.2 for ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli -->
Maven
Update ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may to 6.9.9 or later
<!-- Update pom.xml dependency version to 6.9.9 for ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may -->
Maven
Update ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 to 6.9.4.2 or later
<!-- Update pom.xml dependency version to 6.9.4.2 for ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 -->
Maven
Update ca.uhn.hapi.fhir:org.hl7.fhir.r4 to 6.9.9 or later
<!-- Update pom.xml dependency version to 6.9.9 for ca.uhn.hapi.fhir:org.hl7.fhir.r4 -->
Maven
Update ca.uhn.hapi.fhir:org.hl7.fhir.r5 to 6.9.9 or later
<!-- Update pom.xml dependency version to 6.9.9 for ca.uhn.hapi.fhir:org.hl7.fhir.r5 -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (16)

Affects 1 ecosystem: maven (8).

PackageEcosystemAffectedFixed In
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2
maven
6.9.5, 6.9.6, 6.9.7, 6.9.86.9.9
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may
maven
0.0.1, 0.0.14, 0.0.2, 0.1.18 (+381 more)6.9.4.2
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2
maven
0.0.1, 0.0.14, 0.0.2, 0.1.18 (+381 more)6.9.4.2
ca.uhn.hapi.fhir:org.hl7.fhir.validation
maven
0.0.1, 0.0.14, 0.0.2, 0.1.18 (+381 more)6.9.4.2
ca.uhn.hapi.fhir:org.hl7.fhir.validation
maven
6.9.5, 6.9.6, 6.9.7, 6.9.86.9.9
ca.uhn.hapi.fhir:org.hl7.fhir.r4b
maven
5.6.100, 5.6.101, 5.6.102, 5.6.103 (+254 more)6.9.4.2
ca.uhn.hapi.fhir:org.hl7.fhir.r4
maven
0.0.1, 0.0.14, 0.0.2, 0.1.18 (+381 more)6.9.4.2
ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli
maven
All versions6.9.9
ca.uhn.hapi.fhir:org.hl7.fhir.r5
maven
0.0.1, 0.0.14, 0.0.2, 0.1.18 (+381 more)6.9.4.2
ca.uhn.hapi.fhir:org.hl7.fhir.r4b
maven
6.9.5, 6.9.6, 6.9.7, 6.9.86.9.9
ca.uhn.hapi.fhir:org.hl7.fhir.dstu3
maven
6.9.5, 6.9.6, 6.9.7, 6.9.86.9.9
ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli
maven
4.0.0, 4.0.1, 4.0.2, 4.0.3 (+3 more)6.9.4.2
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may
maven
6.9.5, 6.9.6, 6.9.7, 6.9.86.9.9
ca.uhn.hapi.fhir:org.hl7.fhir.dstu3
maven
0.0.1, 0.0.14, 0.0.2, 0.1.18 (+381 more)6.9.4.2
ca.uhn.hapi.fhir:org.hl7.fhir.r4
maven
6.9.5, 6.9.6, 6.9.7, 6.9.86.9.9
ca.uhn.hapi.fhir:org.hl7.fhir.r5
maven
6.9.5, 6.9.6, 6.9.7, 6.9.86.9.9

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Frequently Asked Questions

What is CVE-2026-49485?
org.hl7.fhir.core: ReDoS via FHIRPath matches()/replaceMatches() in FHIR Validator HTTP Endpoint This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
How do I check if my project is affected by CVE-2026-49485?
CVE-2026-49485 affects ca.uhn.hapi.fhir:org.hl7.fhir.dstu2, ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may and ca.uhn.hapi.fhir:org.hl7.fhir.validation (and 5 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-49485 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.5

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-7cmj-v6x8-frvv

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies