CVE Catalog

CVE-2025-51661

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.57%

47th 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
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