Skip to main content
VulnerabilityPublished

CVE-2026-40876: patrickhener goshs · Path Traversal

Affects patrickhener goshsSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.7 High : upgrade to 2.0.0-beta.6 soon.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 38% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.0.0-beta.6, 2.0.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade goshs to 2.0.0-beta.6; github.com/patrickhener/goshs to 2.0.0.

Affected software

ProductAffectedFixed in
patrickhenergoshsAffected
  • <2.0.0-beta.6
Fixed in
  • 2.0.0-beta.6
Gogithub.com/patrickhener/goshspkg:golang/github.com/patrickhener/goshsOther threatsAffected
  • <2.0.0
Fixed in
  • 2.0.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

This vulnerability is fixed in goshs version 2.0.0-beta.6. Users should upgrade to this version or later to remediate the issue. Patch status is not explicitly confirmed in vendor advisories, so users should verify with the official goshs project for the latest remediation guidance.

Description

CVE-2026-40876 is a path traversal vulnerability in patrickhener goshs, a SimpleHTTPServer written in Go. Versions prior to 2.0.0-beta.6 improperly validate SFTP paths using a prefix-based check, allowing authenticated SFTP users to escape the intended root jail. This enables reading and writing files outside the configured SFTP root directory, potentially exposing or modifying unrelated server files. The issue arises because the path validation does not correctly enforce directory boundaries, allowing sibling directories with similar prefixes to bypass restrictions. This vulnerability has a high severity score of 8.7 and is fixed in version 2.0.

References

Community reviews

Loading reviews…