Skip to main content

HAPI FHIR EUVDEUVD-2026-54639

| CVE-2026-62295 HIGH
Improper Input Validation (CWE-20)
2026-08-07 security-advisories@github.com
7.5
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Craft minimally-sized, deeply nested JSON payload
  2. Delivery
    Submit via HTTP POST to FHIR validation or ingestion endpoint
  3. Exploit
    JsonParser enters unbounded readArray/readObject recursion
  4. Install
    JVM thread stack exhausted, StackOverflowError raised
  5. C2
    Worker thread crashes
  6. Execute
    Repeated requests exhaust thread pool
  7. Impact
    Service denial-of-service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

The target service must expose an endpoint that passes attacker-controlled JSON input to org.hl7.fhir.utilities.json.parser.JsonParser - this includes any FHIR $validate operation, resource creation or update endpoint, or any internal pipeline that calls JsonParser.parseObject() or JsonParser.parseObjectFromFile() on untrusted content. Per the CVSS vector PR:N, no authentication is required at the library level, though individual deployments may place authentication in front of FHIR endpoints. The vulnerability fires before FHIR structural validation, so the payload does not need to be a valid FHIR resource - only syntactically valid JSON. Exploitation is limited to services running org.hl7.fhir.core versions prior to 6.9.11; JVM thread stack size configuration and application-level StackOverflowError handling affect whether the crash is contained to a single thread or causes broader process instability.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H scores 7.5 High and is well-supported by the description: the parser is reachable over the network, requires no authentication, needs no user interaction, and produces a hard availability impact. The scope is unchanged (S:U), meaning impact is confined to the vulnerable component's process - consistent with a thread crash rather than full system compromise. No EPSS score was provided in the input, and the vulnerability is not listed in CISA KEV, so exploitation probability cannot be quantified from scoring data. No public proof-of-concept is identified, though the attack payload is trivially constructable (a loop appending '[' characters to a JSON string, as demonstrated in the added unit tests). Real-world risk is moderate-to-high for any healthcare backend that exposes FHIR validation endpoints without authentication; the attack is low-complexity and the payload is small (a few kilobytes suffices). Organizations using HAPI FHIR behind an authenticated API gateway or with strict input size/depth pre-filtering face reduced practical risk. The fix is available and straightforward to apply, making unpatched exposure the primary risk driver.

Exploit ScenarioDerived

An attacker sends an HTTP POST request containing a crafted JSON body - for example, a FHIR Patient resource where a field value is wrapped in 600 or more nested JSON arrays (e.g., {"x": [[[...0...]]]}) - to any publicly accessible FHIR $validate endpoint or resource ingestion endpoint backed by HAPI FHIR prior to 6.9.11. The JsonParser's readArray() and readObject() methods call each other recursively with no depth ceiling, exhausting the JVM thread stack within milliseconds and raising a StackOverflowError that is typically not caught by application exception handlers, crashing the worker thread. Repeated requests can exhaust the thread pool, resulting in service unavailability.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 07, 2026

Unbounded recursive JSON parsing in HAPI FHIR's org.hl7.fhir.utilities.json.parser.JsonParser (versions prior to 6.9.11) allows unauthenticated remote attackers to crash JVM worker threads by submitting a syntactically valid but deeply nested FHIR JSON document. The mutual recursion between readObject() and readArray() carries no depth counter, so a document with as few as ~600 nesting levels exhausts the thread stack and raises a StackOverflowError before structural FHIR validation runs - any service that does not isolate StackOverflowError may lose the worker thread or destabilize the process entirely. No public exploit code or CISA KEV listing has been identified at time of analysis, but the CVSS 7.5 (AV:N/AC:L/PR:N/UI:N) rating reflects that exploitation requires no authentication and minimal complexity against any exposed FHIR validation endpoint.

RemediationAI

Upgrade org.hl7.fhir.core to version 6.9.11 or later. The fix is confirmed in commit 396f447500407693d6ae1e64db59782862ca7506 (https://github.com/hapifhir/org.hl7.fhir.core/commit/396f447500407693d6ae1e64db59782862ca7506) and the security advisory at GHSA-2cq7-hg49-56gc. If an immediate upgrade is not possible, a targeted workaround is to enforce a maximum request body depth or size at the API gateway or servlet filter layer before the HAPI FHIR parser is invoked - for example, rejecting requests whose JSON body exceeds a conservative byte threshold (e.g., 1MB) or pre-parsing with a depth-limited JSON library to reject deeply nested payloads. Note that byte-size limits alone are insufficient, as a deeply nested document with minimal values can be very compact; explicit nesting depth checks are needed. Restricting FHIR validation endpoints to authenticated and authorized callers reduces the attack surface but does not eliminate it if insider or compromised-credential scenarios are in scope.

Affected VersionsENISA

ca.uhn.hapi.fhir:org.hl7.fhir.utilities < 6.9.11
ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli < 6.9.11
ca.uhn.hapi.fhir:org.hl7.fhir.validation < 6.9.11
ca.uhn.hapi.fhir:org.hl7.fhir.r5 < 6.9.11
org.hl7.fhir.core < 6.9.11

Affected Packages

euvd ca_uhn_hapi_fhir_org_hl7_fhir_r5 fix: 6.9.11
euvd ca_uhn_hapi_fhir_org_hl7_fhir_utilities fix: 6.9.11
euvd ca_uhn_hapi_fhir_org_hl7_fhir_validation fix: 6.9.11
euvd ca_uhn_hapi_fhir_org_hl7_fhir_validation_cli fix: 6.9.11
euvd org_hl7_fhir_core fix: 6.9.11

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 5 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

HAPI FHIR is the dominant Java implementation of the HL7 FHIR healthcare interoperability standard. The affected component is org.hl7.fhir.utilities.json.parser.JsonParser, a hand-written recursive-descent JSON parser used to parse and validate FHIR resources before structural validation. The root cause (CWE-20, Improper Input Validation) is the absence of any depth counter in the mutual recursion between readObject() and readArray(): each nesting level consumes a JVM stack frame, and because the JVM has a fixed thread stack size (typically 512KB-1MB), roughly 500-1000 recursive calls exhaust it regardless of heap availability. The commit also patches an identical recursion hazard in XhtmlParser (FHIR narrative parsing) and adds a JAXP jdk.xml.maxElementDepth bound to XMLUtil, indicating the nesting-without-limit pattern was systemic. The fix introduces a static MAX_JSON_DEPTH = 500 field and a parseDepth counter that is incremented at each readObject/readArray entry and decremented in a finally block, throwing a structured JsonException on breach rather than allowing the JVM to raise StackOverflowError.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Network-reachable parser accepts attacker input with no authentication; attack requires no user interaction; impact is exclusively availability via thread crash, with no confidentiality or integrity effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Aug 07, 2026 - 21:02 EUVD
CVE Published
Aug 07, 2026 - 20:16 cve.org
HIGH 7.5

DescriptionCVE.org

HAPI FHIR is a complete implementation of the HL7 FHIR standard for healthcare interoperability in Java. Prior to 6.9.11, the JSON utility parser in org.hl7.fhir.utilities.json.parser.JsonParser enforces no maximum nesting depth for arrays or objects. As a result, a small but deeply nested, syntactically valid FHIR JSON document can trigger unbounded readArray() or readObject() recursion, raising a StackOverflowError before structural validation runs. An attacker who can submit JSON resources for validation can thus crash the request thread, and services that do not isolate StackOverflowError safely may experience worker loss or process instability - a denial-of-service condition. This issue is fixed in version 6.9.11.

Executive ViewAI

Why It Matters

HAPI FHIR versions prior to 6.9.11 contain a vulnerability allowing unauthenticated remote attackers to crash the application's JVM by submitting deeply nested FHIR JSON documents, disrupting healthcare data processing and clinical services. Organizations using this widely-deployed library face immediate risk of service outages if their systems accept FHIR JSON validation requests from untrusted networks.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement JSON nesting depth validation-reject documents exceeding 100-150 levels; (2) Enforce strict request size limits (2-5 MB maximum); (3) Configure application thread pools to isolate parser failures and prevent cascading process crashes; (4) Enable real-time alerting on StackOverflowError exceptions; (5) Deploy API gateway or WAF rules to pre-filter malformed FHIR JSON; (6) Restrict FHIR validation endpoints to trusted internal networks only if external exposure is not required; (7) Maintain JVM memory and thread pool monitoring to detect early signs of recursive parser exhaustion.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Low
Dominant Java FHIR implementation, but healthcare-sector-specific.
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy