# CVE-2019-12312

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability: affected before 3.28 (CNA); fix release not confirmed
- Status: published
- Published: 2019-05-24 · Modified: 2024-08-04
- Aliases: DEBIAN-CVE-2019-12312, ALPINE-CVE-2019-12312
- Record: https://cvemate.com/vulnerability/CVE-2019-12312 · JSON: https://cvemate.com/vulnerability/CVE-2019-12312/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 2.748%, percentile 86.672%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- alpine libreswan (Alpine Linux): \< 3.28-r0
- debian libreswan (Debian): \< 3.27-5
- libreswan libreswan: \< 3.28

## References

- <http://www.iwantacve.cn/index.php/archives/218/>
- <https://github.com/libreswan/libreswan/issues/246>
- <https://github.com/libreswan/libreswan/compare/9b1394e...3897683>
- <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://security-tracker.debian.org/tracker/CVE-2019-12312>
- <https://security.alpinelinux.org/vuln/CVE-2019-12312>

---

Data as of 2026-12-05T10:23:25.917Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
