Strongswan
Don't miss out!
Thousands of developers use stack.watch to stay informed.Get an email whenever new security vulnerabilities are reported in Strongswan.
By the Year
In 2026 there have been 1 vulnerability in Strongswan with an average score of 8.1 out of ten. Strongswan did not have any published security vulnerabilities last year. That is, 1 more vulnerability have already been reported in 2026 as compared to last year.
| Year | Vulnerabilities | Average Score |
|---|---|---|
| 2026 | 1 | 8.10 |
| 2025 | 0 | 0.00 |
| 2024 | 1 | 0.00 |
| 2023 | 2 | 9.80 |
| 2022 | 2 | 8.30 |
| 2021 | 2 | 7.50 |
| 2020 | 0 | 0.00 |
| 2019 | 1 | 3.10 |
| 2018 | 6 | 7.25 |
It may take a day or so for new Strongswan vulnerabilities to show up in the stats or in the list of recent security vulnerabilities. Additionally vulnerabilities may be tagged under a different product or component name.
Recent Strongswan Security Vulnerabilities
Integer Underflow in strongSwan eap-mschapv2 <6.0.3 Client
CVE-2025-62291
8.1 - High
- January 16, 2026
In the eap-mschapv2 plugin (client-side) in strongSwan before 6.0.3, a malicious EAP-MSCHAPv2 server can send a crafted message of size 6 through 8, and cause an integer underflow that potentially results in a heap-based buffer overflow.
Integer underflow
Auth Bypass via Cert Host Mismatch in strongSwan 5.9.25.9.5 (TLSEAP)
CVE-2022-4967
- May 14, 2024
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).
strongSwan <5.9.12: Buffer Overflow in DH Proxy via IKE_SA_INIT
CVE-2023-41913
9.8 - Critical
- December 07, 2023
strongSwan before 5.9.12 has a buffer overflow and possible unauthenticated remote code execution via a DH public value that exceeds the internal buffer in charon-tkm's DH proxy. The earliest affected version is 5.3.0. An attack can occur via a crafted IKE_SA_INIT message.
Classic Buffer Overflow
StrongSwan RCE via EAP TLS Public var misuse (fixed 5.9.10)
CVE-2023-26463
9.8 - Critical
- April 15, 2023
strongSwan 5.9.8 and 5.9.9 potentially allows remote code execution because it uses a variable named "public" for two different purposes within the same function. There is initially incorrect access control, later followed by an expired pointer dereference. One attack vector is sending an untrusted client certificate during EAP-TLS. A server is affected only if it loads plugins that implement TLS-based EAP methods (EAP-TLS, EAP-TTLS, EAP-PEAP, or EAP-TNC). This is fixed in 5.9.10.
NULL Pointer Dereference
StrongSwan <=5.9.7 Denial of Service via Crafted Cert CRL/OCSP URL
CVE-2022-40617
7.5 - High
- October 31, 2022
strongSwan before 5.9.8 allows remote attackers to cause a denial of service in the revocation plugin by sending a crafted end-entity (and intermediate CA) certificate that contains a CRL/OCSP URL that points to a server (under the attacker's control) that doesn't properly respond but (for example) just does nothing after the initial TCP handshake, or sends an excessive amount of application data.
Resource Exhaustion
In strongSwan before 5.9.5, a malicious responder
CVE-2021-45079
9.1 - Critical
- January 31, 2022
In strongSwan before 5.9.5, a malicious responder can send an EAP-Success message too early without actually authenticating the client and (in the case of EAP methods with mutual authentication and EAP-only authentication for IKEv2) even without server authentication.
NULL Pointer Dereference
The in-memory certificate cache in strongSwan before 5.9.4 has a remote integer overflow upon receiving many requests with different certificates to fill the cache and later trigger the replacement of cache entries
CVE-2021-41991
7.5 - High
- October 18, 2021
The in-memory certificate cache in strongSwan before 5.9.4 has a remote integer overflow upon receiving many requests with different certificates to fill the cache and later trigger the replacement of cache entries. The code attempts to select a less-often-used cache entry by means of a random number generator, but this is not done correctly. Remote code execution might be a slight possibility.
Integer Overflow or Wraparound
The gmp plugin in strongSwan before 5.9.4 has a remote integer overflow via a crafted certificate with an RSASSA-PSS signature
CVE-2021-41990
7.5 - High
- October 18, 2021
The gmp plugin in strongSwan before 5.9.4 has a remote integer overflow via a crafted certificate with an RSASSA-PSS signature. For example, this can be triggered by an unrelated self-signed CA certificate sent by an initiator. Remote code execution cannot occur.
Integer Overflow or Wraparound
The Libreswan Project has found a vulnerability in the processing of IKEv1 informational exchange packets
CVE-2019-10155
3.1 - Low
- June 12, 2019
The Libreswan Project has found a vulnerability in the processing of IKEv1 informational exchange packets which are encrypted and integrity protected using the established IKE SA encryption and integrity keys, but as a receiver, the integrity check value was not verified. This issue affects versions before 3.29.
Improper Input Validation
The gmp plugin in strongSwan before 5.7.1 has a Buffer Overflow
CVE-2018-17540
7.5 - High
- October 03, 2018
The gmp plugin in strongSwan before 5.7.1 has a Buffer Overflow via a crafted certificate.
Buffer Overflow
In verify_emsa_pkcs1_signature() in gmp_rsa_public_key.c in the gmp plugin in strongSwan 4.x and 5.x before 5.7.0
CVE-2018-16151
7.5 - High
- September 26, 2018
In verify_emsa_pkcs1_signature() in gmp_rsa_public_key.c in the gmp plugin in strongSwan 4.x and 5.x before 5.7.0, the RSA implementation based on GMP does not reject excess data after the encoded algorithm OID during PKCS#1 v1.5 signature verification. Similar to the flaw in the same version of strongSwan regarding digestAlgorithm.parameters, a remote attacker can forge signatures when small public exponents are being used, which could lead to impersonation when only an RSA signature is used for IKEv2 authentication.
Improper Verification of Cryptographic Signature
In verify_emsa_pkcs1_signature() in gmp_rsa_public_key.c in the gmp plugin in strongSwan 4.x and 5.x before 5.7.0
CVE-2018-16152
7.5 - High
- September 26, 2018
In verify_emsa_pkcs1_signature() in gmp_rsa_public_key.c in the gmp plugin in strongSwan 4.x and 5.x before 5.7.0, the RSA implementation based on GMP does not reject excess data in the digestAlgorithm.parameters field during PKCS#1 v1.5 signature verification. Consequently, a remote attacker can forge signatures when small public exponents are being used, which could lead to impersonation when only an RSA signature is used for IKEv2 authentication. This is a variant of CVE-2006-4790 and CVE-2014-1568.
Improper Verification of Cryptographic Signature
strongSwan 5.6.0 and older
CVE-2018-10811
- June 19, 2018
strongSwan 5.6.0 and older allows Remote Denial of Service because of Missing Initialization of a Variable.
In stroke_socket.c in strongSwan before 5.6.3, a missing packet length check could
CVE-2018-5388
6.5 - Medium
- May 31, 2018
In stroke_socket.c in strongSwan before 5.6.3, a missing packet length check could allow a buffer underflow, which may lead to resource exhaustion and denial of service while reading from the socket.
Memory Corruption
The rsa_pss_params_parse function in libstrongswan/credentials/keys/signature_params.c in strongSwan 5.6.1 allows remote attackers to cause a denial of service via a crafted RSASSA-PSS signature
CVE-2018-6459
- February 20, 2018
The rsa_pss_params_parse function in libstrongswan/credentials/keys/signature_params.c in strongSwan 5.6.1 allows remote attackers to cause a denial of service via a crafted RSASSA-PSS signature that lacks a mask generation function parameter.
Buffer overflow in the atodn function in strongSwan 2.0.0 through 4.3.4, when Opportunistic Encryption is enabled and an RSA key is being used
CVE-2013-2054
- July 09, 2013
Buffer overflow in the atodn function in strongSwan 2.0.0 through 4.3.4, when Opportunistic Encryption is enabled and an RSA key is being used, allows remote attackers to cause a denial of service (pluto IKE daemon crash) and possibly execute arbitrary code via crafted DNS TXT records. NOTE: this might be the same vulnerability as CVE-2013-2053 and CVE-2013-2054.
Buffer Overflow
Stay on top of Security Vulnerabilities
Want an email whenever new vulnerabilities are published for Strongswan or by Strongswan? Click the Watch button to subscribe.