Skip to main content

Libreswan EUVDEUVD-2026-41439

| CVE-2026-12413 HIGH
Off-by-one Error (CWE-193)
2026-07-02 libreswan GHSA-vj68-68x2-jwjq
7.5
CVSS 3.1 · Vendor: libreswan
Share

Severity by source

Vendor (libreswan) PRIMARY
7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI
7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE
HIGH
qualitative
Red Hat
7.5 HIGH
qualitative

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
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

1
Analysis Generated
Jul 02, 2026 - 22:15 vuln.today

DescriptionCVE.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.

CVE-2013-7283 CRITICAL POC
9.3 Jan 09

Race condition in the libreswan.spec files for Red Hat Enterprise Linux (RHEL) and Fedora packages in libreswan 3.6 has

CVE-2019-12312 HIGH POC
7.5 May 24

In Libreswan 3.27 an assertion failure can lead to a pluto IKE daemon restart. Rated high severity (CVSS 7.5), this vuln

CVE-2023-23009 MEDIUM POC
6.5 Feb 21

Libreswan 4.9 allows remote attackers to cause a denial of service (assert failure and daemon restart) via crafted TS pa

CVE-2013-7294 MEDIUM POC
5.0 Jan 16

The ikev2parent_inI1outR1 function in pluto/ikev2_parent.c in libreswan before 3.7 allows remote attackers to cause a de

CVE-2016-3071 HIGH
7.5 Apr 18

Libreswan 3.16 might allow remote attackers to cause a denial of service (daemon restart) via an IKEv2 aes_xcbc transfor

CVE-2016-5361 HIGH
7.5 Jun 16

programs/pluto/ikev1.c in libreswan before 3.17 retransmits in initial-responder states, which allows remote attackers t

CVE-2016-5391 HIGH
7.5 Jun 13

libreswan before 3.18 allows remote attackers to cause a denial of service (NULL pointer dereference and pluto daemon re

CVE-2023-30570 HIGH
7.5 May 29

pluto in Libreswan before 4.11 allows a denial of service (responder SPI mishandling and daemon crash) via unauthenticat

CVE-2023-2295 HIGH
7.5 May 17

A vulnerability was found in the libreswan library. Rated high severity (CVSS 7.5), this vulnerability is remotely explo

CVE-2020-1763 HIGH
7.5 May 12

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

CVE-2023-38712 MEDIUM
6.5 Aug 25

An issue was discovered in Libreswan 3.x and 4.x before 4.12. Rated medium severity (CVSS 6.5), this vulnerability is re

CVE-2023-38711 MEDIUM
6.5 Aug 25

An issue was discovered in Libreswan before 4.12. Rated medium severity (CVSS 6.5), this vulnerability is remotely explo

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Liberty Linux 10 Fixed
SUSE Liberty Linux 8 Fixed
SUSE Liberty Linux 9 Fixed

Share

EUVD-2026-41439 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy