{"answers":{"affected":"It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2024-4040 in the wild since at least 24 Apr 2024.","fix":"No fix has been published for CVE-2024-4040 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 1 May 2024.","what":"CVE-2024-4040 is a critical code injection vulnerability in CrushFTP, published on 22 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-4040 and fix it if it is affected.\n\nWhat it is: CVE-2024-4040 is a critical code injection vulnerability in CrushFTP, published on 22 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2024-4040 in the wild since at least 24 Apr 2024.\n\nAffected product: CrushFTP. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-4040/ (Markdown: https://insights.sbomify.com/CVE-2024-4040/index.md)","id":"CVE-2024-4040","markdown":"https://insights.sbomify.com/CVE-2024-4040/index.md","name":"CVE-2024-4040","record":{"aliases":["GHSA-46vf-c8gj-2pgq"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","privilege_escalation","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"FTP server software","requires_auth":"none","summary":"Unauthenticated attackers can exploit server-side template injection to read files, bypass authentication, and execute arbitrary code on CrushFTP servers.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"directcyber","cpe":[{"product":"crushftp","vendor":"crushftp"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"description":"A server side template injection vulnerability in CrushFTP in all versions before 10.7.1 and 11.1.0 on all platforms allows unauthenticated remote attackers to read files from the filesystem outside of the VFS Sandbox, bypass authentication to gain administrative access, and perform remote code execution on the server.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2024-04-23","github_poc":19,"max_poc_stars":66,"metasploit":1,"nuclei":1,"refs":[{"date":"2024-04-25T19:51:38Z","kind":"github_poc","ref":"https://github.com/Stuub/CVE-2024-4040-SSTI-LFI-PoC","stars":66,"title":"CVE-2024-4040 CrushFTP SSTI LFI \u0026 Auth Bypass | Full Server Takeover | Wordlist Support"},{"date":"2024-04-23T09:31:29Z","kind":"github_poc","ref":"https://github.com/airbus-cert/CVE-2024-4040","stars":56,"title":"Scanner for CVE-2024-4040"},{"date":"2024-04-25T04:45:38Z","kind":"github_poc","ref":"https://github.com/rbih-boulanouar/CVE-2024-4040","stars":15,"title":null},{"date":"2024-09-30T16:18:07Z","kind":"github_poc","ref":"https://github.com/geniuszly/GenCrushSSTIExploit","stars":8,"title":"is a PoC for CVE-2024-4040 tool for exploiting the SSTI vulnerability in CrushFTP"},{"date":"2024-05-03T23:29:53Z","kind":"github_poc","ref":"https://github.com/gotr00t0day/CVE-2024-4040","stars":7,"title":"A server side template injection vulnerability in CrushFTP in all versions before 10.7.1 and 11.1.0 on all platforms allows unauthenticated remote attackers to read files from the filesystem outside of the VFS Sandbox, bypass authentication to gain administrative access, and perform remote code execution on the server."},{"date":"2024-04-30T13:27:34Z","kind":"github_poc","ref":"https://github.com/dhammerg/CVE-2024-4040","stars":5,"title":"Exploit CrushFTP CVE-2024-4040"},{"date":"2024-05-01T14:42:39Z","kind":"github_poc","ref":"https://github.com/jakabakos/CVE-2024-4040-CrushFTP-File-Read-vulnerability","stars":5,"title":null},{"date":"2024-07-05T05:46:56Z","kind":"github_poc","ref":"https://github.com/entroychang/CVE-2024-4040","stars":3,"title":"CVE-2024-4040 PoC"}],"tier":"exploited"},"has_fix":null,"headline":"CrushFTP VFS Sandbox Escape","id":"CVE-2024-4040","indexable":true,"kev":{"dateAdded":"2024-04-24","dueDate":"2024-05-01","knownRansomwareCampaignUse":"Unknown","product":"CrushFTP","requiredAction":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","vendorProject":"CrushFTP","vulnerabilityName":"CrushFTP VFS Sandbox Escape Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":0,"n_references":7,"next":{"headline":"Yoast SEO \u003c= 22.5 - Reflected Cross-Site Scripting","id":"CVE-2024-4041"},"packages":[],"prev":{"headline":"Orders Tracking for WooCommerce \u003c= 1.2.10 - Unauthenticated Arbitrary Shortcode Execution","id":"CVE-2024-4039"},"products":["CrushFTP"],"published":"2024-04-22","related":[{"cvss_score":9.8,"headline":"CrushFTP Authentication Bypass","id":"CVE-2025-31161","kev_date_added":"2025-04-07","published":"2025-04-03"},{"cvss_score":9,"headline":"CrushFTP Unprotected Alternate Channel","id":"CVE-2025-54309","kev_date_added":"2025-07-22","published":"2025-07-18"},{"cvss_score":9.8,"headline":"Auth bypass in n/a","id":"CVE-2024-53552","kev_date_added":null,"published":"2024-12-10"},{"cvss_score":9.8,"headline":"Deserialization in n/a","id":"CVE-2023-43177","kev_date_added":null,"published":"2023-11-17"},{"cvss_score":9.8,"headline":"Deserialization in n/a","id":"CVE-2017-14035","kev_date_added":null,"published":"2017-08-30"},{"cvss_score":6.1,"headline":"Cross-site scripting in n/a","id":"CVE-2025-63419","kev_date_added":null,"published":"2025-11-12"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["CrushFTP"]},"summary":"Unauthenticated attackers can exploit server-side template injection to read files, bypass authentication, and execute arbitrary code on CrushFTP servers.","url":"https://insights.sbomify.com/CVE-2024-4040/"}