深刻度 低
Twig Sandbox Information Disclosure
twig/twig(ライブラリ)の脆弱性です。深刻度は「低」、CVSS は 3.7です。修正版は 1.38.0 です。
- 対象
- twig/twig(ライブラリ)
- CVE 番号
- CVE-2019-9942
- 深刻度
- 低CVSS 3.7CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
- 影響を受けるバージョン
- 1.38.0 未満
- 修正版
- 1.38.0
- 公開日
- 情報の更新日
- 出典
- OSV.dev(GitHub Advisory を含む OSS 脆弱性データベース)
どのような脆弱性ですか
日本語解説は確認中です。
A sandbox information disclosure exists in Twig before 1.38.0 and 2.x before 2.7.0 because, under some circumstances, it is possible to call the `__toString()` method on an object even if not allowed by the security policy in place.(原文の抜粋です。全文は下の参考情報から確認できます)
どう対応すればよいですか
twig/twig を、修正版の 1.38.0 以降に更新してください。
更新の前に、サイトのバックアップを取っておくと、不具合が出たときに戻せます。
参考情報
- https://nvd.nist.gov/vuln/detail/CVE-2019-9942(新しいタブで開きます)
- https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077(新しいタブで開きます)
- https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2019-9942.yaml(新しいタブで開きます)
- https://github.com/twigphp/Twig(新しいタブで開きます)
- https://seclists.org/bugtraq/2019/Mar/60(新しいタブで開きます)
- https://symfony.com/blog/twig-sandbox-information-disclosure(新しいタブで開きます)
- https://www.debian.org/security/2019/dsa-4419(新しいタブで開きます)
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 has a possible sandbox bypass
- Twig Path Traversal vulnerability in the filesystem loader
- Twig remote code execution in templates
あなたのサイトは影響を受けていますか
Cyber Shield Guard は、サイトで使っているプラグインとテーマを脆弱性データベースと毎日突き合わせ、該当があれば通知します。登録したサイトが対象かどうかを確かめられます。