Gravに任意のサーバーファイルを読み取られる脆弱性、Twigサンドボックス回避が原因
Summary
Grav 2.0.0から2.2.18未満に、Twigのサンドボックスを回避される脆弱性があります。投稿者権限を持つ攻撃者が、サーバー上の任意のファイルを読み取れるおそれがあり、秘密鍵やAPI署名用のシークレットから管理者向けのAPIトークンを偽造される可能性があります。修正版の2.2.18へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Grav 2.0.0から2.2.18未満に、Twigのサンドボックスを回避される脆弱性があります。投稿者権限を持つ攻撃者が、サーバー上の任意のファイルを読み取れるおそれがあり、秘密鍵やAPI署名用のシークレットから管理者向けのAPIトークンを偽造される可能性があります。修正版の2.2.18へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| getgravgrav |
≥ 2.0.0, < 2.2.18→ 2.2.18 |
2.2.18 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- web github.com
- web nvd.nist.gov
- web github.com