Technical impact
OpenEMR versions earlier than 8.5.0 contain an inverted comparison in Document::has_expired() that causes the FHIR Binary download endpoint to treat time‑limited PHI documents as unexpired after their one‑hour life expectancy. As a result, authorized authenticated users can download expired bulk export NDJSON files and $docref CCDs indefinitely, exposing protected health information. The weakness is classified as CWE‑613, which relates to privacy information leakage.
Affected Systems
The flaw affects all OpenEMR deployments using a version prior to 8.5.0 when the FHIR Binary download endpoint is enabled. Any installation of openemr:openemr released before the 8.5.0 release is vulnerable. Users who have roles authorized for a Binary/{id} resource are specifically impacted.
Risk and Exploitability
The CVSS score of 7.1 indicates a moderate to high severity, while the EPSS score of less than 1% suggests a low likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires authenticated access to the Binary/{id} resource, meaning an attacker must already possess valid user credentials with appropriate authorization. Once those conditions are met, no further privileges are required; an attacker can simply issue download requests to retrieve expired PHI. The likely attack vector is an authenticated request to the Binary download endpoint for a resource the attacker is permitted to access, which is inferred from the description as the vulnerability is only exposed to users with valid permissions.