CVE-2026-130741
JSON

8.7high

Grav 2.0.0 before 2.2.18 Arbitrary File Read via Twig Sandbox Bypass

Severity
8.7high CVSS:4.0 by VulnCheck
Exploit likelihood
0.70% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

Description

Grav from 2.0.0 before 2.2.18 contains a Twig sandbox bypass vulnerability that allows publishers to read any server file by abusing allowlisted array_key_value() and page accessor setters such as filePath(). Attackers can repoint page objects or overwrite the assets collections to render private keys and the API signing secret, then forge a super-admin API token.

Affected

Product or packageVersionsReported by
getgrav gravfrom 2.0.0 before 2.2.18
Not affected: 2.2.18
CVE List

All scores

VulnCheck8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-200

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-130741 changed 2026-11-21CVE Terms of Use
NVDCVE-2026-130741 changed 2026-11-21Public domain