SQL Injection and Remote Code Execution in baserCMS
Authenticated administrators can exploit a SQL injection vulnerability in baserCMS versions prior to 5.3.0, chaining it with a secondary code injection flaw to extract sensitive data and execute arbitrary PHP code.
CVE search metadata
CVE search record: CVE-2026-76635. Severity: high. CVSS: 7.2. KEV: no. Product: baserCMS. Brief: SQL Injection and Remote Code Execution in baserCMS. Brief link: https://feed.craftedsignal.io/briefs/2026-08-basercms-sql-injection/
baserCMS versions prior to 5.3.0 are affected by a critical vulnerability that allows authenticated administrators to perform SQL injection attacks via the BcDatabaseService.php component. An attacker can inject arbitrary table names and configuration values during sequence updates, CSV exports, or table management operations. This vulnerability is particularly dangerous because it can be chained with a secondary backup restore flaw, where schema files containing malicious PHP code execute unconditionally upon being loaded. By combining these, an attacker can plant malicious table names and trigger error-based SQL injection, enabling the retrieval of database versioning information, schema structure, and sensitive data from the underlying PostgreSQL backend. This chain effectively allows a privileged user to escalate their access to arbitrary code execution and full data exfiltration.
Impact
Successful exploitation allows an attacker with administrator access to achieve Remote Code Execution (RCE) on the host server and full unauthorized access to the database contents. This impacts the confidentiality, integrity, and availability of the entire CMS installation and the associated PostgreSQL database backend.
Recommendation
Prioritized, concrete actions for detection engineering teams:
- Upgrade all instances of baserCMS to version 5.3.0 or higher to remediate the underlying SQL injection and code execution flaws.
- Audit administrative access logs for suspicious activity involving sequence updates or CSV export operations in BcDatabaseService.php.
- Monitor PostgreSQL error logs for unusual error-based injection patterns or unexpected database schema queries occurring outside of normal CMS maintenance operations.
Immediate actions
Patch baserCMS to 5.3.0
Mitigations
Restrict administrative access to trusted personnel
CVE-2026-76635