patchminder
Proof of concept · GitHub CVE-2026-12413

Remote code executionin The Libreswan Project libreswan.

Published 2 Jul 2026 · Updated 7 Jul 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
High 7.5
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.8% chance in 30 days · 4 Dec 2026
Fix
Not confirmed
No source names a fixed version yet
In plain words

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.

What to do now
  • Upgrade to libreswan 5.3.1 or later. Patches for libreswan 4.15 and 5.3 are available at https://libreswan.org
  • Can't upgrade today? 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.

Not confirmed by any source yet: fixed version not confirmed. We show these as not confirmed instead of guessing.

Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
libreswan
4.6 to 5.3
Not confirmed
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 16 Jun 2026
    CVE ID reserved by libreswan.
  2. 2 Jul 2026
    Published in the CVE List.
  3. 7 Jul 2026
    CVE record last updated.
  4. 12 Nov 2026
    First public proof of concept on GitHub.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs foundMohammad-Jafar-Shabib/CVE-2026-12413-libreswan-poc0 stars · created 12 Nov 2026First public PoC for CVE-2026-12413 · libreswan IKEv2 fragment off-by-one (unauthenticated remote DoS, fixed in 5.3.1)

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other libreswan vulnerabilities

Same weakness: Off-by-one error

All CWE-193 vulnerabilities

References
Cite this page

Patchminder. CVE-2026-12413: Remote code execution in The Libreswan Project libreswan. https://patchminder.com/cve/cve-2026-12413/ (accessed 5 December 2026).