Skip to main content
Public proof of conceptFix available

CVE-2026-12413

A public proof of concept exists; no exploitation attested.

  • Published2026-07-02
  • Fixed in5.3.1
  • WeaknessCWE-193 · CWE-617

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-07-0222:16CVE publishedNVD
  2. 2026-11-1310:34First public proof of conceptPoC-in-GitHub

Versions per branch

NVD
Libreswan
BranchAffectedFixed in
5.3≥ 4.6, < 5.3.15.3.1

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As libreswan, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • The Libreswan Project libreswanother versions: not affected
    Affected
    • ≥ 4.6, ≤ 5.3no fix statedsemver

    Not affected = 5.3.1

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-07-02

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • libreswanUbuntu:26.10all versions · no fixed version listed
  • libreswanUbuntu:26.04:LTSall versions · no fixed version listed
  • libreswanUbuntu:25.10all versions · no fixed version listed
  • libreswanUbuntu:24.04:LTSall versions · no fixed version listed
  • libreswanUbuntu:22.04:LTSall versions · no fixed version listed
  • libreswanUbuntu:20.04:LTSall versions · no fixed version listed
  • libreswanUbuntu:18.04:LTSall versions · no fixed version listed
  • libreswanTuxCare:AlmaLinux:9.6all versions · fixed in 4.15-8.el9_6.tuxcare.els1

28 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-12413 Red Hat Product Security93 products fixed · 3 known affected

    librenswan: IKEv2 Denial of Service via malformed fragmentation

    libreswan as a component of Red Hat OpenShift Container Platform 4 · libreswan.src as a component of Red Hat OpenShift Container Platform 4 · openshift/ose-rhel-coreos-9 as a component of Red Hat OpenShift Container Platform 5

  • RHSA-2026:72287 Red Hat Product Security5 products fixed

    Red Hat Security Advisory: libreswan security update

  • RHSA-2026:63044 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.19.46 bug fix and security update

  • RHSA-2026:63041 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.21.32 bug fix and security update

  • RHSA-2026:63100 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.20.37 bug fix and security update

  • RHSA-2026:61779 Red Hat Product Security5 products fixed

    Red Hat Security Advisory: libreswan security update

7 more advisories

Full record on NVD

Fix

  1. Update Libreswan to 5.3.1
  2. Vendor fix Red Hat Product Security RHSA-2026:72287 · 5 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2026:63044 · 4 productsFor OpenShift Container Platform 4.19 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.redhat.com/en/documentation/openshift_container_platform/4.…
  4. Vendor fix Red Hat Product Security RHSA-2026:63041 · 4 productsFor OpenShift Container Platform 4.21 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.redhat.com/en/documentation/openshift_container_platform/4.…
  5. Vendor fix Red Hat Product Security RHSA-2026:63100 · 4 productsFor OpenShift Container Platform 4.20 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.redhat.com/en/documentation/openshift_container_platform/4.…
  6. Workaround from the vendor Red Hat Product Security RHSA-2026:72287 · 11 productsIf upgrading to Libreswan is not an option, you can mitigate the vulnerability by disabling IKEv2 fragment processing: Add the following directive to your global or connection-specific configuration files in /etc/ipsec.conf: ```fragmentation=no``` Warning: Disabling fragmentation may cause larger…

Advisories and patches

Detection

read 2026-11-13 10:35 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2026-07-02
Last modified
2026-10-25
NVD status
Analyzed
GitHub advisory
GHSA-vj68-68x2-jwjq

Frequently asked questions

What is CVE-2026-12413?

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.

Is CVE-2026-12413 actively exploited?

Active exploitation of CVE-2026-12413 has not been confirmed. Its EPSS score was 0.8% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-12413?

CVE-2026-12413 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running librenswan? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record