Technical impact
Grav CMS versions 2.0.0 through 2.2.17 are vulnerable to a Twig injection flaw that allows media‑only users and anonymous uploaders to embed Twig delimiters in image titles, alt text, class, id or file names. An attacker can inject Twig expressions that are rendered by the template engine, potentially executing arbitrary code and revealing unpublished page content. When combined with the autoescape tag, the attacker can serve malicious scripts to any visitor, even super administrators, effectively performing a site‑wide cross‑site scripting attack.
Affected Systems
The affected vendor is Grav, with the Grav CMS product. All releases from 2.0.0 up to but not including 2.2.18 are impacted. Users with media‑only accounts or sites that allow anonymous file uploads can exploit the flaw.
Risk and Exploitability
The CVSS score of 9.3 marks the vulnerability as critical. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is through media uploads or editing media metadata, which can be performed by users with limited permissions or anonymously if the site permits. Because the flaw allows remote code execution within the templating engine, the potential impact is high, affecting confidentiality, integrity, and availability of the site and its visitors.