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,026

ID Title
CVE-2015-1198 Multiple directory traversal vulnerabilities in ha 0.999p+dfsg-5.
CVE-2015-1199 Directory traversal vulnerability in ppmd 10.1-5.
CVE-2015-1386 Directory traversal vulnerability in unshield 1.0-1.
CVE-2015-1876 Directory traversal vulnerability in ES File Explorer 3.2.4.1.
CVE-2014-5301 Path Traversal in path-traversal (CVE-2014-5301)
CVE-2014-5302 Path Traversal in path-traversal (CVE-2014-5302)
CVE-2014-8871 Path Traversal in path-traversal (CVE-2014-8871)
CVE-2017-7693 Path Traversal in path-traversal (CVE-2017-7693)
CVE-2017-12694 Path Traversal in path-traversal (CVE-2017-12694)
CVE-2017-9640 Path Traversal in path-traversal (CVE-2017-9640)
CVE-2015-1395 Path Traversal in path-traversal (CVE-2015-1395)
CVE-2015-4180 Path Traversal in path-traversal (CVE-2015-4180)
CVE-2015-4181 Path Traversal in path-traversal (CVE-2015-4181)
CVE-2015-8352 Path Traversal in path-traversal (CVE-2015-8352)
CVE-2017-12074 Path Traversal in path-traversal (CVE-2017-12074)
CVE-2017-9511 Path Traversal in path-traversal (CVE-2017-9511)
CVE-2017-12791 Path Traversal in salt (CVE-2017-12791)
CVE-2017-7424 Path Traversal in path-traversal (CVE-2017-7424)
CVE-2017-12943 Path Traversal in path-traversal (CVE-2017-12943)
CVE-2017-10665 Path Traversal in path-traversal (CVE-2017-10665)
CVE-2017-12938 Path Traversal in rarlab (CVE-2017-12938)
CVE-2017-7675 Path Traversal in apache (CVE-2017-7675)
CVE-2015-0781 Path Traversal in path-traversal (CVE-2015-0781)
CVE-2017-11152 Path Traversal in path-traversal (CVE-2017-11152)
CVE-2011-5325 Path Traversal in path-traversal (CVE-2011-5325)
CVE-2017-6758 Path Traversal in path-traversal (CVE-2017-6758)
CVE-2017-12586 Path Traversal in path-traversal (CVE-2017-12586)
CVE-2017-10949 Path Traversal in path-traversal (CVE-2017-10949)
CVE-2017-7442 Path Traversal in path-traversal (CVE-2017-7442)
CVE-2017-11389 Path Traversal in path-traversal (CVE-2017-11389)

🍪 About cookies

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

Details →