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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | libreswan | 4.12-2.el8 | ALSA-2023:7052 |
| AlmaLinux:9 | libreswan | 4.12-1.el9 | ALSA-2023:6549 |
| Alpine:v3.20 | libreswan | 4.12-r0 | ALPINE-CVE-2023-38710 |
| Alpine:v3.21 | libreswan | 4.12-r0 | ALPINE-CVE-2023-38710 |
| Alpine:v3.22 | libreswan | 4.12-r0 | ALPINE-CVE-2023-38710 |
| Alpine:v3.23 | libreswan | 4.12-r0 | ALPINE-CVE-2023-38710 |
| Alpine:v3.24 | libreswan | 4.12-r0 | ALPINE-CVE-2023-38710 |
| Debian:12 | libreswan | no fix listed | DEBIAN-CVE-2023-38710 |
| Debian:13 | libreswan | 4.12-1 | DEBIAN-CVE-2023-38710 |
| Rocky Linux:8 | libreswan | 0:4.12-2.el8_10.3 | RLSA-2023:7052 |
| Ubuntu:22.04:LTS | libreswan | no fix listed | UBUNTU-CVE-2023-38710 |
| Ubuntu:24.04:LTS | libreswan | no fix listed | UBUNTU-CVE-2023-38710 |
| Ubuntu:25.10 | libreswan | no fix listed | UBUNTU-CVE-2023-38710 |
| Ubuntu:26.04:LTS | libreswan | no fix listed | UBUNTU-CVE-2023-38710 |
| Ubuntu:26.10 | libreswan | no fix listed | UBUNTU-CVE-2023-38710 |