Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2026-40876

27
FAUCET Score

OVERVIEW CVE-2026-40876 is a path traversal vulnerability affecting goshs, a SimpleHTTPServer implementation written in Go, prior to version 2.0.0-beta.6. An authenticated SFTP user can escape the configured SFTP root directory and access arbitrary filesystem paths on the server due to flawed prefix-based path validation in the sanitizePath function. SEVERITY The vulnerability exploits a fundamental validation flaw where the application uses simple string prefix comparison rather than proper directory boundary checking. This allows attackers to access sibling directories with matching prefixes; for example, configuring root as /tmp/goshsroot does not prevent access to /tmp/goshsroot_evil. The attack requires prior authentication and provides read and write access to unintended files, potentially exposing sensitive data or enabling unauthorized modifications to server files. The FAUCET Risk Score of 42.0/100 indicates moderate severity. EXPLOITATION STATUS This vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities catalog, and there is no evidence of active exploitation in the wild. The EPSS score of 0.0004 suggests minimal probability of exploitation in practice. The vulnerability appears to have received limited community attention, though the fix was incorporated into the official 2.0.0-beta.6 release. Organizations running goshs prior to this version should apply the patch to remediate the jail escape condition.

Impacted Technologies

VendorProductVersion(s)CPE
< 2.0.0CPE matchmatch criteria
cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*
2.0.0CPE matchmatch criteria
cpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:*
2.0.0CPE matchmatch criteria
cpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:*
2.0.0CPE matchmatch criteria
cpe:2.3:a:goshs:goshs:2.0.0:beta3:*:*:*:go:*:*
2.0.0CPE matchmatch criteria
cpe:2.3:a:goshs:goshs:2.0.0:beta4:*:*:*:go:*:*

CVSS Data

CVSS version used by this source: 4.0

8.7HIGH

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
VS Confidentiality
HIGH
VS Integrity
HIGH
VS Availability
HIGH
SS Confidentiality
NONE
SS Integrity
NONE
SS Availability
NONE
Exploit Maturity
NOT_DEFINED
CvssVersion
4.0

Exploit Intelligence

EPSS Score
0.44%
Probability of exploitation in next 30 days
EPSS Percentile
35.9%
Percentile rank of EPSS score among Peer Group
As of 2026-07-27
Model: v2026.06.15
This CVE's current EPSS score of 0.0044 is in the 24th percentile among its peer group of 17,844 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.3 Bluesky, 0.1 Mastodon, and 0.2 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (2)

gopatch availablevia ghsa
Product: github.com/patrickhener/goshs/v2Fixed in: 2.0.0
github_advisoryvendor investigatingvia nvd_reference
View patch

Vendor Advisories (1)

goGHSA-5h6h-7rc9-3824high

SFTP root escape via prefix-based path validation in goshs

Apr 14, 2026

References

github.com / patrickhener/goshs/security/advisories/GHSA-5h6h-7rc9-3824
ExploitVendor Advisory