CVE-2024-40645 FOG Authenticated File Upload RCE
Authenticated users can upload malicious files to the FOG server to execute arbitrary code due to insufficient file type validation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-40645?
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.
Official 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.
Weakness: CWE-434
Which versions are affected by CVE-2024-40645?
It affects 1 product.
Products include Fogproject Fogproject.
How do I fix CVE-2024-40645?
No fix has been published for CVE-2024-40645 yet. Limit exposure of the affected software until one is available.
Is CVE-2024-40645 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-40645 exists.
Other vulnerabilities in fogproject
- CVE-2025-58443 FOG's authentication bypass leads to full SQL DB dump
- CVE-2024-39914 FOG has a command injection in /fog/management/export.php?filename=
- CVE-2024-42348 FOG leaks sensitive information (AD domain, username and password)
- CVE-2021-32243 File upload in n/a
- CVE-2023-46236 FOG SSRF via unauthenticated endpoint(s)
Sources
Also known as GHSA-59mq-q8g5-2f4f.