CVE-2026-58493
MEDIUM
5.1
CVSS 4.0
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.
Metadata
Severity & Metrics
5.1
MEDIUM CVSS 4.0
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
Affected products (1)
| Vendor | Product | Platform | Versions |
|---|---|---|---|
| getgrav | grav | — | < 1.2.0 |
Weakness (CWE)
| CWE | Source | Description |
|---|---|---|
| CWE-74 | cna | CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') |
CVSS scores (1)
| Score | Severity | Version | Source | Vector |
|---|---|---|---|---|
| 5.1 | MEDIUM | 4.0 | cna | 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 |
References (3)
- https://github.com/getgrav/grav/security/advisories/GHSA-jm58-p4pv-qcwc https://github.com/getgrav/grav/security/advisories/GHSA-jm58-p4pv-qcwc
- https://github.com/getgrav/grav-plugin-database/commit/f6d058785c9e23df7efc5ea7556f8746fef286df https://github.com/getgrav/grav-plugin-database/commit/f6d058785c9e23df7efc5ea7556f8746fef286df
- https://github.com/getgrav/grav-plugin-database/releases/tag/1.2.0 https://github.com/getgrav/grav-plugin-database/releases/tag/1.2.0