CVE-2021-32053: Uncontrolled Resource Consumption in JPA Server in HAPI FHIR
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.62788%
CWE
Published
6/16/2021
Updated
2/1/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
ca.uhn.hapi.fhir:hapi-fhir-jpaserver-base | maven | < 5.4.0 | 5.4.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from expensive COUNT
queries in history operations. The key evidence is in PersistedJpaBundleProvider
where the calculateHistoryCount()
method was modified to add caching. The pre-patch version would execute a direct COUNT
query through historyBuilder.fetchCount()
without throttling or caching, which matches the CVE description of uncontrolled resource consumption through simultaneous history requests. The added cache and HistoryCountModeEnum
in the patches directly address this vulnerability by preventing redundant COUNT
operations.