Vulnerability record · CVE-2019-12312 · published 24 May 2019
CVE-2019-12312: Libreswan null pointer dereference vulnerability
Libreswan · Libreswan
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.
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.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://www.iwantacve.cn/index.php/archives/218/ | ExploitThird Party Advisory |
| https://github.com/libreswan/libreswan/compare/9b1394e...3897683 | PatchThird Party Advisory |
| https://github.com/libreswan/libreswan/issues/246 | Third Party Advisory |
| 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 | |
| http://www.iwantacve.cn/index.php/archives/218/ | ExploitThird Party Advisory |
| https://github.com/libreswan/libreswan/compare/9b1394e...3897683 | PatchThird Party Advisory |
| https://github.com/libreswan/libreswan/issues/246 | Third Party Advisory |
| 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 |
Track CVE-2019-12312 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2019-12312), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.