HAPI FHIR: ReDoS via FHIRPath matches()/replaceMatches() in FHIR Validator HTTP Endpoint
Summary
| CVE | CVE-2026-49485 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-17 22:17:16 UTC |
| Updated | 2026-07-20 15:16:39 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.5 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS: 0.006750000 probability, percentile 0.481770000 (date 2026-07-20)
Problem Types: CWE-400 | CWE-1333 | CWE-1333 CWE-1333: Inefficient Regular Expression Complexity | CWE-400 CWE-400: Uncontrolled Resource Consumption
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 3.1 | CNA | DECLARED | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Hapifhir | Org.hl7.fhir.core | affected < 6.9.4.2 | Not specified |
| CNA | Hapifhir | Org.hl7.fhir.core | affected >= 6.9.5, < 6.9.9 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/hapifhir/org.hl7.fhir.core/commit/109c88837c032ef399b2eb87ddd... | [email protected] | github.com | |
| github.com/hapifhir/org.hl7.fhir.core/releases/tag/6.9.9 | [email protected] | github.com | |
| github.com/hapifhir/org.hl7.fhir.core/releases/tag/6.9.4.2 | [email protected] | github.com | |
| github.com/hapifhir/org.hl7.fhir.core/commit/e08982d2b6f6dcd6c670a762d9c... | [email protected] | github.com | |
| github.com/hapifhir/org.hl7.fhir.core/pull/2463 | [email protected] | github.com | |
| github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-7cmj-v6x8... | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.