Skip to main content
No exploitation reportedFix available

CVE-2019-12312

No exploitation reported by the sources we read.

  • Published2019-05-24
  • Fixed in3.28
  • WeaknessCWE-476 · CWE-617

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2019-05-2414:29CVE publishedNVD

Versions per branch

NVD
Libreswan
BranchAffectedFixed in
3.28< 3.283.28

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • libreswanRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:3.29-6.el8and 2 other packages
  • libreswanDebian:13all versions · fixed in 3.27-5
  • libreswanDebian:12all versions · fixed in 3.27-5
  • libreswanCleanStartall versions · fixed in 3.28-r0
  • libreswanAlpine:v3.24all versions · fixed in 3.28-r0
  • libreswanAlpine:v3.23all versions · fixed in 3.28-r0
  • libreswanAlpine:v3.22all versions · fixed in 3.28-r0
  • libreswanAlpine:v3.21all versions · fixed in 3.28-r0

10 more package ranges on OSV.dev

Vendor advisories

  • CVE-2019-12312 Red Hat Product Security13 products fixed

    libreswan: null-pointer dereference by sending two IKEv2 packets

  • RHSA-2019:3391 Red Hat Product Security13 products fixed

    Red Hat Security Advisory: libreswan security and bug fix update

Full record on NVD

Fix

  1. Update Libreswan to 3.28
  2. Vendor fix Red Hat Product Security RHSA-2019:3391 · 13 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2019-05-24
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-mg44-55g8-hfpm

Frequently asked questions

What is CVE-2019-12312?

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.

Is CVE-2019-12312 actively exploited?

Active exploitation of CVE-2019-12312 has not been confirmed. Its EPSS score was 2.7% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2019-12312?

CVE-2019-12312 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running libreswan? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record