Description
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.
Published: 2026-08-07
Score: 7.5 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises when the HAPI FHIR JSON parser processes deeply nested arrays or objects without limiting recursion depth. A crafted, syntactically valid FHIR JSON document can cause the parser to recurse without bound, raising a StackOverflowError before the resource is validated. This results in the request thread terminating abruptly, potentially leading to worker loss or process instability, and effectively denying service for valid requests.

Affected Systems

The affected packages are part of the HAPI FHIR Java implementation, including org.hl7.fhir.utilities, org.hl7.fhir.validation, org.hl7.fhir.validation.cli, org.hl7.fhir.r5, and the core library org.hl7.fhir.core. Versions prior to 6.9.11 of these components are vulnerable. The fix is available in version 6.9.11 and later, which enforces a maximum nesting depth.

Risk and Exploitability

The CVSS score is 7.5, indicating a high severity denial‑of‑service vulnerability. EPSS is not available, and the issue is not listed in CISA's KEV catalog. The attack vector is inferred to be an external HTTP or API call that supplies the nested JSON payload, as the parser is invoked during resource validation. A successful exploit requires no special privileges and can be performed over the network, making the risk moderate to high for exposed services that accept FHIR JSON without proper resource limits.

Generated by OpenCVE AI on August 7, 2026 at 21:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade all HAPI FHIR components to version 6.9.11 or later, ensuring that the JSON parser enforces a maximum nesting depth.
  • Implement input validation or configure the parser to limit maximum array/object depth if upgrades are not immediately possible.
  • Ensure that StackOverflowError exceptions are caught and handled by the application framework or run the validation in isolated workers or containers so that a single request failure does not kill the process.

Generated by OpenCVE AI on August 7, 2026 at 21:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 07 Aug 2026 20:00:00 +0000

Type Values Removed Values Added
Description 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.
Title HAPI FHIR: JSON utility parser unbounded recursion causes StackOverflow denial of service
Weaknesses CWE-20
CWE-400
CWE-674
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-07T19:36:31.274Z

Reserved: 2026-07-13T18:37:08.488Z

Link: CVE-2026-62295

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-07T21:30:18Z

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-674

    Uncontrolled Recursion