Skip to content
DoS Write-up Advanced

strongSwan CVE-2026-25075: Integer Underflow in VPN Authentication

An integer underflow in strongSwan's EAP-TTLS AVP parser allows an unauthenticated attacker to crash the VPN server's IKE daemon by sending a malformed AVP with a length field smaller than the 8-byte header. This results in a denial of service, sometimes requiring two connections to trigger the crash.

bishopfox.com

Published on bishopfox.com

Bishop Fox researchers successfully exploited an integer underflow vulnerability affecting the EAP-TTLS plugin in strongSwan versions 4.5.0 through 6.0.4. The vulnerability allows remote, unauthenticated attackers to crash the VPN server's IKE daemon through a carefully crafted EAP-TTLS message, resulting in denial of…

The author, on bishopfox.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 parser subtracted 8 from the AVP length without first checking that the length was at least 8, causing an integer underflow that led to an enormous memory allocation.

What the attacker needed

StrongSwan 4.5.0 to 6.0.4; EAP-TTLS plugin enabled; server accepts IKEv2 connections; server negotiates EAP-TTLS

The fix

The vulnerability was fixed in strongSwan 6.0.5 by adding a bounds check to ensure the AVP length is at least 8 bytes before subtracting.

How it was found

  1. Establish an IKEv2 connection with EAP-TTLS.
  2. Send a malicious AVP with length=1 followed by payload data, causing heap corruption.
  3. Establish a second IKEv2 connection and send another malicious AVP to trigger the crash.

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 server uses a protocol called EAP-TTLS to handle login details. The code that reads these details did not check that a length value was big enough, so a tiny number caused a huge memory request and crashed the server. An attacker could send a special message to take the VPN offline.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.