CVE-2019-12312
In Libreswan before 3.28, an assertion failure can lead to a pluto IKE daemon restart. An...
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
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 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 Medium
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
libreswanAlpine:v3.11 |
before 3.28-r0 | 3.28-r0 |
libreswanAlpine:v3.12 |
before 3.28-r0 | 3.28-r0 |
libreswanAlpine:v3.13 |
before 3.28-r0 | 3.28-r0 |
libreswanAlpine:v3.14 |
before 3.28-r0 | 3.28-r0 |
libreswanAlpine:v3.15 |
before 3.28-r0 | 3.28-r0 |
libreswanAlpine:v3.16 |
before 3.28-r0 | 3.28-r0 |
libreswanAlpine:v3.17 |
before 3.28-r0 | 3.28-r0 |
libreswanAlpine:v3.18 |
before 3.28-r0 | 3.28-r0 |
libreswanAlpine:v3.19 |
before 3.28-r0 | 3.28-r0 |
libreswanAlpine:v3.20 |
before 3.28-r0 | 3.28-r0 |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libreswanAlpine:v3.21 |
before 3.28-r0 | 3.28-r0 |
libreswanAlpine:v3.22 |
before 3.28-r0 | 3.28-r0 |
libreswanAlpine:v3.23 |
before 3.28-r0 | 3.28-r0 |
libreswanAlpine:v3.24 |
before 3.28-r0 | 3.28-r0 |
libreswanDebian:12 |
before 3.27-5 | 3.27-5 |
libreswanDebian:13 |
before 3.27-5 | 3.27-5 |
libreswanRed Hat:enterprise_linux:8::appstream From an advisory covering 2 CVEs |
before 0:3.29-6.el8 | 0:3.29-6.el8 |
libreswan-debuginfoRed Hat:enterprise_linux:8::appstream From an advisory covering 2 CVEs |
before 0:3.29-6.el8 | 0:3.29-6.el8 |
libreswan-debugsourceRed Hat:enterprise_linux:8::appstream From an advisory covering 2 CVEs |
before 0:3.29-6.el8 | 0:3.29-6.el8 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | OSV | |
| affected, facts | ||
| affected, aliases, references | OSV | |
| aliases | EUVD | |
| first indexed | CVE 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
iwantacve.cn/index.php/archives/218
github.com/libreswan/libreswan/issues/246
github.com/libreswan/libreswan/compare/9b1394e...3897683
libreswan.org/security/CVE-2019-12312/CVE-2019-12312.txt
libreswan.org/security/CVE-2019-12312/libreswan-3.27-CVE-2019-12312.patch
nvd.nist.gov/vuln/detail/CVE-2019-12312
Show 24 moreShow less
github.com/advisories/GHSA-mg44-55g8-hfpm
security.alpinelinux.org/vuln/CVE-2019-12312
security-tracker.debian.org/tracker/CVE-2019-12312
access.redhat.com/errata/RHSA-2019:3391
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.1_release_notes
bugzilla.redhat.com/show_bug.cgi?id=1608353
bugzilla.redhat.com/show_bug.cgi?id=1679394
bugzilla.redhat.com/show_bug.cgi?id=1683706
bugzilla.redhat.com/show_bug.cgi?id=1699318
bugzilla.redhat.com/show_bug.cgi?id=1706180
bugzilla.redhat.com/show_bug.cgi?id=1712555
bugzilla.redhat.com/show_bug.cgi?id=1713734
bugzilla.redhat.com/show_bug.cgi?id=1714141
bugzilla.redhat.com/show_bug.cgi?id=1714331
bugzilla.redhat.com/show_bug.cgi?id=1723957
security.access.redhat.com/data/csaf/v2/advisories/2019/rhsa-2019_3391.json
access.redhat.com/security/cve/CVE-2019-10155
cve.org/CVERecord?id=CVE-2019-10155
nvd.nist.gov/vuln/detail/CVE-2019-10155
libreswan.org/security/CVE-2019-10155
access.redhat.com/security/cve/CVE-2019-12312
bugzilla.redhat.com/show_bug.cgi?id=1716918
cve.org/CVERecord?id=CVE-2019-12312