This module exploits a Stack-based Buffer Overflow vulnerability in Ivanti Connect Secure to achieve remote code execution (CVE-2025-22457). Versions 22.7R2.5 and earlier are vulnerable. Note that Ivanti Pulse Connect Secure, Ivanti Policy Secure and ZTA gateways are also vulnerable but this module doesn't support this software. Heap spray is used to place our payload in memory at a predetermined location. Due to ASLR, the base address of `libdsplibs` is unknown. This library is used by the exploit to build a ROP chain and get command execution. As a result, the module will brute force this address starting from the address set by the `LIBDSPLIBS_ADDRESS` option.
Exploit database
Vulnerability
CVE-2025-22457
Vulnerability details
- Score
- 9.0
- Severity
- critical
CVSS 3.1 · ivanti
Vector string
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HDescription
A stack-based buffer overflow in Ivanti Connect Secure before version 22.7R2.6, Ivanti Policy Secure before version 22.7R1.4, and Ivanti ZTA Gateways before version 22.8R2.2 allows a remote unauthenticated attacker to achieve remote code execution.
CVE ProgramExploit source choices
6 sourcesIvanti Connect Secure Unauthenticated Remote Code Execution via Stack-based Buffer Overflow
2025-04-03ivanti_connect_secure_stack_overflow_rce_cve_2025_22457.rb
sfewer-r7/cve-2025-22457
PoC for CVE-2025-22457 - A remote unauthenticated stack based buffer overflow affecting Ivanti Connect Secure, Pulse Connect Secure, Ivanti Policy Secure, and ZTA Gateways
2025-04-092 files · 73 stars
securekomodo/cve-2025-22457
CVE-2025-22457: Python Exploit POC Scanner to Detect Ivanti Connect Secure RCE
2025-04-102 files · 18 stars
vinylrider/ivantiunlocker
Prevent CVE-2025-22457 and other security problems with Juniper/Ivanti Secure Connect SSL VPN
2025-04-083 files · 2 stars
trone-ux/cve-2025-22457
PoC CVE-2025-22457
2025-05-255 files · 1 stars
benmevic/cve-2025-22457
Altay takımı haftalık sunumu için yaptığım cve-2025-22457 zafiyeti demo uygulaması
2026-07-099 files · 0 stars