深刻度 高
Twig remote code execution in templates
twig/twig(ライブラリ)の脆弱性です。深刻度は「高」、CVSS は 8.1です。修正版は 1.20.0 です。
- 対象
- twig/twig(ライブラリ)
- CVE 番号
- CVE-2015-7809
- 深刻度
- 高CVSS 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- 影響を受けるバージョン
- 1.20.0 未満
- 修正版
- 1.20.0
- 公開日
- 情報の更新日
- 出典
- OSV.dev(GitHub Advisory を含む OSS 脆弱性データベース)
どのような脆弱性ですか
日本語解説は確認中です。
The `displayBlock` function `Template.php` in Sensio Labs Twig before 1.20.0, when Sandbox mode is enabled, allows remote attackers to execute arbitrary code via the `_self` variable in a template.(原文の抜粋です。全文は下の参考情報から確認できます)
どう対応すればよいですか
twig/twig を、修正版の 1.20.0 以降に更新してください。
更新の前に、サイトのバックアップを取っておくと、不具合が出たときに戻せます。
参考情報
- https://nvd.nist.gov/vuln/detail/CVE-2015-7809(新しいタブで開きます)
- https://github.com/twigphp/Twig/pull/1759(新しいタブで開きます)
- https://github.com/twigphp/Twig/commit/30be07759a3de2558da5224f127d052ecf492e8f(新しいタブで開きます)
- https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2015-7809.yaml(新しいタブで開きます)
- https://github.com/twigphp/Twig(新しいタブで開きます)
- https://symfony.com/blog/security-release-twig-1-20-0(新しいタブで開きます)
- http://openwall.com/lists/oss-security/2015/08/21/3(新しいタブで開きます)
- http://openwall.com/lists/oss-security/2015/10/11/2(新しいタブで開きます)
- http://symfony.com/blog/security-release-twig-1-20-0(新しいタブで開きます)
- http://www.debian.org/security/2015/dsa-3343(新しいタブで開きます)
twig/twig のほかの脆弱性
あなたのサイトは影響を受けていますか
Cyber Shield Guard は、サイトで使っているプラグインとテーマを脆弱性データベースと毎日突き合わせ、該当があれば通知します。登録したサイトが対象かどうかを確かめられます。