{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-12413",
        "assignerOrgId": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
        "state": "PUBLISHED",
        "assignerShortName": "libreswan",
        "dateReserved": "2026-06-16T15:52:12.674Z",
        "datePublished": "2026-07-02T21:19:22.177Z",
        "dateUpdated": "2026-07-07T17:02:12.976Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "d42dc95b-23f1-4e06-9076-20753a0fb0df",
                "shortName": "libreswan",
                "dateUpdated": "2026-07-02T21:19:22.177Z"
            },
            "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",
                    "versions": [
                        {
                            "version": "4.6",
                            "status": "affected",
                            "lessThanOrEqual": "5.3",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.3.1",
                            "status": "unaffected",
                            "versionType": "semver"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "type": "CWE",
                            "cweId": "CWE-193",
                            "description": "Off-by-one Error"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "type": "CWE",
                            "cweId": "CWE-617",
                            "description": "Reachable Assertion"
                        }
                    ]
                }
            ],
            "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."
                        }
                    }
                }
            ],
            "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"
                }
            ],
            "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/"
                }
            ],
            "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": [
            {
                "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"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-07-07T17:02:12.976Z"
                }
            }
        ]
    }
}