Vulnerability · Published May 17, 2023 · Assigned by redhat
CVE-2023-2295
High 7.5
In plain English
A high-severity uncontrolled resource consumption in libreswan. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | libreswan | 4.9-3.el8_8 | ALSA-2023:3107 |
| AlmaLinux:9 | libreswan | 4.9-4.el9_2 | ALSA-2023:3148 |
| Rocky Linux:8 | libreswan | 0:4.9-3.el8_8 | RLSA-2023:3107 |
| Ubuntu:22.04:LTS | libreswan | no fix listed | UBUNTU-CVE-2023-2295 |
| Ubuntu:24.04:LTS | libreswan | no fix listed | UBUNTU-CVE-2023-2295 |
| Ubuntu:25.10 | libreswan | no fix listed | UBUNTU-CVE-2023-2295 |
| Ubuntu:26.04:LTS | libreswan | no fix listed | UBUNTU-CVE-2023-2295 |
| Ubuntu:26.10 | libreswan | no fix listed | UBUNTU-CVE-2023-2295 |
Affected products (as reported)
Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H