==========================================================================
CVE-2026-115846: IKEv2: IKE_INTERMEDIATE exchange bypass error
==========================================================================

Release date: Monday, Nov 16, 2026
Contact: security@libreswan.org
PGP key: 907E790F25C1E8E561CD73B585FF4B43B30FC6F9

This alert (and any updates) are available at the following URLs:
https://libreswan.org/security/CVE-2026-115846



The Libreswan Project was notified of state machine failure of the
recently added PostQuantum Hybrid Key Exchange feature. Connections
that are configured to perform a Hybrid Key Exchange were allowed to
skip the IKE_INTERMEDIATE exchange and thus fall back to a classic
exchange without PostQuantum algorithm support.

Such connections have the "addke=" keyword in the ike= and/or esp=
configuration option.

PostQuantum Hybrid Key Exchange support was added in version 5.4.


Severity: Low
Vulnerable versions : 5.4 and 5.4.1
Not vulnerable      : 5.4.2 and later, 3.0 - 5.3.3

Vulnerability details
=====================
The state machine processing the IKEv2 packets did not properly verify
that an IKE_INTERMEDIATE exchange was required to satisfy the addke=
PostQuantum algorithm component of the exchange. A connecting client could
(maliciously or by implementation error) connect skipping the PostQuantum
algorithm part of the negotiated connection and start an IKE_AUTH exchange
prematurely.

The result is as if the addke= option had not been specified, and such
connections are only protected by the Classic Algorithm (such as P-256
or Curve25519). This allows for "store now, decrypt later" attacks once
a quantum computer becomes available.


Exploitation
============
The main risk are legitimate clients connecting to a server and accidentally
skipping the PostQuantum Key Exchange algorithm of the exchange, degrading
the PostQuantum Hybrid security model to a Classic algorithm only security
model.


Workaround
==========
There is no workaround. Apply the patch or upgrade to version 5.4.2 or later.

History
=======
* 16-10-2026 Libreswan was notified of the issue via security@libreswan.org.
* 22-10-2026 Patch submitted to researcher and verified.
* 10-11-2026 Advanced notice given to supported customers and distributions.
* 16-11-2026 Public announcement and release of libreswan 5.4.2

Credits
=======
Astrid Passot <toooh503@gmail.com>


Upgrading
=========
To address this vulnerability, upgrade to libreswan 5.4.2 or later.

Patches
=======
For those who cannot upgrade, patches are available at:
https://libreswan.org/security/CVE-2026-115846/

About libreswan (https://libreswan.org/)
========================================
Libreswan is a free implementation of the Internet Key Exchange (IKE)
protocols IKEv1 and IKEv2. It is a descendant (continuation fork) of
openswan 2.6.38. IKE is used to establish IPsec VPN connections.

IPsec uses strong cryptography to provide both authentication and
encryption services. These services allow you to build secure tunnels
through untrusted networks. Everything passing through the untrusted
network is encrypted by the IPsec gateway machine, and decrypted by
the gateway at the other end of the tunnel. The resulting tunnel is a
virtual private network (VPN).
