CVE-2021-3818:
Reliance on Cookies without Validation and Integrity Checking in getgrav/grav
6.3
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
9/29/2021
Updated
2/1/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
getgrav/grav | composer | < 1.7.21 | 1.7.21 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from hardcoded '/' path in cookie operations, visible in pre-patch versions of these functions. The commit c51fb17 specifically modifies them to use getCookieOptions() which inherits path/security settings from the main session cookie (including restricted path, secure flag, etc.). The fixed behavior matches the vulnerability description about overly broad paths enabling cross-application cookie access.