mistuneでパス・トラバーサルによりサーバー上の任意ファイルを読み取られる
Summary
Mistune 3.3.0より前のバージョンには、RST の include ディレクティブにパス・トラバーサルの脆弱性があり、攻撃者が相対パスや絶対パスを指定して任意のファイルを読み取れるおそれがあります。認証情報や環境設定などの機密ファイルが、レンダリングされた HTML に埋め込まれる可能性があります。3.3.0 以降へのアップデートをお勧めします。
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
Mistune 3.3.0より前のバージョンには、RST の include ディレクティブにパス・トラバーサルの脆弱性があり、攻撃者が相対パスや絶対パスを指定して任意のファイルを読み取れるおそれがあります。認証情報や環境設定などの機密ファイルが、レンダリングされた HTML に埋め込まれる可能性があります。3.3.0 以降へのアップデートをお勧めします。
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| lepture | mistune |
< 3.3.0 |
3.3.0 |
Original description The description as published by the source.
Mistune before 3.3.0 contains a path traversal vulnerability in the RST include directive that allows attackers to read arbitrary files by supplying relative or absolute paths. Attackers can submit markdown containing include directives referencing ../ sequences or absolute paths to embed sensitive files like credentials or environment data in rendered HTML.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web github.com
- web vulncheck.com
- web nvd.nist.gov
- web github.com