HAPI FHIR: SHCParser unbounded DEFLATE decompression causes denial of service
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
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
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 consume attacker-controlled Smart Health Card JWT content whose header contains zip: "DEF" and whose small raw-DEFLATE payload expands to a very large value. SHCParser.decodeJWT() passes the decoded payload to SHCParser.inflate(), which accumulates all decompressed bytes in a ByteArrayOutputStream without an output-size limit before JSON parsing, and SHCParser.decompress() contains the same unbounded pattern. An application or validator service that accepts attacker-supplied SHC content can therefore suffer excessive heap allocation, severe garbage-collection pressure, request failure, process instability, or process termination. This issue is fixed in version 6.9.12.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- 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.12 | 6.9.12 | Patch available | CNA |
| — | ca.uhn.hapi.fhir:org.hl7.fhir.r5 (Maven) | before 6.9.12 | 6.9.12 | Patch available | GHSA-3w98-rrpr-fprr |
| — | ca.uhn.hapi.fhir:org.hl7.fhir.validation (Maven) | before 6.9.12 | 6.9.12 | Patch available | GHSA-3w98-rrpr-fprr |
| — | ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli (Maven) | up to 5.0.0 | — | No fix listed | GHSA-3w98-rrpr-fprr |
- org.hl7.fhir.core Vendorhapifhir Affected before 6.9.12 Fixed in 6.9.12 Patch available CNA
- ca.uhn.hapi.fhir:org.hl7.fhir.r5 (Maven) Vendor— Affected before 6.9.12 Fixed in 6.9.12 Patch available GHSA-3w98-rrpr-fprr
- ca.uhn.hapi.fhir:org.hl7.fhir.validation (Maven) Vendor— Affected before 6.9.12 Fixed in 6.9.12 Patch available GHSA-3w98-rrpr-fprr
- ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli (Maven) Vendor— Affected up to 5.0.0 Fixed in — No fix listed GHSA-3w98-rrpr-fprr
Remediation
- Fix · CNA org.hl7.fhir.core (hapifhir) Fixed in 6.9.12
- Fix · GHSA-3w98-rrpr-fprr ca.uhn.hapi.fhir:org.hl7.fhir.r5 (Maven) Fixed in 6.9.12 Advisory →
- Fix · GHSA-3w98-rrpr-fprr ca.uhn.hapi.fhir:org.hl7.fhir.validation (Maven) Fixed in 6.9.12 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-81875
- 2026-10-03 Alias added: GHSA-3w98-rrpr-fprr
- 2026-10-28 EPSS moved to the 50th–90th percentile
References
Other 6
- https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-3w98-rrpr-fprr
- https://github.com/hapifhir/org.hl7.fhir.core/pull/2493
- https://github.com/hapifhir/org.hl7.fhir.core/commit/fbb94216e0ad21ded75be77e5e20242ba194e83f
- https://github.com/hapifhir/org.hl7.fhir.core/releases/tag/6.9.11
- https://github.com/hapifhir/org.hl7.fhir.core/releases/tag/6.9.12
- 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-44485 HAPI FHIR: XHTML narrative parser unbounded recursion causes StackOverflow denial of service CVSS 3.1HIGH 7.5
- TI-2026-44484 HAPI FHIR: JSON utility parser unbounded recursion causes StackOverflow denial of service CVSS 3.1HIGH 7.5
Sources
- CVE-2026-81875 · CVE Program
- CVE-2026-81875 · NVD
- FIRST EPSS
- GHSA-3w98-rrpr-fprr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences