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.
Published: 2026-07-10
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The grav-plugin-database builds PDO DSN strings by concatenating user‑modifiable YAML values such as host, dbname, charset, and directory without any sanitization or validation. An attacker with administrative access to the plugin configuration can inject arbitrary DSN attributes or path traversal values, potentially causing the database connection to target unintended databases or files, thereby compromising database confidentiality and integrity.

Affected Systems

All Grav CMS installations that use the grav-plugin-database plugin from vendor getgrav:grav and run any version prior to 1.2.0 are affected.

Risk and Exploitability

The CVSS score of 5.1 reflects moderate risk. The EPSS score is less than 1% and the vulnerability is not listed in CISA KEV, indicating limited public exploitation at this time. Exploitation requires administrative access to the site’s plugin configuration, making it most relevant to internal adversaries or attackers who have compromised an admin account.

Generated by OpenCVE AI on July 26, 2026 at 13:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update grav-plugin-database to version 1.2.0 or newer.
  • Restrict administrator access to the plugin configuration file and limit permissions.
  • Validate and sanitize configuration values to ensure only trusted host, database, and directory parameters are used.

Generated by OpenCVE AI on July 26, 2026 at 13:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 13 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 10 Jul 2026 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Getgrav
Getgrav grav
Vendors & Products Getgrav
Getgrav grav

Fri, 10 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
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.
Title grav-plugin-database: DSN Parameter Injection via Unsanitized Configuration Values in Connection String Construction
Weaknesses CWE-74
References
Metrics cvssV4_0

{'score': 5.1, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-13T18:06:28.730Z

Reserved: 2026-06-30T20:21:25.812Z

Link: CVE-2026-58493

cve-icon Vulnrichment

Updated: 2026-07-13T18:06:00.451Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-26T13:30:04Z

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')