{"answers":{"affected":"4 open source packages ship an affected version, including github.com/drakkan/sftpgo/v2 and github.com/drakkan/sftpgo. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-30915 in the wild and no public exploit code.","fix":"Upgrade github.com/drakkan/sftpgo/v2 to 2.7.1 or later.","what":"CVE-2026-30915 is a medium-severity path traversal vulnerability in drakkan sftpgo, published on 13 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-30915 and fix it if it is affected.\n\nWhat it is: CVE-2026-30915 is a medium-severity path traversal vulnerability in drakkan sftpgo, published on 13 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-30915 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/drakkan/sftpgo/v2 (Go): affected from 2.3.0; fixed in 2.7.1\n- github.com/drakkan/sftpgo/v2 (Go): affected from 2.3.0; fixed in 2.7.1\n- github.com/drakkan/sftpgo/v2 (Go): affected from 2.3.0; fixed in 2.7.1\n- github.com/drakkan/sftpgo (Go): affected all versions; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-30915/ (Markdown: https://insights.sbomify.com/CVE-2026-30915/index.md)","id":"CVE-2026-30915","markdown":"https://insights.sbomify.com/CVE-2026-30915/index.md","name":"CVE-2026-30915","record":{"aliases":["GHSA-m83q-5wr4-4gfp","GO-2026-4697"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"SFTP file transfer server","requires_auth":"low_privilege","summary":"Attackers can escape intended directories via crafted usernames in SFTPGo when dynamic group paths are configured, allowing unauthorized file access.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"sftpgo","vendor":"sftpgo_project"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"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","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"SFTPGo improperly sanitizes placeholders in group home directories/key prefixes","id":"CVE-2026-30915","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":4,"n_references":1,"next":{"headline":"Withdrawn Advisory: Shescape has possible misidentification of shell due to link chains","id":"CVE-2026-30916"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/drakkan/sftpgo","purl":"pkg:golang/github.com/drakkan/sftpgo","source":"GO-2026-4697"},{"ecosystem":"Go","fixed":["2.7.1"],"introduced":["2.3.0"],"last_affected":[],"package":"github.com/drakkan/sftpgo/v2","purl":null,"source":"GHSA-m83q-5wr4-4gfp"},{"ecosystem":"Go","fixed":["2.7.1"],"introduced":["2.3.0"],"last_affected":[],"package":"github.com/drakkan/sftpgo/v2","purl":"pkg:golang/github.com/drakkan/sftpgo/v2","source":"GHSA-m83q-5wr4-4gfp"},{"ecosystem":"Go","fixed":["2.7.1"],"introduced":["2.3.0"],"last_affected":[],"package":"github.com/drakkan/sftpgo/v2","purl":"pkg:golang/github.com/drakkan/sftpgo/v2","source":"GO-2026-4697"}],"prev":{"headline":"SFTPGo has a Path Traversal and Permission Bypass via Path Normalization Discrepancy","id":"CVE-2026-30914"},"products":["sftpgo"],"published":"2026-03-13","related":[{"cvss_score":8.3,"headline":"Recovery codes abuse in SFTPGo","id":"CVE-2022-36071","kev_date_added":null,"published":"2022-09-02"},{"cvss_score":6.1,"headline":"XSS Vulnerabilities in WebClient","id":"CVE-2022-39220","kev_date_added":null,"published":"2022-09-20"},{"cvss_score":5.3,"headline":"SFTPGo has a Path Traversal and Permission Bypass via Path Normalization Discrepancy","id":"CVE-2026-30914","kev_date_added":null,"published":"2026-03-13"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-13","vendors":["drakkan"]},"summary":"Attackers can escape intended directories via crafted usernames in SFTPGo when dynamic group paths are configured, allowing unauthorized file access.","url":"https://insights.sbomify.com/CVE-2026-30915/"}