{"api_version":"1","generated_at":"2026-07-15T04:51:47+00:00","cve":"CVE-2026-12413","urls":{"html":"https://cve.report/CVE-2026-12413","api":"https://cve.report/api/cve/CVE-2026-12413.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-12413","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-12413"},"summary":{"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.","state":"PUBLISHED","assigner":"libreswan","published_at":"2026-07-02 22:16:42","updated_at":"2026-07-08 18:52:42"},"problem_types":["CWE-193","CWE-617","CWE-193 Off-by-one Error","CWE-617 Reachable Assertion"],"metrics":[{"version":"3.1","source":"d42dc95b-23f1-4e06-9076-20753a0fb0df","type":"Secondary","score":"7.5","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","data":{"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"}},{"version":"3.1","source":"CNA","type":"CVSS","score":"7.5","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"references":[{"url":"https://libreswan.org/security/CVE-2026-12413/CVE-2026-12413.txt","name":"https://libreswan.org/security/CVE-2026-12413/CVE-2026-12413.txt","refsource":"d42dc95b-23f1-4e06-9076-20753a0fb0df","tags":["Vendor Advisory","Mitigation"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://libreswan.org/security/CVE-2026-12413/","name":"https://libreswan.org/security/CVE-2026-12413/","refsource":"d42dc95b-23f1-4e06-9076-20753a0fb0df","tags":["Vendor Advisory"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-12413","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12413","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"The Libreswan Project","product":"libreswan","version":"affected 4.6 5.3 semver","platforms":[]},{"source":"CNA","vendor":"The Libreswan Project","product":"libreswan","version":"unaffected 5.3.1 semver","platforms":[]}],"timeline":[{"source":"CNA","time":"2026-06-16T00:00:00.000Z","lang":"en","value":"Libreswan notified of the issue via security@libreswan.org"},{"source":"CNA","time":"2026-06-16T00:00:00.000Z","lang":"en","value":"Advanced notice given to supported customers and distributions"},{"source":"CNA","time":"2026-06-24T00:00:00.000Z","lang":"en","value":"Public announcement and release of libreswan 5.3.1"}],"solutions":[{"source":"CNA","title":"","value":"Upgrade to libreswan 5.3.1 or later. Patches for libreswan 4.15 and 5.3 are available at https://libreswan.org","time":"","lang":"en"}],"workarounds":[{"source":"CNA","title":"","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.","time":"","lang":"en"}],"exploits":[],"credits":[{"source":"CNA","value":"Hu Xinyao","lang":"en"}],"nvd_cpes":[{"cve_year":"2026","cve_id":"12413","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"libreswan","cpe5":"libreswan","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"12413","cve":"CVE-2026-12413","epss":"0.005970000","percentile":"0.444240000","score_date":"2026-07-10","updated_at":"2026-07-11 00:11:17"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2026-12413","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2026-07-06T18:12:21.499364Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-07-07T17:02:12.976Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"defaultStatus":"unaffected","product":"libreswan","vendor":"The Libreswan Project","versions":[{"lessThanOrEqual":"5.3","status":"affected","version":"4.6","versionType":"semver"},{"status":"unaffected","version":"5.3.1","versionType":"semver"}]}],"credits":[{"lang":"en","type":"finder","value":"Hu Xinyao"}],"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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]},{"other":{"content":{"description":"Vendor-assessed severity. The daemon automatically restarts after the crash, requiring continued exploitation for sustained denial of service.","value":"MEDIUM"},"type":"vendorSeverity"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-193","description":"Off-by-one Error","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-617","description":"Reachable Assertion","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-07-02T21:19:22.177Z","orgId":"d42dc95b-23f1-4e06-9076-20753a0fb0df","shortName":"libreswan"},"references":[{"name":"Libreswan Security Advisory","url":"https://libreswan.org/security/CVE-2026-12413/CVE-2026-12413.txt"},{"name":"Libreswan CVE-2026-12413 Patches","url":"https://libreswan.org/security/CVE-2026-12413/"}],"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"}],"timeline":[{"lang":"en","time":"2026-06-16T00:00:00.000Z","value":"Libreswan notified of the issue via security@libreswan.org"},{"lang":"en","time":"2026-06-16T00:00:00.000Z","value":"Advanced notice given to supported customers and distributions"},{"lang":"en","time":"2026-06-24T00:00:00.000Z","value":"Public announcement and release of libreswan 5.3.1"}],"title":"IKEv2 Denial of Service via malformed fragmentation","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."}],"x_generator":{"engine":"cvelib 1.8.0"}}},"cveMetadata":{"assignerOrgId":"d42dc95b-23f1-4e06-9076-20753a0fb0df","assignerShortName":"libreswan","cveId":"CVE-2026-12413","datePublished":"2026-07-02T21:19:22.177Z","dateReserved":"2026-06-16T15:52:12.674Z","dateUpdated":"2026-07-07T17:02:12.976Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-07-02 22:16:42","lastModifiedDate":"2026-07-08 18:52:42","problem_types":["CWE-193","CWE-617","CWE-193 Off-by-one Error","CWE-617 Reachable Assertion"],"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"}}]},"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"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"12413","Ordinal":"1","Title":"IKEv2 Denial of Service via malformed fragmentation","CVE":"CVE-2026-12413","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"12413","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"IKEv2 Denial of Service via malformed fragmentation"}]}}}