Skip to main content

Goshs CVE-2026-40189

| EUVDEUVD-2026-21591 CRITICAL
Missing Authorization (CWE-862)
2026-04-10 GitHub_M GHSA-wvhv-qcqf-f3cx
9.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Send unauthenticated PUT request to upload file
  2. Exploit
    Send POST request to /upload endpoint
  3. Execution
    Delete .goshs ACL file via ?delete parameter
  4. Impact
    Access previously protected content without authentication

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires goshs versions prior to 2.0.0-beta.4 with .goshs ACL/basic-auth files configured in directories. Remote unauthenticated attacker can exploit via PUT, POST /upload, ?mkdir, or ?delete routes without credentials. No victim interaction needed.

Impact

Critical authorization bypass affecting unauthenticated remote attackers. CVSS 9.3 reflects high impact across confidentiality, integrity, and availability with network accessibility and no complexity barriers. Attackers can upload, delete, and modify files-including removing auth policies entirely-making this a complete access control failure. Organizations running goshs < 2.0.0-beta.4 face immediate data exposure and system compromise risk.

Exploit ScenarioDerived

Attacker sends PUT request to upload malicious file to protected directory (no auth required). Attacker then sends DELETE request with ?delete=.goshs to remove the auth policy file. Subsequently, attacker accesses previously protected content via GET without credentials. No public exploit code identified at time of analysis.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 10, 2026

Critical authorization bypass in goshs (Go-based HTTP server) versions prior to 2.0.0-beta.4 allows unauthenticated attackers to upload, delete, and modify files in directories protected by .goshs ACL configurations. Attackers can execute state-changing operations (PUT uploads, POST /upload, directory creation via ?mkdir, file deletion via ?delete) without credentials, bypassing documented per-folder authentication mechanisms. Deleting the .goshs file itself removes authentication policies, enabling unrestricted access to previously protected content. Affects confidentiality, integrity, and availability of protected resources. 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 authorization checks for all state-changing routes. Official release available at https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4. The fix is implemented via commit f212c4f4a126556bab008f79758e21a839ef2c0f. Organizations unable to upgrade immediately should disable write operations by configuring goshs in read-only mode or restrict network access to trusted clients only. Review server logs for unauthorized file modifications, unexpected uploads, or .goshs file deletions. Complete security advisory with exploitation scenarios: https://github.com/patrickhener/goshs/security/advisories/GHSA-wvhv-qcqf-f3cx

Affected VersionsENISA

goshs < 2.0.0-beta.4

Affected Packages

go github.com/patrickhener/goshs no fix
euvd goshs 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

Root cause is incomplete authorization enforcement (CWE-862). While goshs correctly validates credentials for directory listings and file reads against .goshs ACL policies, state-changing HTTP operations bypass these checks entirely. The vulnerability permits direct manipulation of the authorization policy file itself, creating a secondary attack path to remove all access controls.

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 9.3 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Apr 16, 2026 - 05:44 EUVD-patch-fix
executive summary
Patch available
Apr 16, 2026 - 05:29 EUVD
2.0.0-beta.4
CVE Published
Apr 10, 2026 - 19:44 nvd
CRITICAL 9.3

DescriptionCVE.org

goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.4, goshs enforces the documented per-folder .goshs ACL/basic-auth mechanism for directory listings and file reads, but it does not enforce the same authorization checks for state-changing routes. An unauthenticated attacker can upload files with PUT, upload files with multipart POST /upload, create directories with ?mkdir, and delete files with ?delete inside a .goshs-protected directory. By deleting the .goshs file itself, the attacker can remove the folder's auth policy and then access previously protected content without credentials. This results in a critical authorization bypass affecting confidentiality, integrity, and availability. This vulnerability is fixed in 2.0.0-beta.4.

Executive ViewAI

Why It Matters

goshs (Go HTTP Server) versions before 2.0.0-beta.4 contain a critical authorization bypass allowing unauthenticated attackers to upload, delete, and modify files in directories protected by access control lists, completely circumventing the application's authentication mechanisms. Organizations using goshs to serve or manage sensitive files face immediate risk of unauthorized data access, modification, and loss if the application is internet-facing or accessible to untrusted networks.

Business Impact: Severe
Compensating Controls

Vendor-released patch: goshs 2.0.0-beta.4. Until patched, restrict network access to goshs instances using firewall rules or network segmentation to trusted IPs only; disable .goshs ACL-dependent authentication workflows if possible pending upgrade; monitor for suspicious file operations via application or OS-level audit logging.

Threat Intelligence Overview

EPSS Score
0.1%
Top 71% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
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 CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
openSUSE Tumbleweed Fixed

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