Charmbracelet Wishのgitミドルウェアに脆弱性、認証済みユーザーが想定外のリポジトリを読み書き可能
Summary
Charmbracelet Wishの2.0.5より前のバージョンには、gitミドルウェアのパストラバーサルの脆弱性が見つかりました。認証済みのSSHユーザーが、設定されたリポジトリのディレクトリの外にあるリポジトリを読み書きできるおそれがあります。修正版の2.0.5に更新してください。
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.
Charmbracelet Wishの2.0.5より前のバージョンには、gitミドルウェアのパストラバーサルの脆弱性が見つかりました。認証済みのSSHユーザーが、設定されたリポジトリのディレクトリの外にあるリポジトリを読み書きできるおそれがあります。修正版の2.0.5に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| charmbraceletwish |
< 2.0.5→ 2.0.5 |
2.0.5 |
Original description The description as published by the source.
Charmbracelet wish before 2.0.5 contains a path traversal vulnerability in the git middleware (charm.land/wish/v2) that allows authenticated SSH users to escape the configured repository directory by supplying crafted repo paths that bypass a flawed forward-slash-count containment check in git.Middleware(). Attackers can use a single-depth path ../evil, or on Windows a payload ....\evil that defeats the slash-count guard entirely, to read or write arbitrary repositories outside the intended root via git-upload-pack, git-upload-archive, or git-receive-pack.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- web github.com