{"id":"CVE-2026-12413","published":"2026-07-02T21:19:22Z","modified":"2026-07-07T17:02:12Z","title":"IKEv2 Denial of Service via malformed fragmentation","vendor":"The Libreswan Project","product":"libreswan","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00764,"percentile":0.56301,"provenance":"source"},"cwes":[{"id":"CWE-193","name":"Off-by-one Error"},{"id":"CWE-617","name":"Reachable Assertion"}],"references":[{"url":"https://libreswan.org/security/CVE-2026-12413/CVE-2026-12413.txt","tags":[]},{"url":"https://libreswan.org/security/CVE-2026-12413/","tags":[]}],"priority":{"score":21.5,"factors":[{"name":"EPSS percentile","points":11.26},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.25}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-11-12","earliestUrl":"https://github.com/Mohammad-Jafar-Shabib/CVE-2026-12413-libreswan-poc","repos":[{"name":"Mohammad-Jafar-Shabib/CVE-2026-12413-libreswan-poc","url":"https://github.com/Mohammad-Jafar-Shabib/CVE-2026-12413-libreswan-poc","stars":0,"created":"2026-11-12"}]},"first":{"date":"2026-11-12","source":"PoC-in-GitHub","url":"https://github.com/Mohammad-Jafar-Shabib/CVE-2026-12413-libreswan-poc"},"provenance":"source"},"vendorSlug":"the-libreswan-project","affectedVersions":[{"vendor":"The Libreswan Project","product":"libreswan","versions":[">= 4.6, <= 5.3"]}],"fixedVersions":[{"vendor":"The Libreswan Project","product":"libreswan","versions":["5.3.1"]}],"solutions":{"items":["Upgrade to libreswan 5.3.1 or later. Patches for libreswan 4.15 and 5.3 are available at https://libreswan.org"],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-06T18:12:21.499364Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-41439","exploited":false,"provenance":"source"}}