Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.6%top 54%

CVE-2026-12413: Off-by-one Error in The Libreswan Project libreswan

0
High
VulnerabilityCVE-2026-12413cvecve-2026-12413
Published: 07/02/2026 (07/02/2026, 21:19:22 UTC)
Source: CVE Database V5
Vendor/Project: The Libreswan Project
Product: libreswan

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.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

libreswan
pkg:deb/libreswan
Affected versions
=4.6

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/10/2026, 08:32:23 UTC

Technical Analysis

The Libreswan pluto daemon contains an off-by-one error in the function reassemble_v2_incoming_fragments() that handles IKEv2 fragmented packets. When an invalidly formatted IKEv2 fragment with unknown outer payloads is received, the daemon stores these payloads in a fixed-size array msg_digest.digest[PAYLIMIT] without proper bounds checking. The assertion PASSERT(logger, md->digest_roof < elemsof(md->digest)) fails due to this off-by-one error, causing the daemon to abort and restart. This leads to a denial of service condition. The vulnerability does not permit remote code execution. Only configurations that allow IKEv2 fragmentation (fragmentation not disabled) are vulnerable; IKEv1 is unaffected.

Potential Impact

Successful exploitation causes the Libreswan pluto daemon to crash and restart repeatedly, resulting in a denial of service. There is no impact on confidentiality or integrity, and remote code execution is not possible. Systems configured to allow IKEv2 fragmentation are vulnerable, potentially disrupting VPN connectivity or other services relying on the daemon.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, mitigate by configuring Libreswan to disable IKEv2 fragmentation (set fragmentation=no) to prevent triggering the vulnerability. Monitor vendor communications for official patches or updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
libreswan
Date Reserved
2026-06-16T15:52:12.674Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a46d9e827e9c79719236155

Added to database: 07/02/2026, 21:36:40 UTC

Last enriched: 07/10/2026, 08:32:23 UTC

Last updated: 08/16/2026, 00:41:10 UTC

Views: 72

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses