Summary
OpenEMR contains a missing authorization check in the delete_Recall action, allowing a low-privileged authenticated user to delete patient recall records. The issue becomes risky when the action accepts a patient ID and recall ID without verifying the user's permissions or relationship to those records.
Affected context
The vulnerability affects OpenEMR installations before 8.3.0 where the delete_Recall action is available through /interface/main/messages/save.php. The action may permit deletion based on supplied patient and recall identifiers without enforcing an appropriate access-control or record-ownership check.
Exploit preconditions
- Attack surface: The authenticated POST action at
/interface/main/messages/save.php - Required access: A valid account with low privileges
- Trigger point: A request invoking
delete_Recallwith a targetpidandr_ID - Why exploitation is possible: The action does not adequately check whether the authenticated user is authorized to delete the specified patient recall record
Why this happens
The underlying issue is a missing authorization check, mapped to CWE-862: Missing Authorization. The application processes a record-deletion request using caller-supplied identifiers without confirming that the user has the required permission or is authorized for the targeted patient and recall record.
Potential impact
- Patient recall records may be deleted without appropriate authorization
- Care teams could lose information needed for follow-up
- The integrity and completeness of patient records may be affected
- Repeated or targeted deletion could disrupt clinical workflows
General mitigation guidance
Mitigation generally centers on enforcing authorization at the point where a record-changing action is performed.
Common defensive patterns include:
- Checking the user's permissions and patient-level access for every deletion request
- Deriving record access from the authenticated session rather than trusting client-supplied identifiers
- Applying consistent access-control checks across all endpoints that modify records
- Using least-privilege roles and narrowly scoped permissions
- Recording and reviewing audit events for sensitive record changes
How teams detect issues like this
High-level approaches for identifying similar issues include:
- Reviewing record deletion handlers for authorization checks performed before changes are applied
- Using static analysis to flag sensitive operations that rely on request parameters without access-control enforcement
- Testing whether users with different roles can access or modify records outside their permitted scope
- Enforcing policy checks in code review and security testing workflows

