Skip to main content

HAPI FHIR CVE-2026-81876

| EUVDEUVD-2026-80998 HIGH
Improper Input Validation (CWE-20)
2026-09-16 GitHub_M GHSA-gq9c-wmrm-5hvr
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Reach FHIR validation/detection endpoint
  2. Delivery
    Submit SHC JWT with zip:"DEF" empty/truncated DEFLATE
  3. Exploit
    SHCParser.inflate() enters zero-progress loop
  4. Execution
    JVM worker thread pinned indefinitely
  5. Persist
    Repeat concurrently
  6. Impact
    Exhaust all validation workers, service DoS

Vulnerability Assessment

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

Exploitation requires that the deployed service actually invokes HAPI FHIR's SHCParser on attacker-controlled input - i.e., an exposed FHIR validation endpoint (or a file-format detection path via ResourceChecker) that accepts and parses Smart Health Card JWT content. The specific trigger is a JWT whose header sets zip:"DEF" with a raw-DEFLATE payload that is empty or truncated, causing Inflater.inflate() to make zero progress while not finished. Limiting factors: the vulnerable version must be prior to 6.9.12, and the SHC/validation code path must be reachable from an attacker-facing interface - a library instance that never parses untrusted SHC content is not remotely exploitable despite the AV:N rating. No authentication or user interaction is required by the vendor vector (PR:N/UI:N).

Impact

This is a genuine but bounded availability-only risk. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5 HIGH) reflects a clean denial-of-service: no confidentiality or integrity impact, but a single malformed request can pin a JVM worker thread indefinitely, and concurrent requests can exhaust all validation workers (full service outage). The PR:N/UI:N/AC:L metrics are defensible IF the deployment exposes an endpoint that accepts and parses attacker-supplied Smart Health Card / validation content - the network vector is CONDITIONAL on the service invoking SHCParser (directly or via ResourceChecker's file-format detection) on untrusted input; a validator not exposed to attacker input would drop this toward local/limited reachability. No EPSS score, no CISA KEV listing, and no public POC were provided, so real-world exploitation is not indicated - but the trigger is trivial to construct (a JWT with header zip:"DEF" and an empty/truncated raw-DEFLATE payload), so absence of a POC is weak reassurance. The assigned CWE-20 (improper input validation) is generic; the true root cause is an infinite loop / uncontrolled resource consumption (CWE-835/CWE-400). Net: a real patch-worthy DoS for FHIR validation services, not a critical RCE-class emergency.

Exploit ScenarioDerived

An attacker submits a FHIR validation or resource-detection request containing a Smart Health Card JWT whose header specifies zip:"DEF" with an empty or truncated raw-DEFLATE payload. SHCParser.decodeJWT() calls inflate(), where Inflater.inflate() returns zero while finished() stays false and needsInput() stays true, spinning forever and pinning the worker thread; a handful of concurrent such requests exhaust all validation workers and take the service offline. No public exploit code was identified at time of analysis, but the malformed input is straightforward to craft.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.6% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 16, 2026

Denial of service in HAPI FHIR core (org.hl7.fhir.core) before 6.9.12: remote attackers who can reach an endpoint that parses Smart Health Card content can submit a JWT whose header declares zip:"DEF" with an empty or truncated raw-DEFLATE payload, driving SHCParser.decodeJWT() into a non-terminating Inflater loop that pins a JVM worker thread indefinitely. The trigger is unauthenticated and requires no user interaction (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5), and because each malformed request consumes a validation worker permanently, concurrent submissions can exhaust the entire worker pool and make legitimate FHIR validation unavailable. No public exploit code has been identified at time of analysis, and the risk is bounded: a deployment that never feeds untrusted Smart Health Card data into SHCParser (directly or through ResourceChecker file-format detection) is not remotely exploitable despite the network attack vector, with impact limited to availability only - no confidentiality or integrity loss.

RemediationAI

Vendor-released patch: upgrade org.hl7.fhir.core (and any HAPI FHIR distribution that depends on it) to version 6.9.12 or later, which is the fixed release referenced in the GitHub Security Advisory GHSA-gq9c-wmrm-5hvr; the upstream fix is also visible in pull request 2493 and commits d804558bd77372b1629e55a5b901cad3f5134cdc and edd5d8c139e669e39270785f08be7b63aefef24c. Because the fix is a released version, patch management is the primary control - audit dependency trees for transitive org.hl7.fhir.core versions and pin the minimum to 6.9.12. Where immediate upgrade is not possible, apply targeted compensating controls: if Smart Health Card validation is not a required feature, disable or unwire the SHC parsing entry point so no untrusted JWT reaches SHCParser (trade-off: SHC credential validation stops working entirely); if it is required, place the validation service behind an authenticating reverse proxy or network allowlist so only trusted partners can submit credentials (trade-off: unauthenticated public validation is lost, and callers must be re-credentialed). Also restrict access to any endpoint that runs ResourceChecker file-format detection on uploaded files, since that path reaches the same parser; harden worker pools by wrapping validation calls in external timeouts and isolating validation in a separate JVM or process that can be killed and recycled (trade-off: terminated requests produce client-visible errors and legitimate large bundles may be truncated, and timeouts must be tuned below the worker-pool size to avoid full exhaustion). Rate limiting and concurrency caps reduce the number of requests needed to exhaust workers but do not stop a single malformed request from pinning one thread permanently, so they should be treated as secondary mitigations only.

Affected VersionsENISA

org.hl7.fhir.core < 6.9.12

Affected Packages

maven ca.uhn.hapi.fhir:org.hl7.fhir.r5 fix: 6.9.12
maven ca.uhn.hapi.fhir:org.hl7.fhir.validation fix: 6.9.12
maven ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli fix: 6.9.12
euvd org_hl7_fhir_core fix: 6.9.12

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in maven, 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 reference Java implementation of the HL7 FHIR healthcare interoperability standard, and the affected artifact is the org.hl7.fhir.core library bundle (CPE cpe:2.3:a:hapifhir:org.hl7.fhir.core:*:*:*:*:*:*:*:*), specifically the org.hl7.fhir.r5 module. The vulnerable component, SHCParser, acts as a Smart Health Card (SHC) validator: it parses a JWT/JWS credential, assumes the payload contains a FHIR bundle, and validates it. SHC credentials follow the JWS convention of compressing the payload with DEFLATE and advertising this via the zip:"DEF" header, so the parser feeds the decoded bytes into java.util.zip.Inflater (raw DEFLATE, RFC 1951). The defect is an improper-input-validation (CWE-20) flaw in loop termination logic: Inflater.inflate() may return zero bytes while finished() is false and needsInput() is true (empty or truncated stream), and the loop has no needsDictionary() check to break out of that state, so it spins forever. The same zero-progress pattern appears in SHCParser.decompress(), and ResourceChecker.java can route untrusted files into SHC parsing during file-format detection, widening the reachable attack surface beyond an explicit SHC validation call. Nothing in the parsing pipeline bounds the loop by time, iteration count, or input size, so the CPU-bound spin is permanent from the JVM's perspective until the worker or process is restarted.

Know when Java gets its next vulnerability

  • 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_M) 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

Trivially crafted malformed SHC JWT causes an unauthenticated remote infinite loop exhausting validation workers; pure availability impact, no confidentiality or integrity effect, AV:N conditional on exposed SHC parsing.

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_M).

CVSS VectorVendor: GitHub_M

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
Sep 16, 2026 - 20:18 EUVD
CVE Published
Sep 16, 2026 - 18:48 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 version 6.9.12, SHCParser in org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/SHCParser.java can enter an infinite loop while processing attacker-controlled Smart Health Card JWT content whose header contains zip: "DEF" and whose raw-DEFLATE payload is empty or truncated. SHCParser.decodeJWT() reaches SHCParser.inflate(), where Inflater.inflate() can return zero while Inflater.finished() remains false and Inflater.needsInput() is true. The loop also lacks an Inflater.needsDictionary() termination check, SHCParser.decompress() contains the same zero-progress pattern, and ResourceChecker.java can reach SHC parsing during file-format detection. A malformed validation request can pin a JVM worker thread indefinitely, and concurrent requests can exhaust all validation workers. This issue is fixed in version 6.9.12.

Technical POC Analysis

Bug class: CWE-835 (Loop with Unreachable Exit Condition) on an input-validation failure, catalogued by the advisory alongside CWE-20 and CWE-400.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

A high-severity denial-of-service vulnerability in HAPI FHIR core (org.hl7.fhir.core) lets an unauthenticated remote party permanently consume JVM validation worker threads by submitting a crafted Smart Health Card token, potentially exhausting the worker pool and taking FHIR validation offline for legitimate users. Any organization running an internet- or partner-reachable FHIR validation or Smart Health Card ingestion endpoint should treat this as an availability risk to clinical data exchange and to downstream applications that depend on validation. Exposure is bounded to environments that feed untrusted Smart Health Card content into SHCParser (directly or through ResourceChecker file-format detection), and no public exploit code has been identified at time of analysis.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable or network-isolate Smart Health Card parsing and FHIR validation endpoints that do not require untrusted input; block or reject requests carrying a JWT header declaring zip:"DEF" with an empty or truncated payload at the WAF or reverse proxy; enforce strict decompression/inflater limits, request timeouts, and bounded thread pools so a stalled decode cannot occupy a worker permanently; cap concurrent validation requests globally and per client; and alert on worker-pool saturation or non-terminating validation requests. No public exploit identified at time of analysis.

Threat Intelligence Overview

EPSS Score
0.6%
Top 51% exploitable
Prevalence
Medium
popular Java reference implementation of HL7 FHIR, healthcare-integration scoped
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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 Yes
EPSS 0.6%
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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

59
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: +20
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.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

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