CVEfocus › CVE database › CVE-2023-2295

CVE-2023-2295

CVSS 7.5 HighEPSS 1.6% (higher than 76% of CVEs)Published 2023-05-17Updated 2025-01-22Assigner: redhat

A vulnerability was found in the libreswan library. This security issue occurs when an IKEv1 Aggressive Mode packet is received with only unacceptable crypto algorithms, and the response packet is not sent with a zero responder SPI. When a subsequent packet is received where the sender reuses the libreswan responder SPI as its own initiator SPI, the pluto daemon state machine crashes. No remote code execution is possible. This CVE exists because of a CVE-2023-30570 security regression for libreswan package in Red Hat Enterprise Linux 8.8 and Red Hat Enterprise Linux 9.2.

CWE-400

What to do

Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
1Fix pending
3Under investigation
3Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libreswanFix pendingUBUNTU-CVE-2023-2295
Ubuntu 26.04libreswanUnder investigationUBUNTU-CVE-2023-2295
Ubuntu 25.10libreswanWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-2295
Ubuntu 24.04libreswanUnder investigationUBUNTU-CVE-2023-2295
Ubuntu 22.04libreswanUnder investigationUBUNTU-CVE-2023-2295
Ubuntu 20.04libreswanWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-2295
Ubuntu 18.04libreswanWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-2295
Red Hat Enterprise Linux 9libreswanFixed0:4.9-4.el9_2RHSA-2023:3148
Red Hat Enterprise Linux 8libreswanFixed0:4.9-3.el8_8RHSA-2023:3107
Red Hat Enterprise Linux 7libreswanNot affected
Red Hat Enterprise Linux 6libreswanNot affected
AlmaLinux 9libreswanFixed4.9-4.el9_2ALSA-2023:3148
AlmaLinux 8libreswanFixed4.9-3.el8_8ALSA-2023:3107
Rocky Linux 8libreswanFixed0:4.9-3.el8_8RLSA-2023:3107

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.