Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-7cmj-v6x8-frvv: org.hl7.fhir.core: ReDoS via FHIRPath matches()/replaceMatches() in FHIR Validator HTTP Endpoint

0
High
Published: 07/09/2026 (07/09/2026, 13:43:03 UTC)
Source: GCVE Database
Product: ca.uhn.hapi.fhir:org.hl7.fhir.dstu2

Description

# 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.

CVSS v3.1

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

Affected software

Mavenghsa
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2
Affected versions
>=6.9.5 <6.9.9
Mavenghsa
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may
Affected versions
>=6.9.5 <6.9.9
Mavenghsa
ca.uhn.hapi.fhir:org.hl7.fhir.dstu3
Affected versions
>=6.9.5 <6.9.9
Mavenghsa
ca.uhn.hapi.fhir:org.hl7.fhir.r4
Affected versions
>=6.9.5 <6.9.9
Mavenghsa
ca.uhn.hapi.fhir:org.hl7.fhir.r4b
Affected versions
>=6.9.5 <6.9.9
Mavenghsa
ca.uhn.hapi.fhir:org.hl7.fhir.r5
Affected versions
>=6.9.5 <6.9.9
Mavenghsa
ca.uhn.hapi.fhir:org.hl7.fhir.validation
Affected versions
>=6.9.5 <6.9.9
Mavenghsa
ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli
Affected versions
>=6.9.5 <6.9.9
Mavenghsa
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2
Affected versions
<6.9.4.2
Mavenghsa
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may
Affected versions
<6.9.4.2
Mavenghsa
ca.uhn.hapi.fhir:org.hl7.fhir.dstu3
Affected versions
<6.9.4.2
Mavenghsa
ca.uhn.hapi.fhir:org.hl7.fhir.r4
Affected versions
<6.9.4.2
Mavenghsa
ca.uhn.hapi.fhir:org.hl7.fhir.r4b
Affected versions
<6.9.4.2
Mavenghsa
ca.uhn.hapi.fhir:org.hl7.fhir.r5
Affected versions
<6.9.4.2
Mavenghsa
ca.uhn.hapi.fhir:org.hl7.fhir.validation
Affected versions
<6.9.4.2
Mavenghsa
ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli
Affected versions
<6.9.4.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-7cmj-v6x8-frvv
Osv Schema Version
1.4.0
Aliases
["CVE-2026-49485"]
Ecosystems
["Maven"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a50bac868715ace435892aa

Added to database: 07/10/2026, 09:26:32 UTC

Last updated: 07/10/2026, 09:26:32 UTC

Views: 1

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses