CVEfocus › CVE database › CVE-2024-3652

CVE-2024-3652IKEv1 default AH/ESP responder can cause libreswan to abort and restart

CVSS 6.5 MediumEPSS 1.0% (higher than 62% of CVEs)Published 2024-04-11Updated 2026-02-27Assigner: libreswan

The Libreswan Project was notified of an issue causing libreswan to restart when using IKEv1 without specifying an esp= line. When the peer requests AES-GMAC, libreswan's default proposal handler causes an assertion failure and crashes and restarts. IKEv2 connections are not affected.

CWE-404

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

12Fixed
5Fix pending
3Under investigation
3Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libreswanFix pendingUBUNTU-CVE-2024-3652
Ubuntu 26.04libreswanUnder investigationUBUNTU-CVE-2024-3652
Ubuntu 25.10libreswanWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-3652
Ubuntu 24.04libreswanUnder investigationUBUNTU-CVE-2024-3652
Ubuntu 22.04libreswanUnder investigationUBUNTU-CVE-2024-3652
Ubuntu 20.04libreswanWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-3652
Ubuntu 18.04libreswanFix pendingUBUNTU-CVE-2024-3652
Debian 13libreswanFixed4.15-1DEBIAN-CVE-2024-3652
Debian 12libreswanFix pendingDEBIAN-CVE-2024-3652
Red Hat Enterprise Linux 10libreswanFix pending
Affected
Red Hat Enterprise Linux 10libreswan-minimalFix pending
Affected
Red Hat Enterprise Linux 9libreswanFixed0:4.12-2.el9_4.1RHSA-2024:4050
Red Hat Enterprise Linux 8libreswanFixed0:4.12-2.el8_10.4RHSA-2024:4376
Red Hat Enterprise Linux 7libreswanWill not fix
Out of support scope
Red Hat Enterprise Linux 6libreswanNot affected
AlmaLinux 9libreswanFixed4.12-2.el9_4.1ALSA-2024:4050
AlmaLinux 8libreswanFixed4.12-2.el8_10.4ALSA-2024:4376
Rocky Linux 9libreswanFixed0:4.12-2.el9_4.1RLSA-2024:4050
Rocky Linux 8libreswanFixed0:4.12-2.el8_10.4RLSA-2024:4376
Alpine Linux 3.24libreswanFixed4.15-r0ALPINE-CVE-2024-3652
Alpine Linux 3.23libreswanFixed4.15-r0ALPINE-CVE-2024-3652
Alpine Linux 3.22libreswanFixed4.15-r0ALPINE-CVE-2024-3652
Alpine Linux 3.21libreswanFixed4.15-r0ALPINE-CVE-2024-3652
Alpine Linux 3.20libreswanFixed4.15-r0ALPINE-CVE-2024-3652

What the vendor says

As published in the CVE record by libreswan, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: This issue is fixed in 4.15 and all later versions.

Workaround: As a workaround, adding an esp= line to all IKEv1 connections works around the issue. An example covering most common default configurations would be: esp=aes-sha2_512,aes-sha1,aes-sha2_256,aes-md5,3des-sha1,3des-md5.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.