Fortinet FortiOS-6K7K
Fortinet FortiOS and FortiProxy SSL-VPN Heap-Based Buffer Overflow Vulnerability
Edge device · Firewall / VPNknown edge product: Fortinet FortiOS-6K7K Fortinet FortiOS and FortiProxy SSL-VPN (high confidence)
A heap-based buffer overflow vulnerability [CWE-122] in FortiOS version 7.2.4 and below, version 7.0.11 and below, version 6.4.12 and below, version 6.0.16 and below and FortiProxy version 7.2.3 and below, version 7.0.9 and below, version 2.0.12 and below, version 1.2 all versions, version 1.1 all versions SSL-VPN may allow a remote attacker to execute arbitrary code or commands via specifically crafted requests.
Timeline
Days relative to CVE publicationFirst public PoC 2.8 days after publication; added to CISA KEV 0 h after publication. First PoC: rio128128/CVE-2023-27997-POC (created 16 Jun 2023, found by us: backfilled).
PoC repositories
Found on GitHub.8 PoCs · 8 pending · 1 informational · 2 not a PoC · 2 suspicious or fake
PoCs 8
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| rio128128/CVE-2023-27997-POC | 16 Jun 2023 +2.8 d | 27 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| BishopFox/CVE-2023-27997-check | 16 Jun 2023 +3.5 d | 134 | Scanner |
| imbas007/CVE-2023-27997-Check | 22 Jun 2023 +9.2 d | 1 | Scanner |
| puckiestyle/cve-2023-27997 | 23 Jun 2023 +10 d | 0 | PoC |
| lexfo/xortigate-cve-2023-27997 | 12 Oct 2023 +121 d | 63 | PoC |
| delsploit/CVE-2023-27997 | 12 Oct 2023 +121 d | 9 | PoC |
| node011/CVE-2023-27997-POC | 14 Nov 2024 +1.4 y | 0 | PoC |
| onurkerembozkurt/fgt-cve-2023-27997-exploit | 18 Apr 2025 +1.8 y | 0 | PoC |
Pending 8
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Aicks/FortiGate-CVE-2023-27997 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| Pik-sec/cve-2023-27997 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| awchjimmy/CVE-2023-27997-tutorial | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| gysf666/CVE-2023-27997-test | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| hheeyywweellccoommee/CVE-2023-27997-POC-FortiOS-SSL-VPN-buffer-overflow-vulnerability-ssijz | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| hheeyywweellccoommee/CVE-2023-27997-test-nleyl | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| m474r5/CVE-2023-27997-POC | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| m474r5/CVE-2023-27997-findings | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Cyb3rEnthusiast/CVE-2023-27997 | 3 Sep 2023 +82 d | 0 | Informational · write-up
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Not a PoC 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| TechinsightsPro/ShodanFortiOS | 11 Jul 2023 +28 d | 2 | Not a PoC · unrelated
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| h4x0r-dz/CVE-2024-21762 | 13 Mar 2024 +274 d | 150 | Not a PoC · unrelated |
Suspicious or fake 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Vampsecure-Labs/vamp-forticheck | 31 Jul 2026 +3.1 y | 2 | Suspicious · score 80
Why suspicious
|
| abraxas/Fortigate-SSL-VPN-Exploit-Kit | 1 Sep 2026 +3.2 y | 1 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. Suspicious repositories (score ≥ 50) never count. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 8 PoC reposPOST /remote/hostcheck_validate
- Body markers
redir=aenc=inapplication/x-www-form-urlencoded- Ports
- 10443
- Seen in
- 4 repos: BishopFox/CVE-2023-27997-check, delsploit/CVE-2023-27997, imbas007/CVE-2023-27997-Check, node011/CVE-2023-27997-POC
- Evidence
- BishopFox/CVE-2023-27997-check/CVE-2023-27997-check.py:25 delsploit/CVE-2023-27997/exploit.py:133 imbas007/CVE-2023-27997-Check/CVE-2023-27997.py:31 node011/CVE-2023-27997-POC/exp.py:133
GET /remote/hostcheck_validate
- Query
enc=- Content-Type
application/x-www-form-urlencoded- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64)- Seen in
- 3 repos: delsploit/CVE-2023-27997, node011/CVE-2023-27997-POC, onurkerembozkurt/fgt-cve-2023-27997-exploit
- Evidence
- delsploit/CVE-2023-27997/exploit.py:160 node011/CVE-2023-27997-POC/exp.py:160 onurkerembozkurt/fgt-cve-2023-27997-exploit/fgt-cve-2023-27997-exploit.py:84
GET /remote/info
- Ports
- 10443
- Seen in
- 3 repos: BishopFox/CVE-2023-27997-check, imbas007/CVE-2023-27997-Check, onurkerembozkurt/fgt-cve-2023-27997-exploit
- Evidence
- BishopFox/CVE-2023-27997-check/CVE-2023-27997-check.py:48 imbas007/CVE-2023-27997-Check/CVE-2023-27997.py:54 onurkerembozkurt/fgt-cve-2023-27997-exploit/fgt-cve-2023-27997-exploit.py:36
POST /remote/logincheck
- Body markers
ajax=1username=asdfrealm=enc=000000247255fc38- Seen in
- 1 repo: puckiestyle/cve-2023-27997
- Evidence
- puckiestyle/cve-2023-27997/cve-2023-27997.py:11
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/remote/hostcheck_validate(?:[?#].*)?$
(?i)^/remote/hostcheck_validate\?(?:.*&)?enc=
(?i)^/remote/info(?:[?#].*)?$
(?i)^/remote/logincheck(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [10443] (msg:"GG PoC-Monitor CVE-2023-27997 Fortinet FortiOS-6K7K exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/remote/hostcheck_validate"; http.request_body; content:"redir=a"; http.request_body; content:"enc="; reference:url,poc.griffinguard.io/cve/CVE-2023-27997; classtype:web-application-attack; sid:9385275; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2023-27997 Fortinet FortiOS-6K7K exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/remote/hostcheck_validate"; http.uri; content:"enc="; reference:url,poc.griffinguard.io/cve/CVE-2023-27997; classtype:web-application-attack; sid:9214173; rev:1;)
alert http any any -> $HOME_NET [10443] (msg:"GG PoC-Monitor CVE-2023-27997 Fortinet FortiOS-6K7K exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/remote/info"; reference:url,poc.griffinguard.io/cve/CVE-2023-27997; classtype:web-application-attack; sid:9854288; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2023-27997 Fortinet FortiOS-6K7K exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/remote/logincheck"; http.request_body; content:"ajax=1"; http.request_body; content:"username=asdf"; http.request_body; content:"realm="; http.request_body; content:"enc=000000247255fc38"; reference:url,poc.griffinguard.io/cve/CVE-2023-27997; classtype:web-application-attack; sid:9778437; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Fortinet FortiOS-6K7K exploit attempt (CVE-2023-27997)
id: gg-pocmon-cve-2023-27997-9385275
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-27997. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2023-27997
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/remote/hostcheck_validate'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2023.27997
title: Fortinet FortiOS-6K7K exploit attempt (CVE-2023-27997)
id: gg-pocmon-cve-2023-27997-9214173
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-27997. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2023-27997
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/remote/hostcheck_validate'
cs-uri-query|contains|all:
- 'enc='
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2023.27997
title: Fortinet FortiOS-6K7K exploit attempt (CVE-2023-27997)
id: gg-pocmon-cve-2023-27997-9854288
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-27997. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2023-27997
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/remote/info'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2023.27997
title: Fortinet FortiOS-6K7K exploit attempt (CVE-2023-27997)
id: gg-pocmon-cve-2023-27997-9778437
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-27997. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2023-27997
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/remote/logincheck'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2023.27997