CVE-2023-2295
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libreswan | Fix pending | UBUNTU-CVE-2023-2295 | |
| Ubuntu 26.04 | libreswan | Under investigation | UBUNTU-CVE-2023-2295 | |
| Ubuntu 25.10 | libreswan | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-2295 | |
| Ubuntu 24.04 | libreswan | Under investigation | UBUNTU-CVE-2023-2295 | |
| Ubuntu 22.04 | libreswan | Under investigation | UBUNTU-CVE-2023-2295 | |
| Ubuntu 20.04 | libreswan | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-2295 | |
| Ubuntu 18.04 | libreswan | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-2295 | |
| Red Hat Enterprise Linux 9 | libreswan | Fixed | 0:4.9-4.el9_2 | RHSA-2023:3148 |
| Red Hat Enterprise Linux 8 | libreswan | Fixed | 0:4.9-3.el8_8 | RHSA-2023:3107 |
| Red Hat Enterprise Linux 7 | libreswan | Not affected | ||
| Red Hat Enterprise Linux 6 | libreswan | Not affected | ||
| AlmaLinux 9 | libreswan | Fixed | 4.9-4.el9_2 | ALSA-2023:3148 |
| AlmaLinux 8 | libreswan | Fixed | 4.9-3.el8_8 | ALSA-2023:3107 |
| Rocky Linux 8 | libreswan | Fixed | 0:4.9-3.el8_8 | RLSA-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.
- libreswan: affected: Affects libreswan v4.9-1.el8 and libreswan v4.9-1.el9, Fixed in libreswan v4.9-3.el8_8 and libreswan v4.9-4.el9_2
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2189777
- https://access.redhat.com/security/cve/CVE-2023-2295
- https://access.redhat.com/errata/RHSA-2023:3107
- https://access.redhat.com/errata/RHSA-2023:3148
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.