Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain baserCMS admin credentials
-
DeliveryAccess backup restore functionality
-
ExploitUpload schema file with PHP code outside class definitions
-
ExecutionPHP executes on schema load, planting malicious table name
-
PersistTrigger sequence update, CSV export, or table management operation
-
ImpactError-based SQL injection leaks database version, schema, and sensitive data from PostgreSQL
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid baserCMS administrator account - confirmed by the CVSS 4.0 PR:H metric. The attacker must have access to the baserCMS administrative panel and specifically to the backup restore functionality (to inject PHP into schema files) and to at least one of the affected database management operations (sequence update, CSV export, or table management). The backup restore step requires the ability to upload or supply schema files, which is an administrator-only capability. Limiting factors: (1) administrator-level credentials are mandatory - this is not exploitable by lower-privilege users or unauthenticated actors; (2) the technique is described for a PostgreSQL backend specifically, using error-based exfiltration; behavior against MySQL or SQLite backends is not confirmed; (3) the chained attack requires two sequential steps (schema file injection followed by SQL injection trigger), increasing execution complexity compared to a single-step exploit; (4) the admin panel must be network-accessible to the attacker, though this is satisfied by default for most internet-facing deployments. |
| Impact | The CVSS 4.0 score of 8.6 with PR:H accurately reflects the high privilege requirement - exploitation is gated behind authenticated administrator access, which is the primary limiting factor. Despite the network attack vector (AV:N), the realistic attacker population is constrained to compromised admin credentials or insider threats rather than anonymous remote actors. No EPSS score was provided; without it, relative exploitation probability versus other vulnerabilities cannot be quantified. The vulnerability is not in CISA KEV, and no public exploit code has been identified at time of analysis - however, the chained technique is described in sufficient detail in the VulnCheck advisory to lower the barrier for technically capable actors. The chained nature of the attack (code injection prerequisite before SQL injection trigger) adds real-world complexity beyond what AC:L in the CVSS vector suggests: two distinct exploit steps must succeed sequentially. Confidentiality, integrity, and availability are all rated High in the CVSS 4.0 vector, reflecting full database read/write access as the worst-case outcome. Organizations should prioritize patching if their baserCMS admin panel is exposed to the internet or if they operate multi-tenant environments where different users hold admin roles. |
| Exploit ScenarioDerived | An attacker who has obtained baserCMS administrator credentials - through phishing, credential stuffing, or insider access - navigates to the backup restore functionality and uploads a crafted schema file containing PHP code outside class definitions; upon loading, this code executes unconditionally and plants an attacker-controlled table name into the CMS configuration. The attacker then triggers a database management operation (such as a sequence update or CSV export) that passes the poisoned table name unsanitized into a SQL query in BcDatabaseService.php, causing the PostgreSQL backend to return verbose error messages containing leaked database version strings, schema details, and sensitive table contents. No public exploit code has been identified, but the VulnCheck advisory provides sufficient technical specificity to make independent reproduction feasible for skilled actors. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 20, 2026
SQL injection and chained code injection in baserCMS before 5.3.0 allow authenticated administrators to exfiltrate arbitrary data from a PostgreSQL backend via BcDatabaseService.php. The attack chains two flaws: a backup restore mechanism that unconditionally executes PHP code outside class definitions in schema files upon loading, enabling an admin to plant malicious table names, which are then passed unsanitized into SQL statements across sequence update, CSV export, and table management operations. Error-based SQL injection against the PostgreSQL backend can then retrieve database version, schema contents, and sensitive application data. No public exploit has been identified and this CVE is not in CISA KEV, but the VulnCheck advisory provides sufficient technical detail to guide exploitation by motivated actors.
RemediationAI
Upgrade baserCMS to version 5.3.0 or later, which is the vendor-confirmed patch for this vulnerability, available at https://github.com/baserproject/basercms/releases/tag/5.3.0. The official security advisory is published at https://github.com/baserproject/basercms/security/advisories/GHSA-cg65-f2m7-9fqj. For sites that cannot immediately upgrade, the following compensating controls reduce exposure but do not eliminate risk: restrict access to the baserCMS admin panel (/admin) at the web server or firewall layer to known IP ranges, reducing the reachable attacker population; disable or restrict access to the backup restore, CSV export, and database management features within the admin panel if these are not operationally required, as these are the primary attack surfaces; audit schema files in the backup directory for unexpected PHP code outside class definitions as an indicator of prior exploitation. Note that workarounds are not equivalent to patching, as the root cause (unsanitized SQL construction in BcDatabaseService.php) remains present; upgrading to 5.3.0 is the definitive remediation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
baserCMS is a Japanese open-source PHP content management system built on the CakePHP framework and targeting PostgreSQL as its database backend. The vulnerability is rooted in CWE-89 (Improper Neutralization of Special Elements in SQL Commands): BcDatabaseService.php accepts attacker-controlled table names and configuration values and concatenates them directly into SQL statements without parameterization or escaping, across at least three distinct code paths - sequence updates, CSV exports, and table management operations. A secondary code injection vector compounds this: the backup restore subsystem loads PHP schema files and executes any PHP code residing outside class definitions unconditionally at load time, bypassing any class-scoped sandboxing. An attacker who controls schema file content can use this to pre-stage malicious table names that feed the SQL injection. The PostgreSQL specificity is significant: the exploitation technique relies on error-based SQL injection, a method that leverages verbose PostgreSQL error messages to leak data, and may not be directly portable to other RDBMS backends.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Admin credentials mandatory (PR:H); network-accessible panel (AV:N); no scope change as impact is confined to the application's own database (S:U).
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
baserCMS versions before 5.3.0 contain a chained SQL injection and code execution vulnerability requiring administrative authentication that enables unauthorized exfiltration of sensitive data from PostgreSQL backends. Organizations using affected versions face risk of complete database compromise through malicious backup restore operations and unsanitized SQL statements. Database confidentiality is severely threatened until a patch is released.
No vendor-released patch identified at time of analysis. Interim mitigations: require multi-factor authentication for all administrative accounts; restrict administrative console access to known trusted networks using network segmentation; implement comprehensive SQL query logging and real-time alerting for suspicious query patterns; disable backup/restore functionality if not actively required for operations; isolate PostgreSQL database from untrusted network segments; enable and actively monitor PostgreSQL error logs for error-based injection attempts; conduct monthly audits of administrative actions and database access logs to detect unauthorized activity.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-63365
GHSA-p3p6-469g-p4j2
NVD
CVE.org
EPSS
Exploit-DB