Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-51661
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 15:05 UTC · Revision 1
Source evidence
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.
osv:CVE-2025-51661
Complete source record
{
"id": "39d286f3018860a4d8b8287cbd7112bdcfba1b2f31fa0e4fb9075fb219c18fb5",
"url": "https://osv.dev/vulnerability/CVE-2025-51661",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2025-51661",
"summary": "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.",
"evidence": "osv:CVE-2025-51661",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2025-51661",
"aliases": [
"CVE-2025-51661"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/vastsa/filecodebox",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "17331112b43c1d97256e2d8e7e16d76e3b0a3b60"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.2"
}
],
"source": "DESCRIPTION"
},
{
"cpe": "cpe:2.3:a:lanol:filecodebox:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"2.2",
"V2.1",
"V2.0",
"V1.7Beta",
"V1.6",
"V1.5.9.2",
"V1.5.9.1",
"V1.5.9",
"V1.5.6",
"V1.5.7",
"V1.5.4",
"V1.5.3",
"V1.5.2",
"V1.5.1",
"V1.4.5",
"V1.4",
"V1.4.4",
"V1.4.3",
"V1.4.1",
"V1.2",
"V1.1",
"Main"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-51661.json"
}
}
],
"modified": "2026-10-28T02:30:29.976856408Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/51xxx/CVE-2025-51661.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-51661",
"https://github.com/vastsa/FileCodeBox/issues/349",
"https://github.com/vastsa/FileCodeBox"
],
"provider_metadata": {
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/51xxx/CVE-2025-51661.json"
}
},
"related_cves": [
{
"value": "CVE-2025-51661",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496642,
"published_at": "2025-11-19T00:00:00+00:00"
}