CVE-2026-61873
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedGrav before 9.1.8 contains an arbitrary file write vulnerability in the Form plugin's process.save.filename parameter, which is validated against path traversal before Twig processing but never re-validated after rendering. Attackers can submit form data containing path traversal sequences that are processed through Twig templates, allowing them to write arbitrary files including PHP webshells to the web root or other sensitive directories.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceGrav's Form plugin validates the process.save.filename parameter against path traversal BEFORE Twig template processing, but fails to re-validate the rendered filename AFTER Twig processing completes. This allows attackers to submit form data with path traversal sequences (e.g., ../../webshell.php) that pass initial validation but are processed through Twig templates to write arbitrary files including PHP webshells to the web root or sensitive directories.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify Grav CMS core versionCheck the version file at /system/defines.php or look for 'VERSION' in /system/src/Grav/Common/Grav.php. Alternatively, check composer.json in the root for the 'grav' package version.Affected if The installed Grav version is earlier than 9.1.8 and the Form plugin is in use.
-
Identify Form plugin version and statusExamine the plugin directory at /user/plugins/form/ and locate the manifest file (blueprints.yaml) or composer.json within that folder to determine the plugin version. Check if the plugin folder exists and is enabled in /user/config/system.yaml under plugins section.Affected if The Form plugin version is earlier than 9.1.8 or the plugin is installed and enabled.
-
Locate form configurations using process.save.filenameSearch YAML form configuration files in /user/pages/ and /user/config/ for the 'process.save.filename' parameter. Use grep or manually inspect form YAML files (*.yaml) in the pages and config directories.Affected if Forms are configured with process.save.filename parameter, which enables the vulnerable code path.
-
Verify Twig template processing is enabled for formsCheck the form YAML configurations to confirm that Twig processing is enabled (typically via 'twig: true' in the form or process section). Also verify the form includes save processing.Affected if Twig template processing is enabled for forms that use process.save.filename, allowing the second-stage bypass.
-
Check web root file permissionsInspect file permissions on the web root directory (document root). Verify if the web server user has write access to the web root and sensitive directories.Affected if The web server process has write permissions to the web root, which would allow an attacker to successfully write a webshell if exploited.
You are affected if you are running Grav CMS with the Form plugin enabled (version earlier than 9.1.8), have forms configured with process.save.filename, and have Twig processing enabled for those forms.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade to Grav version 9.1.8 or later, which implements re-validation of the filename parameter after Twig rendering. Until patched, disable the Form plugin or implement additional input validation at the web server level.
Grav 9.1.8 or later
- 1. Backup your Grav installation, including all files, the vendor directory, and the user/data directories.
- 2. If using Composer, run `composer update` to fetch the latest Grav core packages.
- 3. Alternatively, download Grav 9.1.8 or later from the official GitHub releases at github.com/getgrav/grav.
- 4. Replace the existing Grav core files with the new version, preserving your user/ directory and configuration.
- 5. Clear the cache directory (cache/twig/, cache/doctrine/, etc.) to ensure the patched code is used.
- 6. Verify the Form plugin is updated to the latest version compatible with Grav 9.1.8.
- 7. Test that forms still function correctly, especially any custom form configurations.
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation6.0 h
- Testing6.0 h
- Review / QA4.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,600.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-61873 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-61873 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data