← Vulnerability feed

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.

7.5 CVSS 3.0 High EPSS 2.7% · top 14.4% CWE-476 · NULL pointer dereferenceCWE-617 · CWE-617
7.5CVSS 3.0 base score, v2 5.0
2.7%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
10References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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

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.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.3CVE-2013-7283Libreswan race condition vulnerabilityRace condition in the libreswan.spec files for Red Hat Enterprise Linux (RHEL) and Fedora packages in libreswan 3.6 has unspecified impact and attack…EPSS 1.6%7.5CVE-2026-12413Libreswan vulnerabilityAn invalidly formatted IKEv2 fragment causes the Libreswan pluto daemon to crash and restart. Continued exploitation would cause a denial of service.…EPSS 0.60%7.5CVE-2023-30570Libreswan uncontrolled resource consumption vulnerabilitypluto in Libreswan before 4.11 allows a denial of service (responder SPI mishandling and daemon crash) via unauthenticated IKEv1 Aggressive Mode pack…EPSS 1.2%7.5CVE-2023-2295Libreswan uncontrolled resource consumption vulnerabilityA vulnerability was found in the libreswan library. This security issue occurs when an IKEv1 Aggressive Mode packet is received with only unacceptabl…EPSS 1.6%7.5CVE-2022-23094Libreswan null pointer dereference vulnerabilityLibreswan 4.2 through 4.5 allows remote attackers to cause a denial of service (NULL pointer dereference and daemon crash) via a crafted IKEv1 packet…EPSS 2.5%7.5CVE-2020-1763Libreswan out-of-bounds read vulnerabilityAn out-of-bounds buffer read flaw was found in the pluto daemon of libreswan from versions 3.27 till 3.31 where, an unauthenticated attacker could us…EPSS 3.6%7.5CVE-2016-5391Libreswan null pointer dereference vulnerabilitylibreswan before 3.18 allows remote attackers to cause a denial of service (NULL pointer dereference and pluto daemon restart).EPSS 3.0%7.5CVE-2016-5361Libreswan improper input validation vulnerabilityprograms/pluto/ikev1.c in libreswan before 3.17 retransmits in initial-responder states, which allows remote attackers to cause a denial of service (…EPSS 2.7%

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.