| 概要 | Pug is an npm package which is a high-performance template engine. In pug before version 3.0.1, if a remote attacker was able to control the `pretty` option of the pug compiler, e.g. if you spread a user provided object such as the query parameters of a request into the pug template inputs, it was possible for them to achieve remote code execution on the node.js backend. This is fixed in version 3.0.1. This advisory applies to multiple pug packages including "pug", "pug-code-gen". pug-code-gen has a backported fix at version 2.0.3. This advisory is not exploitable if there is no way for un-trusted input to be passed to pug as the `pretty` option, e.g. if you compile templates in advance before applying user input to them, you do not need to upgrade. |
|---|---|
| 公表日 | 2021年3月3日11:15 |
| 登録日 | 2021年3月3日16:02 |
| 最終更新日 | 2024年11月21日14:48 |
| CVSS3.1 : CRITICAL | |
| スコア | 9.0 |
|---|---|
| ベクター | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| 攻撃元区分(AV) | ネットワーク |
| 攻撃条件の複雑さ(AC) | 高 |
| 攻撃に必要な特権レベル(PR) | 不要 |
| 利用者の関与(UI) | 不要 |
| 影響の想定範囲(S) | 変更あり |
| 機密性への影響(C) | 高 |
| 完全性への影響(I) | 高 |
| 可用性への影響(A) | 高 |
| CVSS2.0 : MEDIUM | |
| スコア | 6.8 |
|---|---|
| ベクター | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| 攻撃元区分(AV) | ネットワーク |
| 攻撃条件の複雑さ(AC) | 中 |
| 攻撃前の認証要否(Au) | 不要 |
| 機密性への影響(C) | 低 |
| 完全性への影響(I) | 低 |
| 可用性への影響(A) | 低 |
| 全ての特権を取得 | いいえ |
| ユーザー権限を取得 | いいえ |
| その他の権限を取得 | いいえ |
| ユーザー操作が必要 | いいえ |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:pugjs:pug:*:*:*:*:*:node.js:*:* | 3.0.1 | ||||
| cpe:2.3:a:pugjs:pug-code-gen:*:*:*:*:*:node.js:*:* | 3.0.0 | 3.0.2 | |||
| cpe:2.3:a:pugjs:pug-code-gen:*:*:*:*:*:node.js:*:* | 2.0.3 | ||||
| タイトル | pug および pug-code-gen におけるインジェクションに関する脆弱性 |
|---|---|
| 概要 | pug および pug-code-gen には、インジェクションに関する脆弱性が存在します。 |
| 想定される影響 | 情報を取得される、情報を改ざんされる、およびサービス運用妨害 (DoS) 状態にされる可能性があります。 |
| 対策 | ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2021年3月1日0:00 |
| 登録日 | 2021年11月10日11:50 |
| 最終更新日 | 2021年11月10日11:50 |
| pugjs |
| pug 3.0.1 未満 |
| pug-code-gen |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2021年11月10日] 掲載 |
2021年11月10日11:50 |