CVE-2026-58493: CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in getgrav grav
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.
AI Analysis
Technical Summary
The grav-plugin-database component of Grav CMS versions before 1.2.0 constructs PDO DSN connection strings by concatenating user-configurable YAML fields such as host, dbname, charset, server, database, directory, and filename without sanitization or validation. This improper neutralization of special elements (CWE-74) enables an administrator with access to plugin configuration to inject DSN attributes or path traversal sequences, potentially altering database connection behavior or file paths. The vulnerability is addressed in version 1.2.0.
Potential Impact
An administrator with plugin configuration access can exploit this vulnerability to inject malicious DSN attributes or path traversal values, which may lead to unintended database connections or file system access. The CVSS 4.0 score is 5.1 (medium severity), reflecting that exploitation requires high privileges and no user interaction, with low impact on confidentiality and integrity and no impact on availability.
Mitigation Recommendations
Upgrade the grav-plugin-database plugin to version 1.2.0 or later, where this issue is fixed. There is no official patch advisory beyond this version update. Until upgraded, restrict administrative access to trusted users only to minimize risk.
CVE-2026-58493: CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in getgrav grav
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.
CVSS v4.0
Score 5.1medium
Affected software
pkg:github/getgrav/grav-plugin-databaseRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The grav-plugin-database component of Grav CMS versions before 1.2.0 constructs PDO DSN connection strings by concatenating user-configurable YAML fields such as host, dbname, charset, server, database, directory, and filename without sanitization or validation. This improper neutralization of special elements (CWE-74) enables an administrator with access to plugin configuration to inject DSN attributes or path traversal sequences, potentially altering database connection behavior or file paths. The vulnerability is addressed in version 1.2.0.
Potential Impact
An administrator with plugin configuration access can exploit this vulnerability to inject malicious DSN attributes or path traversal values, which may lead to unintended database connections or file system access. The CVSS 4.0 score is 5.1 (medium severity), reflecting that exploitation requires high privileges and no user interaction, with low impact on confidentiality and integrity and no impact on availability.
Mitigation Recommendations
Upgrade the grav-plugin-database plugin to version 1.2.0 or later, where this issue is fixed. There is no official patch advisory beyond this version update. Until upgraded, restrict administrative access to trusted users only to minimize risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-30T20:21:25.812Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a511ed668715ace43d68a05
Added to database: 07/10/2026, 16:33:26 UTC
Last enriched: 07/18/2026, 15:30:44 UTC
Last updated: 08/23/2026, 22:52:12 UTC
Views: 76
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.