Description
baserCMS before 5.3.0 contains a SQL injection vulnerability in BcDatabaseService.php that allows authenticated administrators to inject attacker-controlled table names and configuration values directly into SQL statements across sequence update, CSV export, and table management operations. Attackers can chain a backup restore code injection flaw, where PHP code outside class definitions in schema files executes unconditionally upon loading, to plant malicious table names and trigger error-based SQL injection that retrieves database version, schema contents, and arbitrary data from the PostgreSQL backend.
Published: 2026-08-20
Score: 8.6 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

baserCMS versions prior to 5.3.0 contain a dual flaw in BcDatabaseService.php that enables authenticated administrators to perform SQL injection by inserting attacker‑controlled table names and configuration values into queries used for sequence updates, CSV export, and table management. The vulnerability can be chained with a backup‑restore code injection flaw, where PHP code placed outside class definitions in schema files executes automatically when the backup is restored. This combination allows an attacker to both inject malicious code that runs on the server and to trigger error‑based SQL injection that reveals database schema information and arbitrary data from the PostgreSQL backend. The weaknesses are represented by CWE‑89 (SQL injection) and CWE‑94 (code injection).

Affected Systems

All installations of baserProject baserCMS older than version 5.3.0 are affected. The affected software is distributed under the baserproject:basercms product line. Users of baserCMS should verify the version of their deployment and plan an upgrade to version 5.3.0 or later to address the flaw.

Risk and Exploitability

The CVSS score of 8.6 indicates a high‑severity vulnerability. No EPSS data is available, and baserCMS is not listed in the CISA KEV catalog. Exploitation requires an authenticated administrator account; the attacker must create or modify a backup schema file to inject code, then trigger a restore operation that causes the injected code to execute. Once code runs, the attacker can read or modify arbitrary database content, effectively achieving remote code execution. The risk remains significant for systems that support public or internal user interactions.

Generated by OpenCVE AI on August 20, 2026 at 21:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade baserCMS to version 5.3.0 or later.
  • Restrict administrator accounts to the minimum required privileges and monitor their activity for anomalous behavior.
  • Sanitize backup schema files or disable code execution during restore, ensuring that only safe database dumps are accepted.

Generated by OpenCVE AI on August 20, 2026 at 21:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 20 Aug 2026 16:15:00 +0000

Type Values Removed Values Added
First Time appeared Baserproject
Baserproject basercms
Vendors & Products Baserproject
Baserproject basercms

Thu, 20 Aug 2026 14:15:00 +0000

Type Values Removed Values Added
Description baserCMS before 5.3.0 contains a SQL injection vulnerability in BcDatabaseService.php that allows authenticated administrators to inject attacker-controlled table names and configuration values directly into SQL statements across sequence update, CSV export, and table management operations. Attackers can chain a backup restore code injection flaw, where PHP code outside class definitions in schema files executes unconditionally upon loading, to plant malicious table names and trigger error-based SQL injection that retrieves database version, schema contents, and arbitrary data from the PostgreSQL backend.
Title baserCMS < 5.3.0 SQL Injection and Code Injection via BcDatabaseService.php
Weaknesses CWE-89
CWE-94
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Baserproject Basercms
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-20T13:58:05.913Z

Reserved: 2026-08-19T14:53:58.574Z

Link: CVE-2026-76635

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-20T14:17:59.973

Modified: 2026-08-20T14:17:59.973

Link: CVE-2026-76635

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T21:45:05Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')