Grav: Twig sandbox allows editor-role users to exfiltrate all plugin secrets via Config::toArray()
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| getgrav | grav | affected |
|
Configuration 1 [-]
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Getgrav | Grav |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-j274-39qw-32c9 | Grav: Twig sandbox allows editor-role users to exfiltrate all plugin secrets via Config::toArray() |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.276% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | NVD-CWE-noinfo | |
| CPEs | cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:* cpe:2.3:a:getgrav:grav:2.0.0:beta1:*:*:*:*:*:* cpe:2.3:a:getgrav:grav:2.0.0:beta2:*:*:*:*:*:* cpe:2.3:a:getgrav:grav:2.0.0:beta3:*:*:*:*:*:* cpe:2.3:a:getgrav:grav:2.0.0:beta4:*:*:*:*:*:* cpe:2.3:a:getgrav:grav:2.0.0:rc1:*:*:*:*:*:* |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Getgrav
Getgrav grav |
|
| Vendors & Products |
Getgrav
Getgrav grav |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Grav is a file-based Web platform. Prior to 2.0.0-rc.2, the Twig sandbox allow-list permits any user with the admin.pages role to call config.toArray() from within a page body, dumping the entire merged site configuration — including all plugin secrets (SMTP passwords, AWS keys, OAuth client secrets, API tokens) — into the rendered HTML. No administrator privileges are required. This vulnerability is fixed in 2.0.0-rc.2. | |
| Title | Grav: Twig sandbox allows editor-role users to exfiltrate all plugin secrets via Config::toArray() | |
| Weaknesses | CWE-200 | |
| References |
| |
| Metrics |
cvssV3_1
|