HAPI FHIR: ReDoS via FHIRPath matches()/replaceMatches() in FHIR Validator HTTP Endpoint

Summary

CVECVE-2026-49485
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-07-17 22:17:16 UTC
Updated2026-07-20 15:16:39 UTC
DescriptionHAPI 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


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
3.1CNADECLARED7.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v3.1 Breakdown

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

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report