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 50%

CVE-2026-49485: CWE-1333: Inefficient Regular Expression Complexity in hapifhir org.hl7.fhir.core

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

A vulnerability in HAPI FHIR's org.hl7.fhir.core module allows denial of service via inefficient regular expression evaluation. Versions prior to 6.9.4.2 and between 6.9.5 and before 6.9.9 accept arbitrary FHIRPath expressions without sufficient input validation. The matches(), matchesFull(), and replaceMatches() functions pass user-controlled regex patterns to Java's Pattern.compile() and String.replaceAll() with an incomplete timeout mechanism, enabling catastrophic backtracking and CPU exhaustion. This 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/25/2026, 21:00:33 UTC

Technical Analysis

HAPI FHIR's FHIRPathEngine implementations in org.hl7.fhir.core versions before 6.9.4.2 and from 6.9.5 up to but not including 6.9.9 allow user-supplied regular expressions to be evaluated without adequate input validation or effective timeout controls. The functions matches(), matchesFull(), and replaceMatches() pass these regex patterns to Java's Pattern.compile() and String.replaceAll(), which can lead to catastrophic backtracking. This results in excessive CPU consumption and denial of service, particularly impacting the FHIR Validator HTTP endpoint. The vulnerability is addressed by fixes in versions 6.9.4.2 and 6.9.9.

Potential Impact

An attacker can cause a denial of service by submitting specially crafted FHIR resources containing malicious regular expressions that trigger catastrophic backtracking in the vulnerable functions. This leads to CPU exhaustion and service disruption of the FHIR Validator HTTP endpoint and other affected modules. There is no impact on confidentiality or integrity reported.

Mitigation Recommendations

This vulnerability is fixed in HAPI FHIR versions 6.9.4.2 and 6.9.9. Users should upgrade to at least one of these versions to remediate the issue. No other mitigation or workaround is indicated by the vendor advisory. Patch status is confirmed by the vendor advisory.

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/25/2026, 21:00:33 UTC

Last updated: 09/01/2026, 22:52:12 UTC

Views: 164

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