{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-40645 exists.","fix":"No fix has been published for CVE-2024-40645 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-40645 is a high-severity vulnerability in fogproject, published on 31 Jul 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-40645 and fix it if it is affected.\n\nWhat it is: CVE-2024-40645 is a high-severity vulnerability in fogproject, published on 31 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-40645 exists.\n\nAffected product: fogproject. 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-40645/ (Markdown: https://insights.sbomify.com/CVE-2024-40645/index.md)","id":"CVE-2024-40645","markdown":"https://insights.sbomify.com/CVE-2024-40645/index.md","name":"CVE-2024-40645","record":{"aliases":["GHSA-59mq-q8g5-2f4f"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"FOG imaging suite","requires_auth":"low_privilege","summary":"Authenticated users can upload malicious files to the FOG server to execute arbitrary code due to insufficient file type validation.","user_interaction":"not_required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"fogproject","vendor":"fogproject"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"description":"FOG is a cloning/imaging/rescue suite/inventory management system. An improperly restricted file upload feature allows authenticated users to execute arbitrary code on the fogproject server. The Rebranding feature has a check on the client banner image requiring it to be 650 pixels wide and 120 pixels high. Apart from that, there are no checks on things like file extensions. This can be abused by appending a PHP webshell to the end of the image and changing the extension to anything the PHP web server will parse. This vulnerability is fixed in 1.5.10.41.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"FOG Authenticated File Upload RCE","id":"CVE-2024-40645","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"file_upload","year":"2024"},"n_packages":0,"n_references":3,"next":{"headline":"Vertex Vulnerable to Path Traversal","id":"CVE-2024-40646"},"packages":[],"prev":{"headline":"gitoxide's gix-path can use a fake program files location","id":"CVE-2024-40644"},"products":["fogproject"],"published":"2024-07-31","related":[{"cvss_score":9.9,"headline":"FOG's authentication bypass leads to full SQL DB dump","id":"CVE-2025-58443","kev_date_added":null,"published":"2025-09-06"},{"cvss_score":9.8,"headline":"FOG has a command injection in /fog/management/export.php?filename=","id":"CVE-2024-39914","kev_date_added":null,"published":"2024-07-12"},{"cvss_score":9.3,"headline":"FOG leaks sensitive information (AD domain, username and password)","id":"CVE-2024-42348","kev_date_added":null,"published":"2024-08-02"},{"cvss_score":8.8,"headline":"File upload in n/a","id":"CVE-2021-32243","kev_date_added":null,"published":"2021-06-16"},{"cvss_score":8.6,"headline":"FOG SSRF via unauthenticated endpoint(s)","id":"CVE-2023-46236","kev_date_added":null,"published":"2023-10-31"},{"cvss_score":8.2,"headline":"Missing authorization in fogproject","id":"CVE-2026-47688","kev_date_added":null,"published":"2026-07-21"}],"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":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-07-31","vendors":["FOGProject"]},"summary":"Authenticated users can upload malicious files to the FOG server to execute arbitrary code due to insufficient file type validation.","url":"https://insights.sbomify.com/CVE-2024-40645/"}