HAPI FHIR: SHCParser unbounded DEFLATE decompression causes denial of service
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| hapifhir | org.hl7.fhir.core | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Hapifhir | Hl7 Fhir Core |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-3w98-rrpr-fprr | HAPI FHIR: SHCParser unbounded DEFLATE decompression causes denial of service |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.630% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Hapifhir
Hapifhir hl7 Fhir Core |
|
| Vendors & Products |
Hapifhir
Hapifhir hl7 Fhir Core |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | HAPI FHIR: SHCParser unbounded DEFLATE decompression causes denial of service | |
| Weaknesses | CWE-20 CWE-400 CWE-409 |
|
| References |
|
|
| Metrics |
cvssV3_1
|