CVE-2025-62291
strongSwan vulnerability analysis and mitigation

Overview

A critical vulnerability (CVE-2025-62291) was discovered in the strongSwan client's eap-mschapv2 plugin, affecting all versions since 4.2.12. The vulnerability was discovered by Xu Biang of HUST CSE and publicly disclosed on October 27, 2025. The issue relates to incorrect handling of EAP-MSCHAPv2 failure requests on the client side (StrongSwan Blog).

Technical details

The vulnerability stems from improper length checking of EAP-MSCHAPv2 Failure Request packets in the client. The eap-mschapv2 plugin fails to correctly verify the packet length, leading to an integer underflow when the packet size is between 6 and 8 bytes. This underflow occurs during memory allocation and copying operations, potentially resulting in a heap-based buffer overflow. The issue carries a CVSS v3.1 Base Score of 8.1 (HIGH) with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability can lead to multiple severe consequences including system crashes resulting in denial of service, and potentially remote code execution. When exploited, an attacker could cause the strongSwan client to crash or possibly execute arbitrary code if a user or automated system connects to a malicious server (Ubuntu Security).

Mitigation and workarounds

Several mitigation options are available: clients not using EAP authentication are not vulnerable; those using specific non-tunneling EAP methods (e.g., eap-tls or eap-md5) are safe; and the eap-mschapv2 plugin can be disabled if not required. The vulnerability is fixed in strongSwan 6.0.3, and patches are available for older versions. Additionally, compiling the plugin with optimization and -D_FORTIFY_SOURCE=3 prevents the buffer overflow, though DoS attacks remain possible (StrongSwan Blog).

Additional resources


SourceThis report was generated using AI

Related strongSwan vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2023-41913CRITICAL9.8
  • strongSwanstrongSwan
  • strongswan-tnc-imcvs
NoYesDec 07, 2023
CVE-2023-26463CRITICAL9.8
  • strongSwanstrongSwan
  • strongswan
NoYesApr 15, 2023
CVE-2025-62291HIGH8.1
  • strongSwanstrongSwan
  • strongswan
NoYesJan 16, 2026
CVE-2022-40617HIGH7.5
  • strongSwanstrongSwan
  • strongswan
NoYesOct 31, 2022
CVE-2022-4967MEDIUM6.5
  • strongSwanstrongSwan
  • cpe:2.3:a:strongswan:strongswan
NoYesMay 14, 2024

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management