{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "2.2"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "17331112b43c1d97256e2d8e7e16d76e3b0a3b60"
            }
          ],
          "repo": "https://github.com/vastsa/filecodebox",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2025-51661",
  "modified": "2026-03-10T21:49:32.889623170Z",
  "published": "2025-11-19T20:15:52.867Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://github.com/vastsa/FileCodeBox/issues/349"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/vastsa/FileCodeBox"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ]
}