Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-accessible contact search requires only staff credentials (PR:L); unsanitized concatenation makes exploitation low-complexity with full database read/write impact.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
Lifecycle Timeline
2DescriptionCVE.org
An SQL injection vulnerability in CiviCRM through 6.18.alpha1 allows authenticated staff to read the entire database via the contact search RLIKE clause. The clause concatenates a user-supplied value into the SQL query without sanitization. An attacker with staff-level access can exfiltrate all database contents including donor and member records.
AnalysisAI
SQL injection in CiviCRM through version 6.18.alpha1 allows authenticated staff-level users to exfiltrate the entire backend database via the contact search RLIKE clause. The vulnerability arises because user-supplied input is concatenated directly into the SQL query without sanitization, satisfying CWE-89. Sensitive records including donor, member, and organizational data are exposed to any user holding staff-level credentials. No public exploit or CISA KEV listing has been identified at the time of analysis, though the low exploitation complexity elevates real-world risk.
Technical ContextAI
CiviCRM is an open-source constituent relationship management (CRM) platform widely used by nonprofits, NGOs, and civic organizations. The affected component is the contact search feature, which constructs a SQL RLIKE (regular expression LIKE) clause by concatenating unsanitized user input directly into the query string. This violates the principle of parameterized queries and is the canonical CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) failure mode. The CPE string cpe:2.3:a:civicrm:civicrm:*:*:*:*:*:*:*:* confirms all CiviCRM application deployments through 6.18.alpha1 are affected, regardless of operating system or deployment environment. The underlying database engine is not specified but CiviCRM supports MySQL/MariaDB, where RLIKE maps to REGEXP, making the injection surface well-understood.
RemediationAI
No vendor-released patched version has been identified in the provided data - the GitHub repository at https://github.com/civicrm/civicrm-core should be monitored for a tagged release addressing this issue. Until a patch is available, organizations should restrict staff-level account creation and audit existing staff accounts, removing any accounts that do not require contact-search access. As a compensating control, deploying a web application firewall (WAF) rule to block RLIKE-based payloads in contact search parameters can reduce automated exploitation risk, though sophisticated attackers may bypass WAF rules. Database activity monitoring should be enabled to detect anomalous bulk SELECT queries originating from the CiviCRM application user. Restricting the CiviCRM database user's privileges to only the tables and operations strictly necessary (principle of least privilege) will limit the blast radius of a successful injection.
Multiple SQL injection vulnerabilities in CRM/Core/Page/AJAX/Location.php in CiviCRM before 4.2.12, 4.3.x before 4.3.7,
Cross-site scripting (XSS) vulnerability in open-flash-chart.swf in Open Flash Chart (aka Open-Flash Chart), as used in
A Stored Cross Site Scripting vulnerability exists in CiviCRM before v6.7 in the Accounting Batches field. An authentica
PEAR HTML_QuickForm version 3.2.14 contains an eval injection (CWE-95) vulnerability in HTML_QuickForm's getSubmitValue
Stored Cross Site Scripting (XSS) vulnerability in the add contact function CiviCRM 5.59.alpha1, allows attackers to exe
Cross-site request forgery (CSRF) vulnerability in the CiviCRM private report module 6.x-1.x before 6.x-1.2 and 7.x-1.x
The Quick Search API in CiviCRM 4.2.0 through 4.2.9 and 4.3.0 through 4.3.3 allows remote authenticated users to bypass
CiviCRM 2.0.0 through 4.2.9 and 4.3.0 through 4.3.3 does not properly enforce role-based access control (RBAC) restricti
Same weakness CWE-89 – SQL Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-56028
GHSA-h3jq-rqqh-3gvh