深刻度 低
Twig has unguarded calls to `__isset()` and to array-accesses when the sandbox is enabled
twig/twig(ライブラリ)の脆弱性です。深刻度は「低」、CVSS は 2.2です。修正版は 3.11.2 です。
- 対象
- twig/twig(ライブラリ)
- CVE 番号
- CVE-2024-51755
- 深刻度
- 低CVSS 2.2CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N
- 影響を受けるバージョン
- 3.11.2 未満
- 修正版
- 3.11.2
- 公開日
- 情報の更新日
- 出典
- OSV.dev(GitHub Advisory を含む OSS 脆弱性データベース)
どのような脆弱性ですか
日本語解説は確認中です。
### Description In a sandbox, and attacker can access attributes of Array-like objects as they were not checked by the security policy. They are now checked via the property policy and the `__isset()` method is now called after the security check. **This is a BC break.** ### Resolution The sandbox …(原文の抜粋です。全文は下の参考情報から確認できます)
どう対応すればよいですか
twig/twig を、修正版の 3.11.2 以降に更新してください。
更新の前に、サイトのバックアップを取っておくと、不具合が出たときに戻せます。
参考情報
- https://github.com/twigphp/Twig/security/advisories/GHSA-jjxq-ff2g-95vh(新しいタブで開きます)
- https://nvd.nist.gov/vuln/detail/CVE-2024-51755(新しいタブで開きます)
- https://github.com/twigphp/Twig/commit/831c148e786178e5f2fde9db67266be3bf241c21(新しいタブで開きます)
- https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2024-51755.yaml(新しいタブで開きます)
- https://github.com/twigphp/Twig(新しいタブで開きます)
- https://symfony.com/blog/unguarded-calls-to-__isset-and-to-array-accesses-when-the-sandbox-is-enabled(新しいタブで開きます)
twig/twig のほかの脆弱性
あなたのサイトは影響を受けていますか
Cyber Shield Guard は、サイトで使っているプラグインとテーマを脆弱性データベースと毎日突き合わせ、該当があれば通知します。登録したサイトが対象かどうかを確かめられます。