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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.6%top 24.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
AlmaLinux:8libreswan4.9-3.el8_8ALSA-2023:3107
AlmaLinux:9libreswan4.9-4.el9_2ALSA-2023:3148
Rocky Linux:8libreswan0:4.9-3.el8_8RLSA-2023:3107
Ubuntu:22.04:LTSlibreswanno fix listedUBUNTU-CVE-2023-2295
Ubuntu:24.04:LTSlibreswanno fix listedUBUNTU-CVE-2023-2295
Ubuntu:25.10libreswanno fix listedUBUNTU-CVE-2023-2295
Ubuntu:26.04:LTSlibreswanno fix listedUBUNTU-CVE-2023-2295
Ubuntu:26.10libreswanno fix listedUBUNTU-CVE-2023-2295

Affected products (as reported)

VendorProductVersions
n/a libreswan 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

Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References