cve.bz

CVE-2023-38712 libreswan libreswan: NULL Pointer Dereference

6.5 mediumEPSS 0.8%

Medium (6.5) in libreswan libreswan. EPSS 0.8% estimated probability of exploitation activity in the next 30 days.

On this page
An issue was discovered in Libreswan 3.x and 4.x before 4.12. When an IKEv1 ISAKMP SA Informational Exchange packet contains a Delete/Notify payload followed by further Notifies that act on the ISAKMP SA, such as a duplicated Delete/Notify message, a NULL pointer dereference on the deleted state causes the pluto daemon to crash and restart.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 58th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-38712 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-38712?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-38712?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-38712 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libreswan:libreswanfrom 3.0 before 4.0
libreswan:libreswanfrom 4.0 before 4.12

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12libreswanno fix listedDEBIAN-CVE-2023-38712
Debian13libreswan4.12-1DEBIAN-CVE-2023-38712
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 morelibreswanno fix listedUBUNTU-CVE-2023-38712
Red Hatenterprise_linux:8::appstreamlibreswan, libreswan-debuginfo, libreswan-debugsource0:4.12-2.el8RHSA-2023:7052
Red Hatenterprise_linux:9::appstreamlibreswan, libreswan-debuginfo, libreswan-debugsource0:4.12-1.el9RHSA-2023:6549
Red Hatopenshift:4.15::el9libreswan, libreswan-debuginfo, libreswan-debugsource0:4.6-3.el9_0.3RHBA-2024:11565
Red Hatopenshift:4.16::el9libreswan, libreswan-debuginfo, libreswan-debugsource0:4.6-3.el9_0.3RHBA-2024:11505
Red Hatopenshift:4.17::el9libreswan, libreswan-debuginfo, libreswan-debugsource0:4.6-3.el9_0.3RHBA-2024:11525
Red Hatrhel_e4s:9.0::appstreamlibreswan, libreswan-debuginfo, libreswan-debugsource0:4.6-3.el9_0.3RHSA-2024:10594
Red Hatrhel_eus:9.2::appstreamlibreswan, libreswan-debuginfo, libreswan-debugsource0:4.9-5.el9_2.4RHSA-2025:0309
AlmaLinux8libreswan4.12-2.el8ALSA-2023:7052
AlmaLinux9libreswan4.12-1.el9ALSA-2023:6549
Rocky Linux8libreswan0:4.12-2.el8_10.3RLSA-2023:7052
Alpinev3.19, v3.20, v3.21 and 3 morelibreswan4.12-r0ALPINE-CVE-2023-38712
Azure Linux2libreswan4.7-5AZL-28066
Azure Linux3libreswan4.7-6AZL-34937

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

IKEv1 Delete/Notify requests are only processed when received from authenticated peers, limiting the scope of possible attackers to peers who have successfully authenticated.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8libreswan-0:4.12-2.el8Fixed 2023-11-14RHSA-2023:7052
Red Hat Enterprise Linux 9libreswan-0:4.12-1.el9Fixed 2023-11-07RHSA-2023:6549
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionslibreswan-0:4.6-3.el9_0.3Fixed 2024-12-02RHSA-2024:10594
Red Hat Enterprise Linux 9.2 Extended Update Supportlibreswan-0:4.9-5.el9_2.4Fixed 2025-01-14RHSA-2025:0309
Red Hat OpenShift Container Platform 4.15libreswan-0:4.6-3.el9_0.3Fixed 2025-01-02RHBA-2024:11565
Red Hat OpenShift Container Platform 4.16libreswan-0:4.6-3.el9_0.3Fixed 2025-01-02RHBA-2024:11505
Red Hat OpenShift Container Platform 4.17libreswan-0:4.6-3.el9_0.3Fixed 2025-01-02RHBA-2024:11525
Red Hat Enterprise Linux 6libreswanOut of support scope
Red Hat Enterprise Linux 6openswanOut of support scope
Red Hat Enterprise Linux 7libreswanOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-38712.

References

Check your stackJSON