Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2019-12312
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:33 UTC · Revision 1
Source evidence
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.
osv:CVE-2019-12312
Complete source record
{
"id": "bd4a79d55befa63eaeb8e709a58a3cd762ca29a17ea35337e897961f0683dd4c",
"url": "https://osv.dev/vulnerability/CVE-2019-12312",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2019-12312",
"summary": "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.",
"evidence": "osv:CVE-2019-12312",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2019-12312",
"aliases": [
"CVE-2019-12312"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/libreswan/libreswan",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "3897683ffe3597b9e57041876c88de73dc2d04cf"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:libreswan:libreswan:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.28"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v3.27",
"v3.26",
"v3.25",
"v3.22",
"v3.22dr1",
"v3.21",
"v3.20",
"v3.21rc5",
"v3.20dr4",
"v3.20dr3",
"v3.19",
"v3.18",
"v3.18dr2",
"v3.16",
"v3.17",
"v3.16rc3",
"v3.16rc2",
"v3.14",
"v3.14rc3",
"v3.14rc2",
"v3.7",
"v3.6",
"v3.5",
"v3.4",
"v3.3",
"v3.1",
"v3.11dr1",
"v3.2rc1",
"v2.93",
"v2.92",
"libreswan-0.0.1",
"0.9.9",
"v2.6.38",
"v2.6.38rc2",
"v2.6.38rc1",
"v2.6.38dr2",
"v2.6.32",
"v2.6.37",
"v2.6.36",
"v2.6.36rc1",
"v2.6.36dr1",
"v2.6.35dr1",
"v2.6.34",
"v2.6.34rc6",
"v2.6.34rc5",
"v2.6.34rc2",
"v2.6.34rc1",
"v2.6.34dr2",
"v2.6.34dr1",
"v2.6.33rc1",
"v2.6.33dr2",
"v2.6.32rc9",
"v2.6.32rc8",
"v2.6.32rc7",
"v2.6.32rc6",
"v2.6.32rc5",
"v2.6.32rc3",
"v2.6.32rc1",
"v2.6.32dr5",
"v2.6.32dr4",
"v2.6.32dr3",
"v2.6.32dr1",
"v2.6.29rc2",
"v2.6.29",
"v2.6.28dr1",
"v2.6.27dr1",
"v2.6.26",
"v2.6.26rc1",
"v2.6.24",
"v2.6.24rc5",
"v2.6.24rc4",
"v2.6.24rc3",
"v2.6.24rc2",
"v2.6.23",
"v2.6.23dr1",
"v2.6.22dr1",
"v2.6.21",
"v2.6.20bis",
"v2.6.20rc2",
"v2.6.20",
"v2.6.19",
"v2.6.18",
"v2.6.18rc1",
"v2.6.16",
"v2.6.16dr5",
"v2.6.16dr4",
"v2.6.16dr3",
"v2.6.16dr2",
"v2.6.16dr1",
"v2.6.15",
"v2.6.15dr2",
"v2.6.14",
"v2.6.07",
"v2.6.03",
"v2.6.01",
"v2.5.03",
"v2.5.01",
"pre_FreeBSD_merge_200607"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-12312.json"
}
}
],
"modified": "2026-10-20T10:50:39.675149802Z",
"provider": "osv",
"references": [
"https://libreswan.org/security/CVE-2019-12312/CVE-2019-12312.txt",
"https://libreswan.org/security/CVE-2019-12312/libreswan-3.27-CVE-2019-12312.patch",
"https://github.com/libreswan/libreswan/issues/246",
"https://github.com/libreswan/libreswan/compare/9b1394e...3897683"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2019-12312",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 381967,
"published_at": "2019-05-24T14:29:00.23+00:00"
}