{"id":"CVE-2026-12413","state":"PUBLISHED","title":"IKEv2 Denial of Service via malformed fragmentation","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.","publishedAt":"2026-07-02T21:19:22.177Z","updatedAt":"2026-07-07T17:02:12.976Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"libreswan"},"assigner":"libreswan","products":["The Libreswan Project libreswan"],"affected":[{"vendor":"The Libreswan Project","product":"libreswan","defaultStatus":"unaffected","versions":[{"version":"4.6","status":"affected","lessThanOrEqual":"5.3","versionType":"semver"},{"version":"5.3.1","status":"unaffected","versionType":"semver"}]}],"references":["https://libreswan.org/security/CVE-2026-12413/CVE-2026-12413.txt","https://libreswan.org/security/CVE-2026-12413/"],"weaknesses":["CWE-193","CWE-617"],"ingestedAt":"2026-10-29T20:10:52.580Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/12xxx/CVE-2026-12413.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-12413","state":"PUBLISHED","datePublished":"2026-07-02T21:19:22.177Z","dateUpdated":"2026-07-07T17:02:12.976Z","assignerShortName":"libreswan","assignerOrgId":"d42dc95b-23f1-4e06-9076-20753a0fb0df","dateReserved":"2026-06-16T15:52:12.674Z"},"containers":{"cna":{"title":"IKEv2 Denial of Service via malformed fragmentation","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."}],"affected":[{"vendor":"The Libreswan Project","product":"libreswan","defaultStatus":"unaffected","versions":[{"version":"4.6","status":"affected","lessThanOrEqual":"5.3","versionType":"semver"},{"version":"5.3.1","status":"unaffected","versionType":"semver"}]}],"references":[{"url":"https://libreswan.org/security/CVE-2026-12413/CVE-2026-12413.txt","name":"Libreswan Security Advisory"},{"url":"https://libreswan.org/security/CVE-2026-12413/","name":"Libreswan CVE-2026-12413 Patches"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"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"}},{"other":{"type":"vendorSeverity","content":{"value":"MEDIUM","description":"Vendor-assessed severity. The daemon automatically restarts after the crash, requiring continued exploitation for sustained denial of service."}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-193","lang":"en","type":"CWE","description":"Off-by-one Error"}]},{"descriptions":[{"cweId":"CWE-617","lang":"en","type":"CWE","description":"Reachable Assertion"}]}],"providerMetadata":{"shortName":"libreswan","orgId":"d42dc95b-23f1-4e06-9076-20753a0fb0df","dateUpdated":"2026-07-02T21:19:22.177Z"},"workarounds":[{"lang":"en","value":"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."}],"solutions":[{"lang":"en","value":"Upgrade to libreswan 5.3.1 or later. Patches for libreswan 4.15 and 5.3 are available at https://libreswan.org"}],"credits":[{"lang":"en","type":"finder","value":"Hu Xinyao"}],"timeline":[{"time":"2026-06-16T00:00:00.000Z","lang":"en","value":"Libreswan notified of the issue via security@libreswan.org"},{"time":"2026-06-16T00:00:00.000Z","lang":"en","value":"Advanced notice given to supported customers and distributions"},{"time":"2026-06-24T00:00:00.000Z","lang":"en","value":"Public announcement and release of libreswan 5.3.1"}],"x_generator":{"engine":"cvelib 1.8.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-06T18:12:21.499364Z","id":"CVE-2026-12413","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-07T17:02:12.976Z"}}]}}}