PoC Monitor
← All CVEs
CVE-2023-27997published 13 Jun 2023 08:41 UTCData: JSON · API

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.

First public PoC 2.8 daysafter publication · 16 Jun 2023
Public PoCs88 on GitHub · +1 suspicious, not counted
CVSS9.2critical · scored by CNA · CWE-122
CISA KEV 13 Jun 20231 h after publication · ransomware use known

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published13 Jun 2023 · t = 0Added to CISA KEV13 Jun 2023 · t = 0First public PoC16 Jun 2023 · t+2.8d

First 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
RepositoryCreatedStarsAssessment
rio128128/CVE-2023-27997-POC 16 Jun 2023 +2.8 d 27 PoC
Flags · score 30
  • owner account created less than 7 days before the repo

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
RepositoryCreatedStarsAssessment
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
RepositoryCreatedStarsAssessment
Cyb3rEnthusiast/CVE-2023-27997 3 Sep 2023 +82 d 0 Informational · write-up
Flags · score 30
  • owner account created less than 7 days before the repo

Below the suspicion threshold (50); does not change the assessment.

Not a PoC 2
RepositoryCreatedStarsAssessment
TechinsightsPro/ShodanFortiOS 11 Jul 2023 +28 d 2 Not a PoC · unrelated
Flags · score 15
  • no network code found (normal for a local exploit)

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
RepositoryCreatedStarsAssessment
Vampsecure-Labs/vamp-forticheck 31 Jul 2026 +3.1 y 2 Suspicious · score 80
Why suspicious
  • pipes a download into a shell / encoded PowerShell in .github/workflows/security-scan.yml
  • owner account created less than 7 days before the repo
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 repos

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

POST /remote/logincheck

Body markers
ajax=1 username=asdf realm= 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.

POST /remote/hostcheck_validate
(?i)^/remote/hostcheck_validate(?:[?#].*)?$
GET /remote/hostcheck_validate
(?i)^/remote/hostcheck_validate\?(?:.*&)?enc=
GET /remote/info
(?i)^/remote/info(?:[?#].*)?$
POST /remote/logincheck
(?i)^/remote/logincheck(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /remote/hostcheck_validate
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;)
GET /remote/hostcheck_validate
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;)
GET /remote/info
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;)
POST /remote/logincheck
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.

POST /remote/hostcheck_validate
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
GET /remote/hostcheck_validate
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
GET /remote/info
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
POST /remote/logincheck
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