# CVE-2021-32053: Uncontrolled Resource Consumption in JPA Server in HAPI FHIR

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.59%, higher than 76% of CVEs (2026-12-01)
- Published: 2021-05-10T20:43:45.000Z
- Modified: 2026-06-17T03:52:43.660Z
- Also known as: GHSA-67f6-c8mx-4q2m
- Weaknesses: CWE-400
- Assigned by: mitre

## Description

JPA Server in HAPI FHIR before 5.4.0 allows a user to deny service (e.g., disable access to the database after the attack stops) via history requests. This occurs because of a SELECT COUNT statement that requires a full index scan, with an accompanying large amount of server resources if there are many simultaneous history requests.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- ca.uhn.hapi.fhir:hapi-fhir-jpaserver-base (Maven): before 5.4.0
- fhir hapi_fhir: before 5.4.0

## Every score

- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://hapifhir.io> (vendor-advisory, web)
- <https://github.com/hapifhir/hapi-fhir/issues/2641> (third-party-advisory, web)
- <https://github.com/hapifhir/hapi-fhir/pull/2642> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32053> (advisory)

## Sources

- CVE List: [CVE-2021-32053](https://www.cve.org/CVERecord?id=CVE-2021-32053), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-67f6-c8mx-4q2m](https://github.com/advisories/GHSA-67f6-c8mx-4q2m), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-32053](https://nvd.nist.gov/vuln/detail/CVE-2021-32053), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32053 · Whole record: https://cve.day/CVE-2021-32053.json · Rebuilt by cve.day 2026-11-25T22:58:01.264Z
