深刻度 高
Twig has a possible sandbox bypass
twig/twig(ライブラリ)の脆弱性です。深刻度は「高」、CVSS は 8.5です。修正版は 1.44.8 です。
- 対象
- twig/twig(ライブラリ)
- CVE 番号
- CVE-2024-45411
- 深刻度
- 高CVSS 8.5CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- 影響を受けるバージョン
- 1.0.0 以上、1.44.8 未満
- 修正版
- 1.44.8
- 公開日
- 情報の更新日
- 出典
- OSV.dev(GitHub Advisory を含む OSS 脆弱性データベース)
どのような脆弱性ですか
日本語解説は確認中です。
### Description Under some circumstances, the sandbox security checks are not run which allows user-contributed templates to bypass the sandbox restrictions. The security issue happens when all these conditions are met: * The sandbox is disabled globally; * The sandbox is enabled via a sandboxed `i…(原文の抜粋です。全文は下の参考情報から確認できます)
どう対応すればよいですか
twig/twig を、修正版の 1.44.8 以降に更新してください。
更新の前に、サイトのバックアップを取っておくと、不具合が出たときに戻せます。
参考情報
- https://github.com/twigphp/Twig/security/advisories/GHSA-6j75-5wfj-gh66(新しいタブで開きます)
- https://nvd.nist.gov/vuln/detail/CVE-2024-45411(新しいタブで開きます)
- https://github.com/twigphp/Twig/commit/11f68e2aeb526bfaf638e30d4420d8a710f3f7c6(新しいタブで開きます)
- https://github.com/twigphp/Twig/commit/2102dd135986db79192d26fb5f5817a566e0a7de(新しいタブで開きます)
- https://github.com/twigphp/Twig/commit/41103dcdc2daab4c83cdd05b5b4fde5b7e41e635(新しいタブで開きます)
- https://github.com/twigphp/Twig/commit/7afa198603de49d147e90d18062e7b9addcf5233(新しいタブで開きます)
- https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2024-45411.yaml(新しいタブで開きます)
- https://github.com/twigphp/Twig(新しいタブで開きます)
- https://symfony.com/blog/twig-security-release-possible-sandbox-bypass(新しいタブで開きます)
twig/twig のほかの脆弱性
- Twig security issue where escaping was missing when using null coalesce operator
- Twig has unguarded calls to `__isset()` and to array-accesses when the sandbox is enabled
- Twig Path Traversal vulnerability in the filesystem loader
- Twig remote code execution in templates
- Twig Sandbox Information Disclosure
あなたのサイトは影響を受けていますか
Cyber Shield Guard は、サイトで使っているプラグインとテーマを脆弱性データベースと毎日突き合わせ、該当があれば通知します。登録したサイトが対象かどうかを確かめられます。