Every CVE Search/ Get API key

CVE-2019-12312

In Libreswan before 3.28, an assertion failure can lead to a pluto IKE daemon restart. An...

7.5 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

2.75%Up 1.5 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2019-12312
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-476, CWE-617
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2019-12312
Updated
2026-11-02
EUVDEUVD-2019-3949 No score

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.

Record
EUVD-2019-3949
Updated
2026-11-03
GitHub AdvisoriesGHSA-mg44-55g8-hfpm No score

In Libreswan before 3.28, an assertion failure can lead to a pluto IKE daemon restart. An...

In Libreswan before 3.28, an assertion failure can lead to a pluto IKE daemon restart. An attacker can trigger a NULL pointer dereference by sending two IKEv2 packets (init_IKE and delete_IKE) in 3des_cbc mode to a Libreswan server. This affects send_v2N_spi_response_from_state in programs/pluto/ikev2_send.c when built with Network Security Services (NSS).

Record
GHSA-mg44-55g8-hfpm
Updated
2026-11-02
OSVALPINE-CVE-2019-12312 7.5

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.

Record
ALPINE-CVE-2019-12312
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-03
OSV 7.5

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.

Record
CVE-2019-12312
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2019-12312 7.5

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.

Record
DEBIAN-CVE-2019-12312
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-06
OSVRHSA-2019:3391 4.3

Red Hat Security Advisory: libreswan security and bug fix update

Record
RHSA-2019:3391
CVSS 3.0
4.3 MediumCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libreswan
Alpine:v3.11
before 3.28-r0
3.28-r0
libreswan
Alpine:v3.12
before 3.28-r0
3.28-r0
libreswan
Alpine:v3.13
before 3.28-r0
3.28-r0
libreswan
Alpine:v3.14
before 3.28-r0
3.28-r0
libreswan
Alpine:v3.15
before 3.28-r0
3.28-r0
libreswan
Alpine:v3.16
before 3.28-r0
3.28-r0
libreswan
Alpine:v3.17
before 3.28-r0
3.28-r0
libreswan
Alpine:v3.18
before 3.28-r0
3.28-r0
libreswan
Alpine:v3.19
before 3.28-r0
3.28-r0
libreswan
Alpine:v3.20
before 3.28-r0
3.28-r0
Show 9 moreShow less
Affected packages
PackageAffectedFixed
libreswan
Alpine:v3.21
before 3.28-r0
3.28-r0
libreswan
Alpine:v3.22
before 3.28-r0
3.28-r0
libreswan
Alpine:v3.23
before 3.28-r0
3.28-r0
libreswan
Alpine:v3.24
before 3.28-r0
3.28-r0
libreswan
Debian:12
before 3.27-5
3.27-5
libreswan
Debian:13
before 3.27-5
3.27-5
libreswan
Red Hat:enterprise_linux:8::appstream
From an advisory covering 2 CVEs
before 0:3.29-6.el8
0:3.29-6.el8
libreswan-debuginfo
Red Hat:enterprise_linux:8::appstream
From an advisory covering 2 CVEs
before 0:3.29-6.el8
0:3.29-6.el8
libreswan-debugsource
Red Hat:enterprise_linux:8::appstream
From an advisory covering 2 CVEs
before 0:3.29-6.el8
0:3.29-6.el8

History

History
RecordedChangedSources
affectedOSV
affected, facts
affected, aliases, referencesOSV
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2019-12312 is a high vulnerability (CVSS 7.5) in Libreswan, published May 24, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.75%, the 86th percentile. Fixed in libreswan 3.28-r0.

References

Show 24 moreShow less
MoveEnter Open