home / blog

2026-11-12 · high

CVE-2026-12413: Denial of Service in Libreswan

Malformed IKEv2 fragment causes Libreswan crash. CVSS 7.5 (high), unauthenticated DoS. Public PoC today.

CVE-2026-12413: Denial of Service in Libreswan

CVE-2026-12413 identifies a vulnerability in Libreswan's IKEv2 daemon. A malformed IKEv2 fragment triggers a crash and restart of the pluto process through an off-by-one error in the reassemble_v2_incoming_fragments() function. The flaw affects any Libreswan configuration that does not explicitly disable IKEv2 fragmentation. IKEv1 is not affected.

The CVSS score is 7.5 (high). This is an unauthenticated denial of service: a remote attacker, without authentication, can send malformed IKEv2 fragments to repeatedly crash the daemon, causing loss of VPN service availability. As of 2026-11-12, public repositories on GitHub declare containing a working proof-of-concept, elevating the concrete risk. The CVE was published on 2026-07-02; a patch is available in version 5.3.1.

Sysadmins and IT teams must verify immediately whether their Libreswan enables IKEv2 fragment processing (default configuration). If the risk is immediate, the mitigation is to set fragmentation=no until patch 5.3.1 is applied. For organizations with critical VPN infrastructure, the upgrade must be scheduled within days: the public availability of the PoC significantly increases the likelihood of active exploitation.

At a glance

What
Malformed IKEv2 fragment; off-by-one error in reassemble_v2_incoming_fragments() triggers abort of pluto daemon via failed PASSERT assertion in msg_digest.digest[PAYLIMIT]; IKEv1 not affected
Severity
CVSS 7.5 (high); unauthenticated denial of service; no remote code execution (RCE) possible
Affected versions
Libreswan: versions prior to 5.3.1; configurations with fragmentation!=no
Fix
Update to Libreswan 5.3.1 or later; interim: set fragmentation=no
Status
Public PoC available as of 2026-11-12; CVE published 2026-07-02; patch available
Action
Inventory Libreswan instances; verify if fragmentation!=no; apply patch to 5.3.1; test fragmentation=no mitigation if update not immediate

Sources: NVD, CVE-2026-12413

← All articles