# CVE-2026-58493: grav-plugin-database: DSN Parameter Injection via Unsanitized Configuration Values in Connection String Construction

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-10T16:24:32.595Z
- Modified: 2026-10-25T15:10:00.147Z
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- getgrav grav: < 1.2.0

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-jm58-p4pv-qcwc> (exploit)
- <https://github.com/getgrav/grav-plugin-database/commit/f6d058785c9e23df7efc5ea7556f8746fef286df>
- <https://github.com/getgrav/grav-plugin-database/releases/tag/1.2.0>

## Sources

- CVE List: [CVE-2026-58493](https://www.cve.org/CVERecord?id=CVE-2026-58493), CVE Terms of Use, modified 2026-07-13
- NVD: [CVE-2026-58493](https://nvd.nist.gov/vuln/detail/CVE-2026-58493), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-58493 · Whole record: https://cve.day/CVE-2026-58493.json · Rebuilt by cve.day 2026-11-25T22:59:27.655Z
