CVE-2026-58493 Details
Description
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.
A vulnerability exists in the Grav CMS Database Plugin prior to version 1.2.0, allowing for unsanitized user-configurable values to be injected into PDO DSN strings. This issue enables an administrator with plugin configuration access to introduce arbitrary DSN attributes or path traversal values. The vulnerability arises because the plugin concatenates YAML values from various fields, including host, dbname, charset, server, database, directory, and filename, without proper validation or sanitization. Exploitation could lead to connection redirection, bypassing security controls, and unauthorized filesystem access.
Users should update to Grav Database Plugin version 1.2.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 10, 2026CISA-ADP
Assessed Jul 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/getgrav/grav/security/advisories/GHSA-jm58-p4pv-qcwc | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/getgrav/grav-plugin-database/commit/f6d058785c9e23df7efc5ea7556f8746fef286df | [email protected] | Source CodeVendor |
| https://github.com/getgrav/grav-plugin-database/releases/tag/1.2.0 | [email protected] | Release NotesVendor |
| https://github.com/getgrav/grav/security/advisories/GHSA-jm58-p4pv-qcwc | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Grav | All versions |
CPE
Remediation
| |
| Grav Plugin Database | 1.1.2 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 13, 2026 | CVE Modified | CISA-ADP |
| Jul 10, 2026 | New CVE Received | [email protected] |
Volerion