Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Network REST API endpoint (AV:N), no special conditions beyond role possession (AC:L), requires plugin-specific authenticated role (PR:L); read-only ORDER BY injection yields confidentiality impact only (C:H/I:N/A:N).
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
Lifecycle Timeline
2DescriptionCVE.org
The KiviCare - Clinic & Patient Management System (EHR) plugin for WordPress is vulnerable to generic SQL Injection via the 'orderby' parameter in all versions up to, and including, 4.5.0 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with Doctor-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. Exploitation requires a KiviCare Doctor, Receptionist, or Clinic Admin role at minimum, as the vulnerable REST endpoint is restricted to authenticated users with custom plugin-level access.
AnalysisAI
SQL injection in the KiviCare - Clinic & Patient Management System (EHR) WordPress plugin through version 4.5.0 enables authenticated clinic users to extract arbitrary data from the underlying database via a manipulated 'orderby' REST API parameter. The flaw resides in DoctorSessionController.php (lines 648 and 660) where user-supplied sort values are concatenated into queries without escaping or prepared-statement protections, cascading through KCQueryBuilder.php. No public exploit code or CISA KEV listing is identified at time of analysis; EPSS data was not provided, but the authenticated-only prerequisite and niche deployment footprint materially limit real-world impact.
Technical ContextAI
CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) describes the root cause: user-controlled input is concatenated directly into a SQL ORDER BY clause rather than being validated against an allowlist or parameterized. The WordPress plugin trac references confirm the vulnerable logic in DoctorSessionController.php (lines 648 and 660) and the shared query-building layer KCQueryBuilder.php (line 470). The REST API endpoint is registered by the KiviCare plugin under its own access-control layer, meaning WordPress core role capabilities (subscriber, contributor, editor) are irrelevant - only KiviCare-native roles (Doctor, Receptionist, Clinic Admin) are checked. The affected CPE is cpe:2.3:a:iqonicdesign:kivicare_-_clinic_&_patient_management_system_(ehr):*:*:*:*:*:*:*:*, covering all releases through 4.5.0.
RemediationAI
An upstream fix has been committed to the WordPress plugin repository as changeset 3602561 (https://plugins.trac.wordpress.org/changeset?reponame=&old=3602561%40kivicare-clinic-management-system&new=3602561%40kivicare-clinic-management-system); however, the exact patched release version is not independently confirmed from available data - update to any version released after 4.5.0 once available in the WordPress plugin directory. As a compensating control prior to patching, administrators should restrict the KiviCare Doctor, Receptionist, and Clinic Admin roles to the minimum number of trusted staff accounts, since exploitation requires one of these role assignments - reducing the number of accounts with these roles directly reduces exposure. Additionally, a web application firewall rule blocking SQL metacharacter sequences in ORDER BY parameters on the KiviCare REST API paths can interrupt exploitation attempts, though this adds maintenance overhead and may interfere with legitimate sorting functionality.
More in Wordpress Plugin
View allThe Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil
Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote
The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner
The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut
The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via
The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based
SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a
The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i
The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base
The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in
Remote code execution in the WP Query Console WordPress plugin (versions up to and including 1.0) by Ajit Bohra allows u
Same weakness CWE-89 – SQL Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-43121
GHSA-hvqv-gc8j-r5g2