goshsにおける重要な機能に対する認証の欠如に関する脆弱性
| Title |
goshsにおける重要な機能に対する認証の欠如に関する脆弱性
|
| Summary |
goshsはGoで書かれたSimpleHTTPServerです。2.0.0-beta.6以前のバージョンには、ドキュメントに記載されている空のユーザー名のBasic認証構文を使用した場合に、SFTP認証バイパスの脆弱性が存在していました。サーバーが -b ':pass' オプションと -sftp オプションを一緒に指定して起動された場合、goshsはその設定を受け入れますが、SFTPのパスワードハンドラーをインストールしません。その結果、認証されていないネットワーク攻撃者がSFTPサービスに接続してパスワードなしでファイルにアクセスできてしまいます。この脆弱性は2.0.0-beta.6で修正されています。
|
| Possible impacts |
当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| Solution |
正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
April 21, 2026, midnight |
| Registration Date |
April 30, 2026, 12:28 p.m. |
| Last Update |
April 30, 2026, 12:28 p.m. |
|
CVSS3.0 : 緊急
|
| Score |
9.8
|
| Vector |
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected System
| goshs |
|
goshs 2.0.0
|
|
goshs 2.0.0 未満
|
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年04月30日] 掲載 |
April 30, 2026, 12:28 p.m. |
NVD Vulnerability Information
CVE-2026-40884
| Summary |
goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.6, goshs contains an SFTP authentication bypass when the documented empty-username basic-auth syntax is used. If the server is started with -b ':pass' together with -sftp, goshs accepts that configuration but does not install any SFTP password handler. As a result, an unauthenticated network attacker can connect to the SFTP service and access files without a password. This vulnerability is fixed in 2.0.0-beta.6.
|
| Publication Date |
April 22, 2026, 5:17 a.m. |
| Registration Date |
April 25, 2026, 4:03 a.m. |
| Last Update |
April 27, 2026, 11:55 p.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:* |
|
|
|
2.0.0 |
| cpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:* |
|
|
|
|
| cpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:* |
|
|
|
|
| cpe:2.3:a:goshs:goshs:2.0.0:beta3:*:*:*:go:*:* |
|
|
|
|
| cpe:2.3:a:goshs:goshs:2.0.0:beta4:*:*:*:go:*:* |
|
|
|
|
| cpe:2.3:a:goshs:goshs:2.0.0:beta5:*:*:*:go:*:* |
|
|
|
|
Related information, measures and tools
Common Vulnerabilities List