Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2026-40188

Summary
Assigner-GitHub_M
Assigner Org ID-a0819718-46f1-4df5-94e2-005712e83aaa
Published At-10 Apr, 2026 | 19:43
Updated At-13 Apr, 2026 | 15:35
Rejected At-
Credits

goshs is Missing Write Protection for Parametric Data Values

goshs is a SimpleHTTPServer written in Go. From 1.0.7 to before 2.0.0-beta.4, the SFTP command rename sanitizes only the source path and not the destination, so it is possible to write outside of the root directory of the SFTP. This vulnerability is fixed in 2.0.0-beta.4.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:GitHub_M
Assigner Org ID:a0819718-46f1-4df5-94e2-005712e83aaa
Published At:10 Apr, 2026 | 19:43
Updated At:13 Apr, 2026 | 15:35
Rejected At:
▼CVE Numbering Authority (CNA)
goshs is Missing Write Protection for Parametric Data Values

goshs is a SimpleHTTPServer written in Go. From 1.0.7 to before 2.0.0-beta.4, the SFTP command rename sanitizes only the source path and not the destination, so it is possible to write outside of the root directory of the SFTP. This vulnerability is fixed in 2.0.0-beta.4.

Affected Products
Vendor
patrickhener
Product
goshs
Versions
Affected
  • >= 1.0.7, < 2.0.0-beta.4
Problem Types
TypeCWE IDDescription
CWECWE-1314CWE-1314: Missing Write Protection for Parametric Data Values
Type: CWE
CWE ID: CWE-1314
Description: CWE-1314: Missing Write Protection for Parametric Data Values
Metrics
VersionBase scoreBase severityVector
3.17.7HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
Version: 3.1
Base score: 7.7
Base severity: HIGH
Vector:
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx
x_refsource_CONFIRM
https://github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744
x_refsource_MISC
https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4
x_refsource_MISC
Hyperlink: https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx
Resource:
x_refsource_CONFIRM
Hyperlink: https://github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744
Resource:
x_refsource_MISC
Hyperlink: https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4
Resource:
x_refsource_MISC
▼Authorized Data Publishers (ADP)
CISA ADP Vulnrichment
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx
exploit
Hyperlink: https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx
Resource:
exploit
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:security-advisories@github.com
Published At:10 Apr, 2026 | 20:16
Updated At:14 Apr, 2026 | 20:15

goshs is a SimpleHTTPServer written in Go. From 1.0.7 to before 2.0.0-beta.4, the SFTP command rename sanitizes only the source path and not the destination, so it is possible to write outside of the root directory of the SFTP. This vulnerability is fixed in 2.0.0-beta.4.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Secondary3.17.7HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
Type: Secondary
Version: 3.1
Base score: 7.7
Base severity: HIGH
Vector:
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
CPE Matches

goshs
goshs
>>goshs>>Versions from 1.0.7(inclusive) to 2.0.0(exclusive)
cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*
goshs
goshs
>>goshs>>2.0.0
cpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:*
goshs
goshs
>>goshs>>2.0.0
cpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:*
goshs
goshs
>>goshs>>2.0.0
cpe:2.3:a:goshs:goshs:2.0.0:beta3:*:*:*:go:*:*
Weaknesses
CWE IDTypeSource
CWE-1314Secondarysecurity-advisories@github.com
CWE ID: CWE-1314
Type: Secondary
Source: security-advisories@github.com
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
https://github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744security-advisories@github.com
Patch
https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4security-advisories@github.com
Product
Release Notes
https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xxsecurity-advisories@github.com
Exploit
Vendor Advisory
https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx134c704f-9b21-4f2e-91b3-4a467353bcc0
Exploit
Vendor Advisory
Hyperlink: https://github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744
Source: security-advisories@github.com
Resource:
Patch
Hyperlink: https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4
Source: security-advisories@github.com
Resource:
Product
Release Notes
Hyperlink: https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx
Source: security-advisories@github.com
Resource:
Exploit
Vendor Advisory
Hyperlink: https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx
Source: 134c704f-9b21-4f2e-91b3-4a467353bcc0
Resource:
Exploit
Vendor Advisory

Change History

0
Information is not available yet

Similar CVEs

0Records found

Details not found