ZeroHour

CVE-2026-78133

large

Use-after-free in strongSwan IKEv2 rekeying collision handling

CVSS 3.1
7.5 high
EPSS
Published
()
Modified
AI analysis

strongSwan's libcharon, the component implementing IKEv2/IPsec key negotiation in the charon daemon, contains a use-after-free (CWE-416) in its handling of IKEv2 rekeying collisions, affecting versions 6.0.0 through 6.0.7. The flaw is triggered when two peers simultaneously initiate rekeying of the same security association and the daemon frees an object that the colliding rekey transaction still references; because the CVSS vector scores network attack complexity as high with low privileges required, an attacker needs to be a valid (authenticated) IKEv2 peer and hit a timing-dependent race condition. Successful exploitation can crash the VPN daemon, and the high confidentiality/integrity/availability impacts in the score indicate memory corruption that could potentially extend to code execution in the context of the daemon. Anyone running strongSwan 6.0.0 through 6.0.7 as an IKEv2 responder or initiator — including VPN gateways, site-to-site tunnel endpoints, and appliances or distributions that bundle the 6.0.x series — is affected. No public proof-of-concept, in-the-wild exploitation, or CISA KEV listing is known at the time of this analysis.

What to do: Upgrade strongSwan to a release newer than 6.0.7 once the fix is published — check the upstream release notes or security advisories for the patched 6.0.x version, as the affected range ends at 6.0.7. Until then, restrict IKEv2 access (UDP 500/4500) to trusted, authenticated peers via firewall rules or peer allowlists, and monitor VPN gateways for unexpected charon daemon crashes or restarts. Because exploitation requires valid IKEv2 credentials and a hard-to-hit race condition (AC:H), exposure to unauthenticated attackers is limited, but authenticated VPN peers should be treated as potential sources of malicious rekey traffic.

Affected
strongSwan project strongSwan (libcharon, charon IKE daemon)6.0.0 through 6.0.7
Estimated exposure
large≈10,000–100,000 systems (tens of thousands of internet-exposed IKEv2 endpoints, of which the 6.0.x subset is affected) — strongSwan is one of the most widely deployed open-source IPsec stacks on Linux servers, VPN gateways and embedded appliances, and public internet scans (e.g., Shodan/Censys-type scans of UDP 500/4500) show tens of thousands of IKEv2…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

libcharon in strongSwan 6.0.0 through 6.0.7 has a use-after-free in IKEv2 rekeying collision handling.

Vendors
strongswan
Products
strongswan
Weakness
CWE-416
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.