CVE-2024-40645 FOG Authenticated File Upload RCE

High 8.8 Published Updated

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.

Sources

Also known as GHSA-59mq-q8g5-2f4f.

Is CVE-2024-40645 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free