CVE-2025-51661
HighCVSS 7.5Exploitation Probability (EPSS)
Low risk47th percentile - higher than 47% of all known CVEs
Summary
A path traversal vulnerability in FileCodeBox v2.2 and earlier allows arbitrary file writes when the application is configured to use local filesystem storage. The SystemFileStorage.save_file method in core/storage.py uses user-supplied filenames without validation to construct save_path, allowing remote attackers to write files outside the intended directory via crafted POST requests to the /share/file/ upload endpoint, which requires no authorization.
Risk Assessment
An unauthenticated attacker can write arbitrary files on the system, potentially leading to code execution, configuration overwrite, or service disruption.
Recommendation
Update FileCodeBox to a version with filename validation fixes; until then, restrict access to the /share/file/ endpoint.
Other vulnerabilities in FileCodeBox
See all- CVE-2026-82543High
A vulnerability was detected in vastsa FileCodeBox up to 2.3. The vulnerability affects the function update_file_usage in the file apps/base/views.py of the component Pickup Limit Handler. Performing a manipulation results in race condition. The attack can be initiated remotely. The exploit is public. Upgrading to version 2.5.0 resolves the issue.
- CVE-2026-64619High
FileCodeBox before version 2.4 has a rate-limit bypass vulnerability in the IPRateLimit class. An unauthenticated attacker can supply controlled X-Real-IP and X-Forwarded-For headers without trusted reverse proxy verification, allowing enumeration of share codes and retrieval of other users' files.
- CVE-2025-51663High
A vulnerability in the IPRateLimit implementation of FileCodeBox up to 2.2 allows remote attackers to bypass IP-based rate limit protection and failed attempt restrictions by faking X-Real-IP and X-Forwarded-For HTTP headers. This can enable attackers to perform DoS attacks or brute force share codes.
- CVE-2025-51662Medium
A stored cross-site scripting (XSS) vulnerability is found in the text sharing feature of FileCodeBox version 2.2 and earlier. Insufficient input validation allows attackers to inject arbitrary JavaScript code into shared text "codeboxes". The XSS payload is automatically executed in the browsers of users who access the infected codebox.
Original NVD description (English source)
A path Traversal vulnerability found in FileCodeBox v2.2 and earlier allows arbitrary file writes when application is configured to use local filesystem storage. SystemFileStorage.save_file method in core/storage.py uses filenames from user input without validation to construct save_path and save files. This allows remote attackers to perform arbitrary file writes outside the intended directory by sending crafted POST requests with malicious traversal sequences to /share/file/ upload endpoint, which does not require any authorization.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

