← Back to CVE Explorer

CVE-2026-12413

Full vulnerability record from the local CVENow database.

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.

Severity
HIGH
CVSS score
7.5 (v3.1)
Vulnerability status
Analyzed
Source identifier
d42dc95b-23f1-4e06-9076-20753a0fb0df
Published
2026-07-02 22:16:42.517000
Last modified
2026-10-25 21:10:00.770000
View original CVE JSON
{
  "id": "CVE-2026-12413",
  "sourceIdentifier": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
  "published": "2026-07-02T22:16:42.517",
  "lastModified": "2026-10-25T21:10:00.770",
  "vulnStatus": "Analyzed",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    },
    {
      "lang": "es",
      "value": "Un fragmento IKEv2 con formato no válido provoca que el demonio pluto de Libreswan se bloquee y reinicie. La explotación continuada causaría una denegación de servicio. La función reassemble_v2_incoming_fragments() ignoraría las cargas útiles externas desconocidas, pero aun así las almacenaría en un array de tamaño fijo msg_digest.digest[PAYLIMIT]. Un error off-by-one en la aserción PASSERT(logger, md  ->  digest_roof < elemsof(md  ->  digest)) provoca que el demonio aborte. No es posible la ejecución remota de código. Cualquier configuración que permita conexiones IKEv2 que no establezcan fragmentation=no es vulnerable. IKEv1 no se ve afectado."
    }
  ],
  "affected": [
    {
      "source": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
      "affectedData": [
        {
          "vendor": "The Libreswan Project",
          "product": "libreswan",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "4.6",
              "lessThanOrEqual": "5.3",
              "versionType": "semver",
              "status": "affected"
            },
            {
              "version": "5.3.1",
              "versionType": "semver",
              "status": "unaffected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
          "baseScore": 7.5,
          "baseSeverity": "HIGH",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "NONE",
          "integrityImpact": "NONE",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 3.9,
        "impactScore": 3.6
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-07-06T18:12:21.499364Z",
          "id": "CVE-2026-12413",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "yes"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-193"
        },
        {
          "lang": "en",
          "value": "CWE-617"
        }
      ]
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:libreswan:libreswan:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "4.6",
              "versionEndExcluding": "5.3.1",
              "matchCriteriaId": "535F926A-021B-40BB-929F-618252622EAB"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://libreswan.org/security/CVE-2026-12413/",
      "source": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
      "tags": [
        "Vendor Advisory"
      ]
    },
    {
      "url": "https://libreswan.org/security/CVE-2026-12413/CVE-2026-12413.txt",
      "source": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
      "tags": [
        "Vendor Advisory",
        "Mitigation"
      ]
    }
  ]
}