goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)
goshs is a feature-rich single-binary file server for red teamers and developers. From 2.1.3 until 2.1.4, the sftpserver/sftpserver.go password handler used Username != "" && Password != "", so running goshs with -b 'admin:' -sftp and no -fkf left both SFTP authentication handlers unset and allowed unauthenticated file access. This issue is fixed in version 2.1.4.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-62325
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 20:14 UTC · Revision 1
Source evidence
goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)
core-osv · Original sourcePublished 28 Jul 2026, 21:52 UTC
goshs is a feature-rich single-binary file server for red teamers and developers. From 2.1.3 until 2.1.4, the sftpserver/sftpserver.go password handler used Username != "" && Password != "", so running goshs with -b 'admin:' -sftp and no -fkf left both SFTP authentication handlers unset and allowed unauthenticated file access. This issue is fixed in version 2.1.4.
osv:CVE-2026-62325
Complete source record
{
"id": "9d2c70f34d6fa04172171d44f10a14accf3b257f95a26ccfb13fa59571b4b79c",
"url": "https://osv.dev/vulnerability/CVE-2026-62325",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)",
"summary": "goshs is a feature-rich single-binary file server for red teamers and developers. From 2.1.3 until 2.1.4, the sftpserver/sftpserver.go password handler used Username != \"\" && Password != \"\", so running goshs with -b 'admin:' -sftp and no -fkf left both SFTP authentication handlers unset and allowed unauthenticated file access. This issue is fixed in version 2.1.4.",
"evidence": "osv:CVE-2026-62325",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2026-62325",
"aliases": [
"CVE-2026-62325",
"GHSA-rjrw-mjq6-hpmm",
"GO-2026-6132"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/goshs-labs/goshs",
"type": "GIT",
"events": [
{
"introduced": "ead99b9b5081d473c61743cfed5e8290702317d2"
},
{
"fixed": "d4e775d5a84d662d426bc19a95d9b990a97d60e4"
},
{
"fixed": "32f4a0e1790a709f722d0f3b2341f139d003180a"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "2.1.3"
},
{
"fixed": "2.1.4"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "32f4a0e1790a709f722d0f3b2341f139d003180a"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "d4e775d5a84d662d426bc19a95d9b990a97d60e4"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v2.1.4"
}
]
}
}
],
"versions": [
"v2.1.3"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-62325.json"
}
}
],
"modified": "2026-10-28T02:30:23.176248708Z",
"provider": "osv",
"references": [
"https://github.com/goshs-labs/goshs/releases/tag/v2.1.4",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62325.json",
"https://github.com/goshs-labs/goshs/security/advisories/GHSA-rjrw-mjq6-hpmm",
"https://nvd.nist.gov/vuln/detail/CVE-2026-62325",
"https://github.com/goshs-labs/goshs/commit/32f4a0e1790a709f722d0f3b2341f139d003180a"
],
"provider_metadata": {
"cwe_ids": [
"CWE-306"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62325.json"
}
},
"related_cves": [
{
"value": "CVE-2026-62325",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 489729,
"published_at": "2026-07-28T21:52:05.595+00:00"
}