CVE-2026-12413

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductLibreswan
PublishedJul 2, 2026
First seenJul 2, 2026

How to fix

Update
  • libreswan libreswan5.3.1 or later

Affected products

ProductAffected versionsFixed in
libreswan libreswan4.6 ≤ v < 5.3.15.3.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-12413 · Libreswan · Dark Radar