← Back to CVE Explorer

CVE-2025-51661

Full vulnerability record from the local CVENow database.

Description

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.

Severity
HIGH
CVSS score
7.5 (v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2025-11-19 20:15:52.867000
Last modified
2026-11-05 13:10:00.180000
View original CVE JSON
{
  "id": "CVE-2025-51661",
  "sourceIdentifier": "[email protected]",
  "published": "2025-11-19T20:15:52.867",
  "lastModified": "2026-11-05T13:10:00.180",
  "vulnStatus": "Analyzed",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    },
    {
      "lang": "es",
      "value": "Una vulnerabilidad de salto de ruta encontrada en FileCodeBox v2.2 y versiones anteriores permite escrituras de archivos arbitrarias cuando la aplicación está configurada para usar almacenamiento de sistema de archivos local. El método SystemFileStorage.save_file en core/storage.py utiliza nombres de archivo de la entrada del usuario sin validación para construir la ruta de guardado (save_path) y guardar archivos. Esto permite a atacantes remotos realizar escrituras de archivos arbitrarias fuera del directorio previsto enviando solicitudes POST manipuladas con secuencias de salto maliciosas al endpoint /share/file/ upload, que no requiere ninguna autorización."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "n/a",
          "product": "n/a",
          "versions": [
            {
              "version": "n/a",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "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:H/I:N/A:N",
          "baseScore": 7.5,
          "baseSeverity": "HIGH",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "NONE",
          "availabilityImpact": "NONE"
        },
        "exploitabilityScore": 3.9,
        "impactScore": 3.6
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2025-11-20T21:04:12.574802Z",
          "id": "CVE-2025-51661",
          "options": [
            {
              "exploitation": "poc"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-24"
        }
      ]
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:lanol:filecodebox:*:*:*:*:*:*:*:*",
              "versionEndIncluding": "2.2",
              "matchCriteriaId": "F79F1C73-2F99-49E2-8B8F-64900B8E51FB"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/vastsa/FileCodeBox",
      "source": "[email protected]",
      "tags": [
        "Product"
      ]
    },
    {
      "url": "https://github.com/vastsa/FileCodeBox/issues/349",
      "source": "[email protected]",
      "tags": [
        "Exploit",
        "Issue Tracking"
      ]
    }
  ]
}