Technical impact
Grav before 1.7.53.7 and 2.x before 2.2.18 returns media files and rendered pages to visitors with the visitor's session cookie and a shared‑cacheable Cache‑Control header. It is inferred that the responses also include a Set‑Cookie header because they carry a session cookie. If a shared cache such as Apache mod_cache stores these Set‑Cookie responses, an attacker can lure a logged‑in user to request a media URL with a unique query string, causing the response to be cached, and then retrieve the cached session cookie to hijack the session. This flaw is categorized as CWE‑524 and can result in unauthorized access to the victim’s authenticated session.
Affected Systems
The vulnerable software is Grav CMS from the getgrav organization. Versions prior to 1.7.53.7 and prior to 2.2.18 are affected. No specific patches are listed; institutions must check for versions 1.7.53.7 or 2.2.18 and later.
Risk and Exploitability
The CVSS score of 7.7 indicates a high severity vulnerability. EPSS data is unavailable, and the vulnerability is not in the CISA KEV catalog. The attack vector is inferred to involve a shared caching layer that stores Set‑Cookie responses, based on the description that media responses contain the visitor’s session cookie. By luring a logged‑in user to visit a crafted media URL, an attacker can cause the response to be cached and then retrieve the cached session cookie, gaining control of the victim’s session. The risk to affected systems is significant due to the vulnerability’s severity and the feasibility of the exploitation path.