HAPI FHIR: ReDoS via FHIRPath matches()/replaceMatches() in FHIR Validator HTTP Endpoint
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-1333.
Summary
HAPI FHIR is a complete implementation of the HL7 FHIR standard for healthcare interoperability in Java. Prior to 6.9.7, the FHIRPathEngine implementation passes user-controlled regular expressions from matches(), matchesFull(), and replaceMatches() to Java regex operations without effective timeouts, allowing catastrophic backtracking and denial of service. This issue is fixed in version 6.9.7.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| hapifhir | org.hl7.fhir.core | before 6.9.7 | 6.9.7 | Patch available | CNA |
| — | ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 (Maven) | before 6.9.7 | 6.9.7 | Patch available | GHSA-3653-68v6-rq57 |
| — | ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may (Maven) | before 6.9.7 | 6.9.7 | Patch available | GHSA-3653-68v6-rq57 |
| — | ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 (Maven) | before 6.9.7 | 6.9.7 | Patch available | GHSA-3653-68v6-rq57 |
| — | ca.uhn.hapi.fhir:org.hl7.fhir.r4 (Maven) | before 6.9.7 | 6.9.7 | Patch available | GHSA-3653-68v6-rq57 |
| — | ca.uhn.hapi.fhir:org.hl7.fhir.r4b (Maven) | before 6.9.7 | 6.9.7 | Patch available | GHSA-3653-68v6-rq57 |
| — | ca.uhn.hapi.fhir:org.hl7.fhir.r5 (Maven) | before 6.9.7 | 6.9.7 | Patch available | GHSA-3653-68v6-rq57 |
| — | ca.uhn.hapi.fhir:org.hl7.fhir.validation (Maven) | before 6.9.7 | 6.9.7 | Patch available | GHSA-3653-68v6-rq57 |
| — | ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli (Maven) | before 6.9.7 | 6.9.7 | Patch available | GHSA-3653-68v6-rq57 |
- org.hl7.fhir.core Vendorhapifhir Affected before 6.9.7 Fixed in 6.9.7 Patch available CNA
- ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 (Maven) Vendor— Affected before 6.9.7 Fixed in 6.9.7 Patch available GHSA-3653-68v6-rq57
- ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may (Maven) Vendor— Affected before 6.9.7 Fixed in 6.9.7 Patch available GHSA-3653-68v6-rq57
- ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 (Maven) Vendor— Affected before 6.9.7 Fixed in 6.9.7 Patch available GHSA-3653-68v6-rq57
- ca.uhn.hapi.fhir:org.hl7.fhir.r4 (Maven) Vendor— Affected before 6.9.7 Fixed in 6.9.7 Patch available GHSA-3653-68v6-rq57
- ca.uhn.hapi.fhir:org.hl7.fhir.r4b (Maven) Vendor— Affected before 6.9.7 Fixed in 6.9.7 Patch available GHSA-3653-68v6-rq57
- ca.uhn.hapi.fhir:org.hl7.fhir.r5 (Maven) Vendor— Affected before 6.9.7 Fixed in 6.9.7 Patch available GHSA-3653-68v6-rq57
- ca.uhn.hapi.fhir:org.hl7.fhir.validation (Maven) Vendor— Affected before 6.9.7 Fixed in 6.9.7 Patch available GHSA-3653-68v6-rq57
- ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli (Maven) Vendor— Affected before 6.9.7 Fixed in 6.9.7 Patch available GHSA-3653-68v6-rq57
Remediation
- Fix · CNA org.hl7.fhir.core (hapifhir) Fixed in 6.9.7
- Fix · GHSA-3653-68v6-rq57 ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 (Maven) Fixed in 6.9.7 Advisory →
- Fix · GHSA-3653-68v6-rq57 ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may (Maven) Fixed in 6.9.7 Advisory →
- Fix · GHSA-3653-68v6-rq57 ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 (Maven) Fixed in 6.9.7 Advisory →
- Fix · GHSA-3653-68v6-rq57 ca.uhn.hapi.fhir:org.hl7.fhir.r4 (Maven) Fixed in 6.9.7 Advisory →
- Fix · GHSA-3653-68v6-rq57 ca.uhn.hapi.fhir:org.hl7.fhir.r4b (Maven) Fixed in 6.9.7 Advisory →
- Fix · GHSA-3653-68v6-rq57 ca.uhn.hapi.fhir:org.hl7.fhir.r5 (Maven) Fixed in 6.9.7 Advisory →
- Fix · GHSA-3653-68v6-rq57 ca.uhn.hapi.fhir:org.hl7.fhir.validation (Maven) Fixed in 6.9.7 Advisory →
- Fix · GHSA-3653-68v6-rq57 ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli (Maven) Fixed in 6.9.7 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Fuse 7 | Affected | No fix yet: Fix deferred |
| Red Hat build of Apache Camel 4 for Quarkus 3 | Affected | No fix yet |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-45367
- 2026-10-03 Alias added: GHSA-3653-68v6-rq57
- 2026-10-24 Affected versions changed · Red Hat
- 2026-10-24 CVSS score added · Red Hat
- 2026-11-06 Affected versions changed · Red Hat
References
Other 7
- https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-3653-68v6-rq57
- https://github.com/hapifhir/org.hl7.fhir.core/pull/2403
- https://github.com/hapifhir/org.hl7.fhir.core/pull/2463
- https://github.com/hapifhir/org.hl7.fhir.core/commit/275d015c680ce9f90cbe285596e50118e472bf24
- https://github.com/hapifhir/org.hl7.fhir.core/commit/e08982d2b6f6dcd6c670a762d9cf999179fbe4ed
- https://github.com/hapifhir/org.hl7.fhir.core/releases/tag/6.9.7
- https://github.com/hapifhir/org.hl7.fhir.core
More hapifhir vulnerabilities
- TI-2026-26647 HAPI FHIR: Unauthenticated SSRF via /loadIG Chains with startsWith() Credential Leak for Authentication Token Theft CVSS 3.1CRITICAL 9.3
- TI-2026-40028 HAPI FHIR: XXE in XsltUtilities.saxonTransform via unhardened Saxon TransformerFactory CVSS 4.0HIGH 8.7
- TI-2026-26645 HAPI FHIR: Authentication Credential Leakage via Improper URL Prefix Matching on HTTP Redirect in HAPI FHIR Core CVSS 3.1CRITICAL 9.1
- TI-2026-56488 HAPI FHIR: SHCParser DEFLATE infinite loop causes denial of service CVSS 3.1HIGH 7.5
- TI-2026-56487 HAPI FHIR: SHCParser unbounded DEFLATE decompression causes denial of service CVSS 3.1HIGH 7.5
- TI-2026-44485 HAPI FHIR: XHTML narrative parser unbounded recursion causes StackOverflow denial of service CVSS 3.1HIGH 7.5
Sources
- CVE-2026-45367 · CVE Program
- CVE-2026-45367 · NVD
- FIRST EPSS
- GHSA-3653-68v6-rq57 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-45367 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences