A SQL injection vulnerability in interface/usergroup/usergroup_admin.php in OpenEMR before 5.0.2.5 allows a remote authenticated attacker to execute arbitrary SQL commands via the schedule_facility parameter when restrict_user_facility=on is in global settings.
https://www.open-emr.org/wiki/index.php/OpenEMR_Patches
https://www.open-emr.org/wiki/index.php/OpenEMR_Downloads
https://nitroteam.kz/index.php?action=researches&slug=OpenEMR--9035
https://community.open-emr.org/t/openemr-6-0-0-has-been-released/15732