CVE-2025-62291
Description
A flaw was found in the strongSwan eap-mschapv2 plugin (client-side). A remote attacker, specifically a malicious Extensible Authentication Protocol - Microsoft Challenge-Handshake Authentication Protocol version 2 (EAP-MSCHAPv2) server, could exploit this by sending a specially crafted message between 6 and 8 bytes in size. This crafted message can cause an integer underflow, leading to a heap-based buffer overflow. This vulnerability could potentially result in arbitrary code execution, allowing the attacker to take control of the affected system, or lead to a denial of service.
Statement
For this vulnerability to be exploited, a connection must be made to a malicious server.
Understanding the Weakness (CWE)
Availability
Technical Impact: DoS: Crash, Exit, or Restart; DoS: Resource Consumption (CPU); DoS: Resource Consumption (Memory); DoS: Instability
This weakness will generally lead to undefined behavior and therefore crashes. In the case of overflows involving loop index variables, the likelihood of infinite loops is also high.
Integrity
Technical Impact: Modify Memory
If the value in question is important to data (as opposed to flow), simple data corruption has occurred. Also, if the wrap around results in other conditions such as buffer overflows, further memory corruption may occur.
Confidentiality,Availability,Access Control
Technical Impact: Execute Unauthorized Code or Commands; Bypass Protection Mechanism
This weakness can sometimes trigger buffer overflows which can be used to execute arbitrary code. This is usually outside the scope of a program's implicit security policy.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.