5.1medium
grav-plugin-database: DSN Parameter Injection via Unsanitized Configuration Values in Connection String Construction
- Severity
- 5.1medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.37% (higher than 32% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
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
| Product or package | Versions | Reported by |
|---|---|---|
| getgrav grav | < 1.2.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
grav-plugin-database es el plugin de base de datos para Grav CMS. Antes de la 1.2.0, Database::__call construye cadenas DSN de PDO concatenando directamente valores YAML configurables por el usuario de campos como host, dbname, charset, servidor, base de datos, directory y filename sin saneamiento ni validación, lo que permite a un administrador con acceso a la configuración del plugin inyectar atributos DSN o valores de salto de ruta. Este problema se ha corregido en la versión 1.2.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-58493 changed 2026-07-13 | CVE Terms of Use |
| NVD | CVE-2026-58493 changed 2026-10-25 | Public domain |