Cwe 22

🧬 CWE Related 96
slug: cwe-22

Explanation

CWE-22は「ファイル名のパスをユーザー入力から組み立てるとき、`../` のような相対パス記号をきちんと無害化せず、本来アクセスできないファイルを読み書きされてしまう欠陥」のことです。 ファイルダウンロード機能・画像表示機能・テンプレート機能でよく見られます。 対策は「絶対パスへの正規化 + 許可されたディレクトリ内かのチェック」、または「ファイル名にIDのみを使い、パス記号を一切使わない設計」。
📌 Example
CVE-2024-57726 (SimpleHelp): zipファイル展開時のZip Slip攻撃で、サーバー上の任意の場所にファイル書き込みされる脆弱性。CISA KEV入り。

🔖 Related tags

🛡 Vulnerabilities tagged with this 1,023

ID Title
CVE-2015-7270 Path Traversal in path-traversal (CVE-2015-7270)
CVE-2017-7577 Path Traversal in path-traversal (CVE-2017-7577)
CVE-2017-7565 Path Traversal in path-traversal (CVE-2017-7565)
CVE-2017-7358 Path Traversal in path-traversal (CVE-2017-7358)
CVE-2017-4980 Path Traversal in path-traversal (CVE-2017-4980)
CVE-2017-7258 Path Traversal in path-traversal (CVE-2017-7258)
CVE-2015-8309 Path Traversal in cherrymusic (CVE-2015-8309)
CVE-2017-5899 Path Traversal in path-traversal (CVE-2017-5899)
CVE-2017-7240 Path Traversal in path-traversal (CVE-2017-7240)
CVE-2017-5869 Path Traversal in path-traversal (CVE-2017-5869)
CVE-2016-10048 Path Traversal in c (CVE-2016-10048)
CVE-2017-3851 Path Traversal in path-traversal (CVE-2017-3851)
CVE-2017-6805 Path Traversal in path-traversal (CVE-2017-6805)
CVE-2014-8704 Path Traversal in path-traversal (CVE-2014-8704)
CVE-2017-6510 Path Traversal in path-traversal (CVE-2017-6510)
CVE-2013-7462 Path Traversal in path-traversal (CVE-2013-7462)
CVE-2017-6527 Path Traversal in path-traversal (CVE-2017-6527)
CVE-2016-7135 Path Traversal in plone (CVE-2016-7135)
CVE-2016-9164 Path Traversal in path-traversal (CVE-2016-9164)
CVE-2017-5228 Path Traversal in path-traversal (CVE-2017-5228)
CVE-2017-5229 Path Traversal in path-traversal (CVE-2017-5229)
CVE-2017-5231 Path Traversal in path-traversal (CVE-2017-5231)
CVE-2017-5982 Path Traversal in path-traversal (CVE-2017-5982)
CVE-2017-5946 Path Traversal in path-traversal (CVE-2017-5946)
CVE-2017-6306 Path Traversal in c (CVE-2017-6306)
CVE-2016-4314 Path Traversal in path-traversal (CVE-2016-4314)
CVE-2017-5168 Path Traversal in path-traversal (CVE-2017-5168)
CVE-2016-9357 Path Traversal in path-traversal (CVE-2016-9357)
CVE-2016-9364 Path Traversal in path-traversal (CVE-2016-9364)
CVE-2017-5143 Path Traversal in path-traversal (CVE-2017-5143)

🍪 About cookies

We use cookies to keep you logged in, remember your language, and improve the service.

Details →