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
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach internet-facing IKEv2 gateway
  2. Delivery
    Craft malformed IKEv2 fragment with unknown payloads
  3. Exploit
    Send to UDP 500/4500
  4. Execution
    Trigger off-by-one PASSERT abort
  5. Persist
    Pluto daemon crashes and restarts
  6. Impact
    Repeat to sustain VPN outage

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Off-by-one prevention
Exploitation Conditions

Exploitation requires the target to accept IKEv2 connections where IKE fragmentation is not disabled - i.e., any connection configuration that does not set fragmentation=no; this is the exact prerequisite named in the advisory and covers typical default IKEv2 setups. The attacker needs network reachability to the IKE service (UDP 500/4500) but no authentication (PR:N), no user interaction (UI:N), and low complexity (AC:L). Limiting factors that reduce realistic exposure: IKEv1-only deployments are not vulnerable, connections explicitly configured with fragmentation=no are not vulnerable, and gateways whose IKE ports are firewalled to known peer IPs sharply narrow who can deliver the malformed fragment. Impact is confined to availability (daemon crash/restart) with no code execution or data exposure.

Impact

The signals are internally consistent for a genuine, easily triggered availability threat: the CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (7.5 High) reflects remote, low-complexity, unauthenticated exploitation with high availability impact and no confidentiality or integrity loss, matching the description of a crash-and-restart DoS with explicitly no RCE. EPSS was not provided in the input and KEV status is not listed, so there is no evidence of active exploitation - treat this as no public exploit identified at time of analysis rather than an in-the-wild threat. The 'RCE' tag in the intelligence conflicts directly with the description's statement 'No remote code execution is possible'; the description and CVSS (I:N) should be trusted over the tag, which appears to be a mislabel. Real priority is moderate-to-high for organizations exposing IKEv2 VPN endpoints to untrusted networks because the barrier to trigger is minimal, but the ceiling is limited to availability - no data compromise. SSVC-style framing: exploitation=none observed, automatable=yes (a single crafted packet, scriptable), technical impact=partial (service outage only).

Exploit ScenarioDerived

An attacker on the network path to an internet-facing IPsec gateway sends a single invalidly formatted IKEv2 fragment containing unknown outer payloads to UDP 500/4500, triggering the off-by-one assertion and aborting the pluto daemon. Because the daemon restarts, the attacker simply resends the packet in a loop to keep the VPN service continuously unavailable. No authentication, credentials, or user interaction are needed, and no public proof-of-concept is referenced in the available data.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 02, 2026

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.

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.

Affected VersionsENISA

libreswan 4.6 ≤5.3

Affected Packages

euvd libreswan no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when Libreswan gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

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
Red Hat 7.5 HIGH

Primary rating from Vendor (libreswan).

CVSS VectorVendor: libreswan

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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.

Executive ViewAI

Why It Matters

Libreswan IPsec VPN deployments are exposed to repeated remote denial-of-service attacks that crash the gateway without requiring authentication or patches. The vulnerability affects any organization running Libreswan with IKEv2 enabled and can sustain service outages indefinitely through attack traffic, blocking critical remote access infrastructure until vendor remediation is released.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: configure fragmentation=no in IKEv2 settings, implement network ingress filtering and rate limiting on UDP ports 500 and 4500, and restrict IKEv2 access to authorized IP ranges. Continuous monitoring of Libreswan project advisories for patch availability is essential.

Threat Intelligence Overview

EPSS Score
0.6%
Top 56% exploitable
Prevalence
Medium
widely used Linux IPsec VPN stack, common but not universal
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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-2026-14957 HIGH
7.5 Sep 02

Unauthenticated remote denial of service in Libreswan's pluto IKE daemon allows any network attacker to repeatedly crash

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

Vendor StatusVendor

SUSE

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

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