CVE-2026-12413 Details
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.
A denial-of-service vulnerability has been identified in the Libreswan pluto daemon, versions 4.6 prior to 5.3 and 5.3 prior to 5.3.1. The issue arises when the daemon receives an invalidly formatted IKEv2 fragment, causing it to crash and restart. This vulnerability is rooted in the 'reassemble_v2_incoming_fragments()' function, which improperly handles unknown outer payloads by storing them in a fixed-size array. An off-by-one error in the assertion logic leads to the daemon aborting. While the vulnerability does not allow for remote code execution, continued exploitation can cause a service disruption. The issue does not affect IKEv1.
Users can upgrade to Libreswan 5.3.1 or later to address this vulnerability. For those using Libreswan 4.15 or 5.3, patches are available.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://libreswan.org/security/CVE-2026-12413/ | Libreswan Project | Vendor Advisory |
| https://libreswan.org/security/CVE-2026-12413/CVE-2026-12413.txt | Libreswan Project | Vendor AdvisoryMitigation |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-193 | Off-by-one Error | Libreswan Project |
| CWE-617 | Reachable Assertion | Libreswan Project |
Affected Products
| Product | Versions |
|---|---|
| libreswan libreswan | >= 4.6, < 5.3.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jul 8, 2026 | Initial Analysis | [email protected] |
| Jul 7, 2026 | CVE Modified | CISA-ADP |
| Jul 2, 2026 | New CVE Received | Libreswan Project |