Description
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.
Published: 2026-07-02
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An invalidly formatted IKEv2 fragment sent to the Libreswan pluto daemon triggers an off‑by‑one boundary‑check error (CWE‑193) and a sequence‑point issue (CWE‑617); the reassemble_v2_incoming_fragments() function stores the payload in a fixed size array, causes an assertion failure, aborts the daemon and forces a restart. No code execution is possible; the impact is limited to service interruption. The flaw affects only IKEv2; IKEv1 is not impacted.

Affected Systems

All Libreswan IKEv2 connections that enable packet fragmentation on versions earlier than 5.3.1, including the 4.15 branch. Any configuration that allows IKEv2 traffic without setting fragmentation=no is vulnerable. Disabling fragmentation in IKEv2 settings removes the risk.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity impact, while the EPSS score of < 1 % shows a very low likelihood of exploitation. The vulnerability is not listed in CISA’s KEV catalog. The most probable attack vector is a network attacker who can inject malformed fragmented IKEv2 packets; repeated exploitation would cause the pluto daemon to crash repeatedly, resulting in denied service for legitimate VPN users.

Generated by OpenCVE AI on July 21, 2026 at 10:45 UTC.

Remediation

Vendor Solution

Upgrade to libreswan 5.3.1 or later. Patches for libreswan 4.15 and 5.3 are available at https://libreswan.org


Vendor Workaround

If fragmentation is not needed, fragmentation=no can be added to all IKEv2 configurations. If fragmentation is needed, no workaround is possible and the fix needs to be applied.


OpenCVE Recommended Actions

  • Upgrade to Libreswan 5.3.1 or a later release, which fixes the off‑by‑one error.
  • If fragmentation is not required, configure all IKEv2 instances with fragmentation=no; this eliminates the vulnerability when the patch is unavailable.
  • If fragmentation must remain enabled and a patch cannot be deployed in time, restrict inbound fragmented IKEv2 traffic with firewall rules and actively monitor the VPN logs for abnormal restarts, treating repeated crashes as a potential attack.

Generated by OpenCVE AI on July 21, 2026 at 10:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 15 Jul 2026 00:15:00 +0000


Tue, 07 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 06 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Libreswan
Libreswan libreswan
Vendors & Products Libreswan
Libreswan libreswan

Thu, 02 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
Description 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.
Title IKEv2 Denial of Service via malformed fragmentation
Weaknesses CWE-193
CWE-617
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


Subscriptions

Libreswan Libreswan
cve-icon MITRE

Status: PUBLISHED

Assigner: libreswan

Published:

Updated: 2026-07-07T17:02:12.976Z

Reserved: 2026-06-16T15:52:12.674Z

Link: CVE-2026-12413

cve-icon Vulnrichment

Updated: 2026-07-06T18:12:22.546Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Important

Publid Date: 2026-06-24T00:00:00Z

Links: CVE-2026-12413 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-21T11:00:05Z

Weaknesses