Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-40189— goshs has a file-based ACL authorization bypass in goshs state-changing routes

Quick assessment

Affected
patrickhener goshs
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

goshs是Patrick Hener个人开发者的一个用Go编写的简单HTTP Server。 goshs 2.0.0-beta.4之前版本存在安全漏洞,该漏洞源于未对状态更改路由强制执行相同的授权检查,可能导致未经身份验证的攻击者在受.goshs保护的目录内上传、创建目录、删除文件,并通过删除.goshs文件本身移除文件夹的认证策略,从而绕过授权。

AI Predicted 9.8 Difficulty: Easy EPSS 0.66% · P50
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-40189

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
goshs has a file-based ACL authorization bypass in goshs state-changing routes
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
授权机制缺失
Source: CVE Program / CVE List V5
Vulnerability Title
goshs 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
goshs是Patrick Hener个人开发者的一个用Go编写的简单HTTP Server。 goshs 2.0.0-beta.4之前版本存在安全漏洞,该漏洞源于未对状态更改路由强制执行相同的授权检查,可能导致未经身份验证的攻击者在受.goshs保护的目录内上传、创建目录、删除文件,并通过删除.goshs文件本身移除文件夹的认证策略,从而绕过授权。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
patrickhener goshs < 2.0.0-beta.4 -

II. Public POCs for CVE-2026-40189

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-40189

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-40189 (1)

Vendor Advisories for CVE-2026-40189 (1)

Vendor Pages for CVE-2026-40189 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-40189

No comments yet


Leave a comment