Vulnerability · Published Aug 25, 2023 · Assigned by mitre

CVE-2023-38710

Medium 6.5

In plain English

A medium-severity security flaw in the libreswan package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)6.5Medium
Exploit odds (30 days)0.8%top 42.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

An issue was discovered in Libreswan before 4.12. When an IKEv2 Child SA REKEY packet contains an invalid IPsec protocol ID number of 0 or 1, an error notify INVALID_SPI is sent back. The notify payload's protocol ID is copied from the incoming packet, but the code that verifies outgoing packets fails an assertion that the protocol ID must be ESP (2) or AH(3) and causes the pluto daemon to crash and restart. NOTE: the earliest affected version is 3.20.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8libreswan4.12-2.el8ALSA-2023:7052
AlmaLinux:9libreswan4.12-1.el9ALSA-2023:6549
Alpine:v3.20libreswan4.12-r0ALPINE-CVE-2023-38710
Alpine:v3.21libreswan4.12-r0ALPINE-CVE-2023-38710
Alpine:v3.22libreswan4.12-r0ALPINE-CVE-2023-38710
Alpine:v3.23libreswan4.12-r0ALPINE-CVE-2023-38710
Alpine:v3.24libreswan4.12-r0ALPINE-CVE-2023-38710
Debian:12libreswanno fix listedDEBIAN-CVE-2023-38710
Debian:13libreswan4.12-1DEBIAN-CVE-2023-38710
Rocky Linux:8libreswan0:4.12-2.el8_10.3RLSA-2023:7052
Ubuntu:22.04:LTSlibreswanno fix listedUBUNTU-CVE-2023-38710
Ubuntu:24.04:LTSlibreswanno fix listedUBUNTU-CVE-2023-38710
Ubuntu:25.10libreswanno fix listedUBUNTU-CVE-2023-38710
Ubuntu:26.04:LTSlibreswanno fix listedUBUNTU-CVE-2023-38710
Ubuntu:26.10libreswanno fix listedUBUNTU-CVE-2023-38710

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References