External risk intelligence

Goshs Authorization Bypass Allows Unauthenticated File Operations

CVE advisorySeverity: CRITICAL (CVSS 9.3)

CVE-2026-40189

goshs is a utility designed specifically to expose file system directories over HTTP. Because its primary function is to serve files and receive uploads via web requests, it is commonly deployed in network-reachable configurations to facilitate file sharing or transfer, making it a likely candidate for being an internet-facing or edge-reachable service.

Halo Surface Signal: 4 out of 5 — likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This advisory concerns a critical vulnerability in the goshs SimpleHTTPServer, a Go-based file serving tool. The flaw allows unauthenticated attackers to bypass access controls, upload files, create directories, and even delete protected files or authorization configurations within specific directories. This could potentially lead to unauthorized access and modification of sensitive information.

  • Attackers bypass folder security.
  • Critical authorization bypass impacts all data.
  • Confirm relevance and assess exposure.

Attack Path

How an attacker could exploit the issue

An unauthenticated attacker can access a goshs server on the network and manipulate files within directories that are supposed to be protected by access controls. By uploading, creating, or deleting files, including the access control configuration itself, the attacker can bypass authentication and gain unauthorized access to sensitive information and system functions. This bypass can lead to a complete compromise of the server's confidentiality, integrity, and availability.

  • No authentication required for access.
  • Attacker deletes folder authentication files.
  • Risk to confidentiality, integrity, availability.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability allows an unauthenticated attacker to bypass access controls when supported. When the .goshs ACL/basic-auth mechanism is in place, an attacker could potentially upload, modify, or delete files and directories within protected folders, and even remove the protection entirely by deleting the .goshs file. This could lead to unauthorized access to sensitive information, modification of data, or disruption of service.

  • Protected files and directories.
  • Bypassing .goshs ACLs and deleting auth policy.
  • Unauthorized data access and modification.

Operational Fix

Recommended remediation, mitigation, and detection steps

Application owners or platform teams are likely responsible for managing this Go-based SimpleHTTPServer. The initial step involves locating all instances of the affected technology, determining their reachability and criticality, identifying the accountable owner, and then prioritizing remediation based on the assessed risk.

  • Identify accountable application/platform owners.
  • Verify reachability and business criticality.
  • Plan remediation or implement temporary controls.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is goshs and how is it typically used?

goshs is a lightweight HTTP server written in Go designed for quick file sharing and directory serving. It is frequently used by developers or system administrators to facilitate rapid file transfers or to make local directory structures accessible over a network.

What does CWE-862 mean in the context of CVE-2026-40189?

CWE-862 represents Missing Authorization. In this vulnerability, the software fails to verify if a user has permission to perform state-changing actions. While the tool correctly restricts who can view files, it forgets to check those same credentials before allowing a user to upload, create, or delete files.

Do I need to be authenticated to trigger this vulnerability?

No. The vulnerability specifically allows unauthenticated attackers to perform restricted operations. Importantly, the bug is not triggered by standard file viewing; it is triggered by sending unauthorized requests like PUT, POST, or specific deletion commands that bypass the intended security policy.

Why does Halo Surface Signal categorize this as likely exposed?

Halo Surface Signal highlights this as a likely concern because goshs is built for the specific purpose of sharing files over a network. Since its utility depends on being reachable by other systems, it is often placed in configurations that are accessible from the network edge or the internet.

How should I respond if I am running goshs?

Start by identifying all instances of goshs in your environment to determine which are accessible over the network. If you are using a version prior to 2.0.0-beta.4, you must update the software to this version or newer, as it contains the necessary security fixes to enforce authorization on all routes.

References