Skip to main content

Goshs EUVDEUVD-2026-21589

| CVE-2026-40188 HIGH
Missing Write Protection for Parametric Data Values (CWE-1314)
2026-04-10 GitHub_M GHSA-2943-crp8-38xx
7.7
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to goshs SFTP server
  2. Exploit
    Craft rename command with unsanitized destination path
  3. Execution
    Traverse directory structure using path traversal
  4. Impact
    Write files outside root directory

Vulnerability Assessment

Weakness
CWE
Exploitation Conditions

Requires authenticated SFTP access to goshs versions 1.0.7 through 2.0.0-beta.3. Attacker with valid SFTP credentials can exploit the rename command's unsanitized destination path parameter to write files outside the configured root directory. No user interaction needed.

Impact

Authenticated path traversal in SFTP rename allows writing arbitrary files outside configured root, with high integrity impact across systems (CVSS 7.7, EPSS data unavailable). Affects versions 1.0.7-2.0.0-beta.3. Requires valid SFTP credentials but no user interaction. Critical for multi-tenant or restricted-access deployments.

Exploit ScenarioDerived

Authenticated attacker connects to SFTP, calls rename with sanitized source and malicious destination (e.g., ../../../etc/passwd), bypassing path validation on destination only. Single command writes to host filesystem outside intended sandbox. No POC code identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 10, 2026

Path traversal in patrickhener goshs SFTP rename operation enables authenticated attackers to write files outside the configured root directory. Versions 1.0.7 through 2.0.0-beta.3 fail to sanitize destination paths in SFTP rename commands, allowing low-privileged users to overwrite arbitrary filesystem locations with network access. High integrity impact with scope change indicates potential host compromise. No public exploit identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade to goshs version 2.0.0-beta.4 or later, which implements destination path sanitization in SFTP rename operations. The fix is implemented in commit 141c188ce270ffbec087844a50e5e695b7da7744. If immediate upgrade is infeasible, disable SFTP functionality or restrict SFTP access to fully trusted users until patching. Verify no unauthorized files exist outside the intended root directory post-remediation. Full advisory available at https://github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx and release notes at https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4. EPSS scoring indicates low observed exploitation activity.

Affected VersionsENISA

goshs 1.0.7, < 2.0.0-beta.4

Affected Packages

go github.com/patrickhener/goshs no fix
euvd goshs_1_0_7 fix: 2.0.0-beta.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CWE-1314 path traversal via incomplete input sanitization. The SFTP rename command implementation applies path normalization exclusively to source arguments while passing destination paths unchecked, enabling directory traversal sequences (../) to escape the chroot-style containment. CVSS scope change reflects potential impact beyond the vulnerable component's security boundary.

Know when Goshs gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.7 HIGH
AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
SUSE HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

3
Analysis Updated
Apr 16, 2026 - 05:57 EUVD-patch-fix
executive summary
Patch available
Apr 16, 2026 - 05:29 EUVD
2.0.0-beta.4
CVE Published
Apr 10, 2026 - 19:43 nvd
HIGH 7.7

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-40188 is a path traversal vulnerability in patrickhener goshs SFTP service that allows authenticated users to write files outside intended directories, potentially enabling unauthorized system modification or compromise. Organizations using affected versions (1.0.7 through 2.0.0-beta.3) should prioritize patching to prevent privilege escalation and data integrity violations through SFTP rename operations.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim mitigations if patch deployment is delayed: (1) Restrict SFTP service network access via firewall rules to trusted administrative users only; (2) Implement file integrity monitoring on critical system directories; (3) Disable SFTP rename functionality at the application level if feasible; (4) Monitor and alert on SFTP operations targeting paths outside configured root directories.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Threat Intel
1
1 source
Social Media
3
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: High
Product Status
openSUSE Tumbleweed Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy