CVE-2026-61873: Grav before 9.1.8 Arbitrary File Write via Twig-Processed Filename

Published Jul 15, 2026
·
Updated

Grav 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.

Affected Software

1 affected component
Grav Grav<9.1.8

Event History

Jul 15, 2026
CVE Published
via MITRE·11:25 AM
Data Sourced
via MITRE·11:25 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:18 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-61873?

The severity of CVE-2026-61873 is rated high with a score of 8.1.

2

How do I fix CVE-2026-61873?

To fix CVE-2026-61873, upgrade Grav to version 9.1.8 or later where the vulnerability has been addressed.

3

What type of vulnerability is CVE-2026-61873?

CVE-2026-61873 is an arbitrary file write vulnerability due to improper validation of filename parameters.

4

What can attackers do with CVE-2026-61873?

Attackers can exploit CVE-2026-61873 to write arbitrary files on the server by submitting specially crafted form data.

5

Which software is affected by CVE-2026-61873?

CVE-2026-61873 affects Grav versions before 9.1.8.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203