Skip to content
Memory corruption Write-up Advanced

CVE-2025–0282: How a One-Line Bug in Ivanti’s VPN Let Attackers Walk Through the Front Door

A stack-based buffer overflow in Ivanti Connect Secure's handling of the IFT protocol allowed unauthenticated attackers to execute code on the VPN appliance. Attackers exploited this to gain initial access, disable defences, install a web shell, and move laterally into internal networks.

kalyan.dev.me Follow

Published on medium.com

Your VPN appliance is supposed to be the thing that keeps attackers out. It sits at the edge of your network, terminates remote connections, and decides who gets in.

Kalyan Dev, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The code used the length of the attacker-supplied input as the size limit for a copy into a fixed 256-byte stack buffer, instead of the buffer's own size, causing a stack buffer overflow.

Impact

Attackers could execute code without authentication, disable defences, install a persistent web shell, and use the appliance to move laterally into the internal network; the exploit was actively used in the wild before a patch existed.

What the attacker needed

Network access to the VPN appliance; No credentials required; Version-specific ROP chain

The fix

The vulnerability was fixed in Connect Secure 22.7R2.5, Policy Secure 22.7R1.2, and Neurons for ZTA 22.7R2.3; compromised appliances should be factory reset and reinstalled rather than just patched.

How it was found

  1. Fingerprint the exact appliance version via pre-auth HTTP requests.
  2. Send a crafted IFT packet with an oversized clientCapabilities field to trigger the overflow.
  3. Code executes as the web process user, giving an initial foothold.
  4. Disable SELinux, remount the filesystem writable, and kill syslog forwarding.
  5. Inject the PHASEJAM web shell for persistent access.
  6. Deploy additional payloads to stage lateral movement into the internal network.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A VPN appliance is a device that lets employees connect securely to a company's internal network from outside. This bug meant that a specially crafted network message could overflow a small memory buffer in the VPN software, letting an attacker run their own code on the device without needing any password. Because the VPN is trusted by the internal network, the attacker could then use it to break into other systems.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.