Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Remote unauthenticated single crafted packet against default IKEv2 (AV:N/AC:L/PR:N/UI:N); impact is availability-only crash with no confidentiality or integrity effect.
Primary rating from Vendor (libreswan).
CVSS VectorVendor: libreswan
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Lifecycle Timeline
1DescriptionCVE.org
An invalidly formatted IKEv2 fragment causes the Libreswan pluto daemon to crash and restart. Continued exploitation would cause a denial of service. The function reassemble_v2_incoming_fragments() would ignore unknown outer payloads but still store these in a fixed size array msg_digest.digest[PAYLIMIT]. An off-by-one error in the assertion PASSERT(logger, md->digest_roof < elemsof(md->digest)) causes the daemon to abort. No remote code execution is possible. Any configuration that allows IKEv2 connections that do not set fragmentation=no are vulnerable. IKEv1 is not affected.
AnalysisAI
Denial of service in the Libreswan IPsec VPN's pluto daemon allows remote unauthenticated attackers to crash and repeatedly restart the daemon by sending an invalidly formatted IKEv2 fragment. The off-by-one flaw affects any deployment permitting IKEv2 connections that do not explicitly set fragmentation=no, with no authentication or user interaction required; repeated exploitation sustains the outage. No public exploit identified at time of analysis, and no remote code execution is possible despite the mislabeled 'RCE' tag.
Technical ContextAI
Libreswan is an open-source IKE/IPsec implementation (a fork of Openswan/FreeS/WAN) whose user-space pluto daemon negotiates IKEv2 security associations. During IKEv2 fragment reassembly, reassemble_v2_incoming_fragments() ignores unknown outer payloads but still records each into the fixed-size msg_digest.digest[PAYLIMIT] array. Because the code stores entries it should skip, the digest_roof index can reach the array bound, and the guard PASSERT(logger, md->digest_roof < elemsof(md->digest)) fires and aborts the process. This is a textbook CWE-193 Off-by-one Error: an inclusive/exclusive boundary mismatch that turns a defensive assertion into a crash primitive. The affected component is identified by CPE cpe:2.3:a:the_libreswan_project:libreswan (all versions per the wildcard CPE); only the IKEv2 code path is affected, IKEv1 is not.
RemediationAI
No exact fixed version is provided in the input data, so no vendor-released patch version can be independently confirmed here - consult the Libreswan advisory at https://libreswan.org/security/CVE-2026-12413/ (full text https://libreswan.org/security/CVE-2026-12413/CVE-2026-12413.txt) for the patched release and upgrade to it as the primary fix. As an immediate compensating control the vendor guidance is implied directly by the vulnerable condition: set fragmentation=no on IKEv2 connection definitions, since only configurations that permit IKE fragmentation are affected; the trade-off is that disabling IKE fragmentation can break IKEv2 negotiation across networks that fragment large UDP packets or have restrictive MTUs, potentially causing connection failures for legitimate peers behind such paths. Additionally restrict IKE/UDP 500 and 4500 exposure to known peer IP ranges via firewall rules to limit who can send crafted fragments, and monitor pluto for repeated restarts as a detection signal; where feasible, prefer IKEv1 is not a recommended substitute but IKEv1-only deployments are noted as unaffected.
Race condition in the libreswan.spec files for Red Hat Enterprise Linux (RHEL) and Fedora packages in libreswan 3.6 has
In Libreswan 3.27 an assertion failure can lead to a pluto IKE daemon restart. Rated high severity (CVSS 7.5), this vuln
Libreswan 4.9 allows remote attackers to cause a denial of service (assert failure and daemon restart) via crafted TS pa
The ikev2parent_inI1outR1 function in pluto/ikev2_parent.c in libreswan before 3.7 allows remote attackers to cause a de
Libreswan 3.16 might allow remote attackers to cause a denial of service (daemon restart) via an IKEv2 aes_xcbc transfor
programs/pluto/ikev1.c in libreswan before 3.17 retransmits in initial-responder states, which allows remote attackers t
libreswan before 3.18 allows remote attackers to cause a denial of service (NULL pointer dereference and pluto daemon re
pluto in Libreswan before 4.11 allows a denial of service (responder SPI mishandling and daemon crash) via unauthenticat
A vulnerability was found in the libreswan library. Rated high severity (CVSS 7.5), this vulnerability is remotely explo
An out-of-bounds buffer read flaw was found in the pluto daemon of libreswan from versions 3.27 till 3.31 where, an unau
An issue was discovered in Libreswan 3.x and 4.x before 4.12. Rated medium severity (CVSS 6.5), this vulnerability is re
An issue was discovered in Libreswan before 4.12. Rated medium severity (CVSS 6.5), this vulnerability is remotely explo
Same weakness CWE-193 – Off-by-one Error
View allSame technique Denial Of Service
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Liberty Linux 10 | Fixed |
| SUSE Liberty Linux 8 | Fixed |
| SUSE Liberty Linux 9 | Fixed |
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-41439
GHSA-vj68-68x2-jwjq