CVE-2026-130744: Grav 2.0.0 before 2.2.18 RCE via Host Header Environment Folder

Published Nov 18, 2026
·
Updated

Grav from 2.0.0 before 2.2.18 contains a remote code execution vulnerability that allows page editors to escape the Twig sandbox by sending requests with a Host: pages header. Attackers can write configuration YAML through page folders and media .meta.yaml sidecars to register an unsandboxed Twig namespace and run shell commands as the web server user.

Affected Software

1 affected component
Grav Grav>=2.0.0<2.2.18

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Grav to a version that resolves this vulnerability.

    Fixed in 2.2.18

Event History

Nov 18, 2026
CVE Published
via MITRE·11:34 AM
Data Sourced
via MITRE·11:34 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An attacker needs page editor privileges in Grav. The attack is performed by sending requests with a Host header set to pages, so it can be carried out remotely by an authenticated editor without user interaction.

2

What access does successful exploitation provide?

Successful exploitation lets the attacker escape the Twig sandbox and execute shell commands as the web server user. This can affect confidentiality, integrity, and availability of resources accessible to that account.

3

Which installations are affected?

Grav versions from 2.0.0 up to, but not including, 2.2.18 are affected. Systems running 2.2.18 or later are not identified as affected by the provided information.

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