launch-editor Windows環境で存在確認を回避されOSコマンドを実行される恐れ
Summary
Windows環境で、ファイル名に行番号などの接尾辞と親ディレクトリを含む細工された引数を渡されると、存在確認が回避される脆弱性です。別のWindows向けの問題と組み合わさると、OSコマンドインジェクションにつながるおそれがあります。影響を受けるのはlaunch-editorの2.14.2より前の版で、2.14.2で修正されています。vite(6.4.4未満)やvite-plus(1.1.0未満)も影響を受けるため、それぞれの修正版への更新を行ってください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Windows環境で、ファイル名に行番号などの接尾辞と親ディレクトリを含む細工された引数を渡されると、存在確認が回避される脆弱性です。別のWindows向けの問題と組み合わさると、OSコマンドインジェクションにつながるおそれがあります。影響を受けるのはlaunch-editorの2.14.2より前の版で、2.14.2で修正されています。vite(6.4.4未満)やvite-plus(1.1.0未満)も影響を受けるため、それぞれの修正版への更新を行ってください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npmlaunch-editor |
< 2.14.2→ 2.14.2 |
2.14.2 |
| npmvite |
< 6.4.4→ 6.4.4 |
6.4.4 |
| npmvite-plus |
< 1.1.0→ 1.1.0 |
1.1.0 |
| vitejslaunch-editor | — | Not listed |
| vitejsvite | — | Not listed |
| vitejsvite-plus | — | Not listed |
Original description The description as published by the source.
launch-editor allows users to open files with line numbers in editor from Node.js. Prior to 2.14.2, launch-editor-middleware processes an attacker-controlled Windows file argument where the file argument ends in a parent-directory component plus a line-and-column suffix: the path is resolved while the suffix is still present, and launch-editor removes the suffix before its existsSync check, leaving the existing parent directory for existsSync and allowing the attacker-controlled file argument to pass filename existence validation without requiring the malicious filename to exist. The bypass can lead to OS command injection when combined with the separately described Windows percent-expansion flaw. This issue is fixed in version 2.14.2.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com