Vulnerabilities in pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.r4b
PACKAGECVE-2026-49485 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Org.hl7.fhir.dstu2 libraries in the Maven ecosystem. The issue involves redos via fhirpath matches()/replacematches() in fhir validator http endpoint. Remediation is available by upgrading affected packages to version 6.9.9, 6.9.4.2.
pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.r4b
Vulnerability advisories affecting package pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.r4b. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-7cmj-v6x8-frvv | CVE-2026-49485 | HIGH | org.hl7.fhir.core: ReDoS via FHIRPath matches()/replaceMatches() in FHIR Validator HTTP Endpoint |
| GHSA-3653-68v6-rq57 | CVE-2026-45367 | HIGH | HAPI FHIR: ReDoS via FHIRPath matches()/replaceMatches() in FHIR Validator HTTP Endpoint |
| GHSA-p7m9-v2cm-2h7m | CVE-2026-33180 | CRITICAL | HAPI FHIR HTTP authentication leak in redirects |
| GHSA-jqh6-9574-5x22 | CVE-2023-24057 | CRITICAL | MITM based Zip Slip in `ca.uhn.hapi.fhir:org.hl7.fhir.core` |
| GHSA-gr3c-q7xf-47vh | CVE-2024-52007 | HIGH | XXE vulnerability in XSLT parsing in `org.hl7.fhir.core` |
| GHSA-4cf2-cxp3-rjr7 | CVE-2024-51132 | HIGH | HAPI FHIR XML External Entity (XXE) vulnerability |
| GHSA-6cr6-ph3p-f5rf | CVE-2024-45294 | HIGH | XXE vulnerability in XSLT transforms in `org.hl7.fhir.core` |
| GHSA-9654-pr4f-gh6m | CVE-2023-28465 | HIGH | HL7 FHIR Partial Path Zip Slip due to bypass of CVE-2023-24057 |
CVE-2026-49485 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2026-49485
To remediate this vulnerability, upgrade all affected Org.hl7.fhir.dstu2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>org.hl7.fhir.dstu2</artifactId>
<version>6.9.9</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>org.hl7.fhir.dstu2016may</artifactId>
<version>6.9.9</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>org.hl7.fhir.dstu3</artifactId>
<version>6.9.9</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>org.hl7.fhir.r4</artifactId>
<version>6.9.9</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>org.hl7.fhir.r4b</artifactId>
<version>6.9.9</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>org.hl7.fhir.r5</artifactId>
<version>6.9.9</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>org.hl7.fhir.validation</artifactId>
<version>6.9.9</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>org.hl7.fhir.validation.cli</artifactId>
<version>6.9.9</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>org.hl7.fhir.dstu2</artifactId>
<version>6.9.4.2</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>org.hl7.fhir.dstu2016may</artifactId>
<version>6.9.4.2</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>org.hl7.fhir.dstu3</artifactId>
<version>6.9.4.2</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>org.hl7.fhir.r4</artifactId>
<version>6.9.4.2</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>org.hl7.fhir.r4b</artifactId>
<version>6.9.4.2</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>org.hl7.fhir.r5</artifactId>
<version>6.9.4.2</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>org.hl7.fhir.validation</artifactId>
<version>6.9.4.2</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>org.hl7.fhir.validation.cli</artifactId>
<version>6.9.4.2</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=ca.uhn.hapi.fhir
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-49485, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=ca.uhn.hapi.fhir
Analyze the terminal output to locate any version of Org.hl7.fhir.dstu2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.9.9), your application is affected.
Note: The mvn dependency:tree -Dincludes=ca.uhn.hapi.fhir command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Org.hl7.fhir.dstu2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-49485 Affected Org.hl7.fhir.dstu2 Versions
16 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2
|
Maven |
≥ 6.9.5
< 6.9.9
|
6.9.9
|
|
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may
|
Maven |
≥ 6.9.5
< 6.9.9
|
6.9.9
|
|
ca.uhn.hapi.fhir:org.hl7.fhir.dstu3
|
Maven |
≥ 6.9.5
< 6.9.9
|
6.9.9
|
|
ca.uhn.hapi.fhir:org.hl7.fhir.r4
|
Maven |
≥ 6.9.5
< 6.9.9
|
6.9.9
|
|
ca.uhn.hapi.fhir:org.hl7.fhir.r4b
|
Maven |
≥ 6.9.5
< 6.9.9
|
6.9.9
|
|
ca.uhn.hapi.fhir:org.hl7.fhir.r5
|
Maven |
≥ 6.9.5
< 6.9.9
|
6.9.9
|
|
ca.uhn.hapi.fhir:org.hl7.fhir.validation
|
Maven |
≥ 6.9.5
< 6.9.9
|
6.9.9
|
|
ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli
|
Maven |
≥ 6.9.5
< 6.9.9
|
6.9.9
|
|
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2
|
Maven |
< 6.9.4.2
|
6.9.4.2
|
|
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may
|
Maven |
< 6.9.4.2
|
6.9.4.2
|
|
ca.uhn.hapi.fhir:org.hl7.fhir.dstu3
|
Maven |
< 6.9.4.2
|
6.9.4.2
|
|
ca.uhn.hapi.fhir:org.hl7.fhir.r4
|
Maven |
< 6.9.4.2
|
6.9.4.2
|
|
ca.uhn.hapi.fhir:org.hl7.fhir.r4b
|
Maven |
< 6.9.4.2
|
6.9.4.2
|
|
ca.uhn.hapi.fhir:org.hl7.fhir.r5
|
Maven |
< 6.9.4.2
|
6.9.4.2
|
|
ca.uhn.hapi.fhir:org.hl7.fhir.validation
|
Maven |
< 6.9.4.2
|
6.9.4.2
|
|
ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli
|
Maven |
< 6.9.4.2
|
6.9.4.2
|
References
Frequently Asked Questions
What is CVE-2026-49485?
Which Org.hl7.fhir.dstu2 versions are affected?
What version fixes CVE-2026-49485?
Is org.hl7.fhir.dstu2 affected?
Is org.hl7.fhir.dstu2016may affected?
What is the CVSS score of CVE-2026-49485?
What CWE is associated with CVE-2026-49485?
How can I check Maven dependencies for CVE-2026-49485?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7cmj-v6x8-frvv",
"modified" : "2026-07-09T13:43:03Z",
"published" : "2026-07-09T13:43:03Z",
"aliases" : [ "CVE-2026-49485" ],
"summary" : "org.hl7.fhir.core: ReDoS via FHIRPath matches()/replaceMatches() in FHIR Validator HTTP Endpoint",
"details" : "# Summary\nAll 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.\n\n## Details\nThe 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.\n\n## Why this is exploitable:\n\nJava's Pattern.compile() with a pattern like (a+)+$ against input \"aaaaaaaaaaaaaaaaaaaaaa!\" causes exponential backtracking (O(2^n) time complexity). \n\n## Impact\nCPU 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "ca.uhn.hapi.fhir:org.hl7.fhir.dstu2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.9.5"
}, {
"fixed" : "6.9.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.9.5"
}, {
"fixed" : "6.9.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "ca.uhn.hapi.fhir:org.hl7.fhir.dstu3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.9.5"
}, {
"fixed" : "6.9.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "ca.uhn.hapi.fhir:org.hl7.fhir.r4"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.9.5"
}, {
"fixed" : "6.9.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "ca.uhn.hapi.fhir:org.hl7.fhir.r4b"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.9.5"
}, {
"fixed" : "6.9.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "ca.uhn.hapi.fhir:org.hl7.fhir.r5"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.9.5"
}, {
"fixed" : "6.9.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "ca.uhn.hapi.fhir:org.hl7.fhir.validation"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.9.5"
}, {
"fixed" : "6.9.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.9.5"
}, {
"fixed" : "6.9.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "ca.uhn.hapi.fhir:org.hl7.fhir.dstu2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.9.4.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.9.4.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "ca.uhn.hapi.fhir:org.hl7.fhir.dstu3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.9.4.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "ca.uhn.hapi.fhir:org.hl7.fhir.r4"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.9.4.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "ca.uhn.hapi.fhir:org.hl7.fhir.r4b"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.9.4.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "ca.uhn.hapi.fhir:org.hl7.fhir.r5"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.9.4.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "ca.uhn.hapi.fhir:org.hl7.fhir.validation"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.9.4.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.9.4.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-7cmj-v6x8-frvv"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/hapifhir/org.hl7.fhir.core"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333", "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-09T13:43:03Z",
"nvd_published_at" : null
}
}