{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "9ae473fcdc401b1d31cfef9315f6f7ba509deb32"
            },
            {
              "fixed": "131234866cbfd2a05d0b35545eca6af032b69d88"
            }
          ],
          "repo": "https://github.com/drakkan/sftpgo",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-m83q-5wr4-4gfp"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30915.json"
  },
  "details": "SFTPGo is an open source, event-driven file transfer solution. SFTPGo versions before v2.7.1 contain an input validation issue in the handling of dynamic group paths, for example, home directories or key prefixes. When a group is configured with a dynamic home directory or key prefix using placeholders like %username%, the value replacing the placeholder is not strictly sanitized against relative path components. Consequently, if a user is created with a specially crafted username the resulting path may resolve to a parent directory instead of the intended sub-directory. This issue is fixed in version v2.7.1",
  "id": "CVE-2026-30915",
  "modified": "2026-04-01T23:08:28.241344073Z",
  "published": "2026-03-13T19:04:36.856Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30915.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/drakkan/sftpgo/security/advisories/GHSA-m83q-5wr4-4gfp"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-30915"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "SFTPGo improperly sanitizes placeholders in group home directories/key prefixes"
}