Description
strongSwan versions 5.9.2 through 5.9.5 are affected by authorization bypass through improper validation of certificate with host mismatch (CWE-297). When certificates are used to authenticate clients in TLS-based EAP methods, the IKE or EAP identity supplied by a client is not enforced to be contained in the client's certificate. So clients can authenticate with any trusted certificate and claim an arbitrary IKE/EAP identity as their own. This is problematic if the identity is used to make policy decisions. A fix was released in strongSwan version 5.9.6 in August 2022 (e4b4aabc4996fc61c37deab7858d07bc4d220136).
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| strongSwan | strongSwan | 5.9.2 – < 5.9.6 | 5.9.6 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | strongswan | 5.9.6-1 | — |
| Debian 13 | strongswan | 5.9.6-1 | — |
| Debian 12 | strongswan | 5.9.6-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | strongswan | 5.9.5-2ubuntu2.3 | USN-6772-1 |
Advisories 2
- USN-6772-1 strongswan vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- WID-SEC-2024-1138 strongSwan: Schwachstelle ermöglicht Umgehen von Sicherheitsvorkehrungen BSI CERT-Bund (WID) · May 15, 2024
References
- https://github.com/strongswan/strongswan/commit/e4b4aabc4996fc61c37deab7858d07bc4d220136 patch
- https://www.strongswan.org/blog/2024/05/13/strongswan-vulnerability-(cve-2022-4967).html vendor-advisory
- https://www.cve.org/CVERecord?id=CVE-2022-4967 issue-tracking
- https://security.netapp.com/advisory/ntap-20240614-0006/