{"schemaVersion":3,"id":"CVE-2019-12312","aliases":["DEBIAN-CVE-2019-12312"],"status":"published","duplicateOf":null,"title":null,"description":"In Libreswan 3.27 an assertion failure can lead to a pluto IKE daemon restart. An attacker can trigger a NULL pointer dereference by initiating an IKEv2 IKE_SA_INIT exchange, followed by a bogus INFORMATIONAL exchange instead of the normallly expected IKE_AUTH exchange. This affects send_v2N_spi_response_from_state() in programs/pluto/ikev2_send.c that will then trigger a NULL pointer dereference leading to a restart of libreswan.","dates":{"published":"2019-05-24T13:06:41.000Z","modified":"2024-08-04T23:17:40.062Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true}]},"epss":{"probability":0.02748,"percentile":0.86011,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.02748},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0254,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02748,"percentile":0.86011}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0254,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02748,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02748,"percentile":0.86011}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_49E7C15D2A9DBE1F","name":"Exploit Reference (iwantacve.cn)","source":"reference","url":"http://www.iwantacve.cn/index.php/archives/218/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-476","name":"NULL Pointer Dereference","description":"The product dereferences a pointer that it expects to be valid but is NULL.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/476.html"},{"id":"CWE-617","name":"Reachable Assertion","description":"The product contains an assert() or similar statement that can be triggered by an attacker, which leads to an application exit or other behavior that is more severe than necessary.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/617.html"}],"affected":[{"vendor":"debian","product":"libreswan","name":"libreswan","label":"libreswan","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libreswan","purlType":"deb","versions":[{"text":"< 3.27-5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.27-5","eol":null,"hubHref":null},{"vendor":"libreswan","product":"libreswan","name":"libreswan","label":"libreswan","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.28","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.28","eol":null,"hubHref":"/vendor/libreswan/libreswan"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://www.iwantacve.cn/index.php/archives/218/","label":"www.iwantacve.cn/index.php/archives/218/","hostname":"www.iwantacve.cn","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"https://github.com/libreswan/libreswan/issues/246","label":"github.com/libreswan/libreswan/issues/246","hostname":"github.com","tags":["X Refsource MISC","Third Party Advisory"]},{"url":"https://github.com/libreswan/libreswan/compare/9b1394e...3897683","label":"github.com/libreswan/libreswan/compare/9b1394e...3897683","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory"]},{"url":"https://libreswan.org/security/CVE-2019-12312/CVE-2019-12312.txt","label":"libreswan.org/security/CVE-2019-12312/CVE-2019-12312.txt","hostname":"libreswan.org","tags":["X Refsource CONFIRM"]},{"url":"https://libreswan.org/security/CVE-2019-12312/libreswan-3.27-CVE-2019-12312.patch","label":"libreswan.org/security/CVE-2019-12312/libreswan-3.27-CVE-2019-12312.patch","hostname":"libreswan.org","tags":["X Refsource CONFIRM"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-12312","label":"security-tracker.debian.org/tracker/CVE-2019-12312","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["RHSA-2019:3391"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2019-05-24T13:06:41.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T23:17:40.062Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T00:51:34.520Z","stale":false,"partial":false}}