Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCompromise or obtain Grav admin credentials
-
DeliveryAuthenticate to Grav admin panel
-
ExploitNavigate to Database plugin configuration
-
InstallInject malicious DSN attribute or path traversal into YAML config field
-
C2Plugin constructs poisoned PDO DSN string
-
ExecutePDO connects to unintended database or filesystem path
-
ImpactAccess or influence unintended data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | Exploitation requires administrator-level access to the Grav CMS plugin configuration interface - specifically, the ability to write to the database plugin's YAML configuration fields (host, dbname, charset, server, database, directory, filename). This is a PR:H (high-privilege) condition. Exploitation is further limited to environments where the grav-plugin-database plugin is installed and active; sites running Grav CMS without this optional plugin are not affected. The attack is not exploitable by unauthenticated users or lower-privilege Grav roles. What limits exploitation in practice: (1) admin credentials must already be compromised or the attack must be an insider threat; (2) the DSN injection impact is constrained to database connection parameters, not arbitrary OS command execution; (3) path traversal impact depends on the PDO driver in use (SQLite-based drivers are more susceptible than MySQL/PostgreSQL which do not use filesystem paths in DSN fields). |
| Impact | The CVSS 4.0 base score of 5.1 with vector AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N accurately reflects the constrained real-world risk: exploitation requires PR:H (high-privilege, administrator-level) access to the Grav plugin configuration interface, substantially limiting the attack surface to insider threats or compromised admin accounts. The network attack vector (AV:N) acknowledges that the Grav admin panel is typically web-accessible, but the PR:H requirement means this is not a remotely unauthenticated issue. The confidentiality and integrity impacts are both rated Low, consistent with partial database misdirection or limited path traversal rather than full system compromise. No KEV listing and no public POC have been identified, and the EPSS signal is not provided - this reduces urgency significantly. The vulnerability is best characterized as a privilege-boundary control flaw affecting trust assumptions within the admin tier, not a lateral escalation or remote exploitation path. For organizations where admin credentials are tightly controlled, this poses minimal incremental risk beyond already-trusted administrator access. |
| Exploit ScenarioDerived | An attacker who has obtained Grav CMS administrator credentials - through credential stuffing, phishing, or a compromised account - navigates to the Database plugin configuration panel and modifies the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 10, 2026
DSN string injection in grav-plugin-database prior to version 1.2.0 allows an administrator with Grav CMS plugin configuration access to manipulate PDO database connection strings by injecting unsanitized YAML field values. The vulnerable Database::__call method concatenates fields such as host, dbname, charset, server, database, directory, and filename directly into DSN strings without validation, enabling DSN attribute injection or path traversal to redirect database connections to unintended targets. No public exploit code or active exploitation has been identified at time of analysis; the fix is available in version 1.2.0.
RemediationAI
Upgrade grav-plugin-database to version 1.2.0, which addresses the issue per the upstream commit at https://github.com/getgrav/grav-plugin-database/commit/f6d058785c9e23df7efc5ea7556f8746fef286df and the release tag at https://github.com/getgrav/grav-plugin-database/releases/tag/1.2.0. If upgrading immediately is not feasible, restrict access to the Grav admin panel to trusted networks or authenticated VPN sessions to prevent unauthorized administrators from reaching the plugin configuration interface - note this does not eliminate the risk from legitimate but compromised admin accounts. As an additional control, audit existing YAML configuration values in the database plugin settings for unexpected semicolons, path traversal sequences (e.g., ../), or unknown DSN attributes, and normalize them to known-good values. There are no additional vendor-published workarounds beyond patching.
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
The vulnerability resides in the Database::__call method of grav-plugin-database, a plugin extending Grav CMS (CPE: cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*). PHP's PDO layer constructs database connections via DSN strings such as mysql:host=...;dbname=...;charset=..., where each semicolon-delimited key-value pair can override or extend connection parameters. Because the plugin reads connection parameters directly from administrator-controlled YAML configuration fields without sanitization, CWE-74 (Injection) is the root cause - specifically, an attacker controlling these YAML values can inject additional DSN segments (e.g., appending ;unix_socket=/tmp/attacker.sock) or supply path traversal sequences in filesystem-based DSN fields like directory and filename used by SQLite drivers. The result is that the PDO constructor receives an attacker-influenced DSN rather than the intended one.
Know when Grav 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:L/VI:L/VA:N/SC:N/SI:N/SA:N
Admin-only web panel access sets PR:H and AV:N; DSN injection yields partial data and connection integrity impact only.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
grav-plugin-database is the database plugin for Grav CMS. Prior to 1.2.0, Database::__call builds PDO DSN strings by directly concatenating user-configurable YAML values from fields such as host, dbname, charset, server, database, directory, and filename without sanitization or validation, allowing an administrator with plugin configuration access to inject DSN attributes or path traversal values. This issue is fixed in version 1.2.0.
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
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol
Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their
A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug
Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a
GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv
Remote code execution in Grav CMS 2.0.4 (fixed in 2.0.7) lets an authenticated user holding the admin.pages or api.pages
Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri
Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm
Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past
Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (S
Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary
EUVD-2026-42948
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB