What’s Vulnerable › Vulnerabilities
CVE-2026-58493: grav-plugin-database: DSN Parameter Injection via Unsanitized Configuration Values in Connection String Construction
- Severity: medium (CVSS 5.1 v4.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-10 · updated 2026-10-25
- Weakness: CWE-74
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.
Affected products
- getgrav grav: before 1.2.0
References
- 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/security/advisories/GHSA-jm58-p4pv-qcwc
- https://github.com/getgrav/grav/security/advisories/GHSA-jm58-p4pv-qcwc
Get alerted when CVE-2026-58493 or the next vulnerability affects your stack