{"answers":{"affected":"4 open source packages ship an affected version, including github.com/drakkan/sftpgo/v2 and github.com/drakkan/sftpgo.","exploited":"There is no known exploitation of CVE-2024-37897 in the wild and no public exploit code.","fix":"Upgrade github.com/drakkan/sftpgo/v2 to 2.6.1 or later.","what":"CVE-2024-37897 is a medium-severity authentication bypass vulnerability in drakkan sftpgo, published on 20 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-37897 and fix it if it is affected.\n\nWhat it is: CVE-2024-37897 is a medium-severity authentication bypass vulnerability in drakkan sftpgo, published on 20 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-37897 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/drakkan/sftpgo/v2 (Go): affected from 2.2.0; fixed in 2.6.1\n- github.com/drakkan/sftpgo/v2 (Go): affected from 2.2.0; fixed in 2.6.1\n- github.com/drakkan/sftpgo/v2 (Go): affected from 2.2.0; fixed in 2.6.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-2024-37897/ (Markdown: https://insights.sbomify.com/CVE-2024-37897/index.md)","id":"CVE-2024-37897","markdown":"https://insights.sbomify.com/CVE-2024-37897/index.md","name":"CVE-2024-37897","record":{"aliases":["GHSA-hw5f-6wvv-xcrh","GO-2024-2940"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["account_takeover"],"network_reachable":"yes","non_default_config":true,"product_category":"SFTPGo server","requires_auth":"low_privilege","summary":"Attackers with restricted access can reset passwords and log in if the password reset feature is enabled in SFTPGo.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"description":"SFTPGo is a full-featured and highly configurable SFTP, HTTP/S, FTP/S and WebDAV server - S3, Google Cloud Storage, Azure Blob. SFTPGo WebAdmin and WebClient support password reset. This feature is disabled in the default configuration.\nIn SFTPGo versions prior to v2.6.1, if the feature is enabled, even users with access restrictions (e.g. expired) can reset their password and log in. Users are advised to upgrade to version 2.6.1. Users unable to upgrade may keep the password reset feature disabled or set a blank email address for users and admins with access restrictions so they cannot receive the email with the reset code and exploit the vulnerability.","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":"Insufficient access control for password reset in sftpgo","id":"CVE-2024-37897","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"auth_bypass","year":"2024"},"n_packages":4,"n_references":2,"next":{"headline":"XWiki Platform vulnerable to document deletion and overwrite from edit","id":"CVE-2024-37898"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/drakkan/sftpgo","purl":"pkg:golang/github.com/drakkan/sftpgo","source":"GO-2024-2940"},{"ecosystem":"Go","fixed":["2.6.1"],"introduced":["2.2.0"],"last_affected":[],"package":"github.com/drakkan/sftpgo/v2","purl":null,"source":"GHSA-hw5f-6wvv-xcrh"},{"ecosystem":"Go","fixed":["2.6.1"],"introduced":["2.2.0"],"last_affected":[],"package":"github.com/drakkan/sftpgo/v2","purl":"pkg:golang/github.com/drakkan/sftpgo/v2","source":"GHSA-hw5f-6wvv-xcrh"},{"ecosystem":"Go","fixed":["2.6.1"],"introduced":["2.2.0"],"last_affected":[],"package":"github.com/drakkan/sftpgo/v2","purl":"pkg:golang/github.com/drakkan/sftpgo/v2","source":"GO-2024-2940"}],"prev":{"headline":"SQL injection vulnerability in Gin-vue-admin","id":"CVE-2024-37896"},"products":["sftpgo"],"published":"2024-06-20","related":[],"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":"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":"2024-08-02","vendors":["drakkan"]},"summary":"Attackers with restricted access can reset passwords and log in if the password reset feature is enabled in SFTPGo.","url":"https://insights.sbomify.com/CVE-2024-37897/"}