CVE-2023-2295 Denial of service in libreswan
A remote attacker can crash the libreswan pluto daemon by sending crafted IKEv1 packets, causing a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-2295?
CVE-2023-2295 is a high-severity denial of service vulnerability in Redhat Enterprise Linux, published on 17 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-400
Which versions are affected by CVE-2023-2295?
It affects 5 products.
Linux distribution packages (7)
libreswan Red Hat:enterprise_linux:8::appstream | All versions | 0:4.9-3.el8_8 |
libreswan-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:4.9-3.el8_8 |
libreswan-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:4.9-3.el8_8 |
libreswan Red Hat:enterprise_linux:9::appstream | All versions | 0:4.9-4.el9_2 |
libreswan-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:4.9-4.el9_2 |
libreswan-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:4.9-4.el9_2 |
libreswan Rocky Linux:8 | All versions | 0:4.9-3.el8_8 |
Products include Libreswan Libreswan, Redhat Enterprise Linux, Redhat Enterprise Linux Eus, Redhat Enterprise Linux Server Aus, Redhat Enterprise Linux Server Tus.
How do I fix CVE-2023-2295?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2023-2295 being exploited?
There is no known exploitation of CVE-2023-2295 in the wild and no public exploit code.
Other vulnerabilities in Redhat Enterprise Linux
- CVE-2013-7283 Race condition in n/a
- CVE-2026-12413 IKEv2 Denial of Service via malformed fragmentation
- CVE-2026-50721 IKEv1 Denial of Service via RSA-SHA1 (PKCS#1 Version 1.5 Encrypted) authentication payload
- CVE-2026-50722 IKEv2 Denial of Service via RSA-SHA1 (PKCS#1 RSASSA-PKCS1-v1_5) authentication payload
- CVE-2023-30570 Denial of service in n/a
Sources
Also known as GHSA-gcrh-c42h-m2vw, RHSA-2023:3107, RHSA-2023:3148, RLSA-2023:3107, UBUNTU-CVE-2023-2295.