SecurityContext

CVE-2026-40188: goshs - Path Traversal

  • Cve: CVE-2026-40188
  • Name: goshs - Path Traversal
  • Description: 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.
  • Impact: Attackers can write files outside the intended root directory, potentially leading to arbitrary file modification or system compromise.
  • Remediation: Upgrade to version 2.0.0-beta.4 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_write
  • Requirement type: logged_in
  • Requirements: Attacker needs SFTP access
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.7
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
  • Epss score: 0.00324
  • Epss percentile: 0.25878
  • Assignee: [email protected]
  • Published at: 2026-04-10T20:16:23Z
  • Age in days: 228
  • Modified at: 2026-10-26T21:10:00Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40188
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-1314Missing Write Protection for Parametric Data Values

Public exploits

UrlSourceAdded date
https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xxnvd2026-04-10

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744Patch
https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xxExploit, Vendor Advisory
https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4Product, Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
goshs:goshs= 2.0.0 beta3; = 2.0.0 beta1; = 2.0.0 beta2; >= 1.0.7, < 2.0.0nonvd/v1/products/goshs/goshs

Projects

RepositoryLink kindsIndexedUrl
patrickhener/goshscommit, package, releases, security_advisoryyes/v1/repositories/patrickhener/goshs
goshs-labs/goshsfixyes/v1/repositories/goshs-labs/goshs

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-04-10
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts