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…
EPSS 0.7%top 52%

Ca.uhn.hapi.fhir:org.hl7.fhir.dstu2: CWE-1333: Inefficient Regular Expression Complexity in hapifhir org.hl7.fhir.core (CVE-2026-49485)

0
High
Published: 07/17/2026 (07/17/2026, 20:59:47 UTC)
Source: GCVE Database
Vendor/Project: hapifhir
Product: org.hl7.fhir.core

Description

HAPI FHIR versions prior to 6.9.4.2 and between 6.9.5 and before 6.9.9 contain a vulnerability in the FHIRPathEngine where user-supplied regular expressions are evaluated without sufficient input validation. The functions matches(), matchesFull(), and replaceMatches() use these regex patterns with an incomplete timeout mechanism, allowing crafted regex patterns to cause catastrophic backtracking. This results in excessive CPU consumption and denial of service in the FHIR Validator HTTP endpoint and related modules. The issue is fixed in versions 6.9.9 and 6.9.4.2.

CVSS v3.1

Score 7.5high

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/18/2026, 11:17:55 UTC

Technical Analysis

The vulnerability CVE-2026-49485 affects the HAPI FHIR org.hl7.fhir.core library's FHIRPathEngine implementation. It improperly handles user-controlled regular expressions passed to Java's Pattern.compile() and String.replaceAll() functions via the matches(), matchesFull(), and replaceMatches() methods. Due to incomplete timeout handling, specially crafted regex patterns can cause catastrophic backtracking, leading to CPU exhaustion and denial of service conditions. This impacts the FHIR Validator HTTP endpoint and other org.hl7.fhir.* modules. The vulnerability is resolved in versions 6.9.9 and 6.9.4.2.

Potential Impact

An attacker can exploit this vulnerability by submitting FHIR resources containing malicious regular expressions that trigger catastrophic backtracking during regex evaluation. This causes high CPU usage and denial of service in the affected components, specifically the FHIR Validator HTTP endpoint and related modules. There is no impact on confidentiality or integrity reported. The CVSS v3.1 score is 7.5 (High), reflecting network attack vector, low complexity, no privileges required, no user interaction, and impact limited to availability.

Mitigation Recommendations

This vulnerability is fixed in HAPI FHIR versions 6.9.9 and 6.9.4.2. Users should upgrade to one of these versions or later to remediate the issue. Since this is not a cloud service, remediation depends on applying these official fixes. Patch status is confirmed by the vendor advisory. No additional mitigations are specified.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 enriched: 07/18/2026, 11:17:55 UTC

Last updated: 07/19/2026, 05:26:46 UTC

Views: 47

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

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

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