SCA: security update for github.com/patrickhener/goshs/v2 (GHSA-c29w-qq4m-2gcv)

critical Tenable Cloud Security Plugin ID 440383

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-40884)

Solution

Update the github.com/patrickhener/goshs/v2 library and its related packages to version 2.0.0 or later.

See Also

https://github.com/advisories/GHSA-c29w-qq4m-2gcv

Plugin Details

Severity: Critical

ID: 440383

Version: Revision 1.8

Type: Local

Family: SCA Checks

Published: 4/15/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.97

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2026-40884

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/14/2026

Vulnerability Publication Date: 4/14/2026

Reference Information

CVE: CVE-2026-40884

cwe: CWE-306