Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts malformed MySQL handshake
-
DeliverySends packet to bettercap MySQL module
-
ExploitParser reads incomplete buffer or truncates capability flags
-
ExecutionInteger coercion error triggered
-
ImpactPartial information disclosure or undefined behavior in protocol state
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Numeric handling
|
| Exploitation Conditions | The MySQL Server module of bettercap must be explicitly enabled and listening on a network interface accessible to the attacker. The attacker must be able to send packets to the bettercap instance on the MySQL server port (default 3306 or custom-configured). The malformed packet must be a partial or specially crafted MySQL handshake packet (protocol version negotiation phase) with fewer than 37 bytes or manipulated capability flag values in bytes 4-5 of the handshake payload. Standard MySQL client connections will not trigger this flaw - only deliberate protocol violations or fuzzing will expose the vulnerability. The vulnerability does NOT require authentication, network access to a real MySQL backend, or user interaction. Exploitation is limited to the scope of the bettercap process itself (local information disclosure or process instability); there is no privilege escalation or remote code execution vector indicated by the CVSS vector or commit changes. |
| Impact | CVSS 4.0 base score of 2.9 with attack vector network, high complexity, and no special privileges required indicates a low-severity finding on paper. However, several signals warrant careful evaluation. The CVSS vector explicitly sets VA:L (availability of limited resources), which contradicts initial descriptions of 'integer coercion error' leading to information disclosure - the vector shows minimal impact. EPSS score not provided in input. The vulnerability is confirmed published (POC exists per description and GitHub PR #1266) but NOT listed in CISA KEV, indicating no confirmed active exploitation despite public availability. High attack complexity (AC:H) significantly limits real-world exploitability - this is not a trivial network-level attack. The integer parsing flaw occurs only during MySQL handshake when a client sends a deliberately malformed packet with fewer than 37 bytes or crafted capability flags; a normal MySQL client will not trigger this. Real-world impact is unclear: the CVSS suggests only non-critical resource availability risk, but the description claims information disclosure (contradicting the vector). Defenders should assess whether they deploy bettercap in production environments where MySQL credential interception is a real threat model; if bettercap is used only in controlled penetration testing labs, risk is minimal. The high complexity requirement and published (not actively exploited) status suggest this is a low-priority patch cycle issue unless actively targeted in your threat landscape. |
| Exploit ScenarioDerived | An attacker on the same network as a bettercap instance with MySQL Server module enabled sends a specially crafted MySQL handshake response packet (fewer than 37 bytes or with manipulated capability flag bytes) to the fake MySQL server listening on the attacker-controlled network interface. The integer coercion flaw in packet parsing causes the capability flags field to be misinterpreted due to truncation, potentially leading to unexpected behavior such as failure to validate subsequent protocol steps or leakage of internal state information through error messages or subsequent packet handling. Successful triggering requires crafting a valid partial MySQL protocol message, making this a high-complexity attack suitable for targeted exploitation during penetration testing or network manipulation scenarios. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 11, 2026
Integer coercion error in bettercap's MySQL Server module allows remote attackers to trigger information disclosure through malformed MySQL handshake packets. Versions up to 2.41.5 are affected. The vulnerability requires high attack complexity and has no impact on confidentiality, integrity, or service availability per CVSS 4.0 scoring (VA:L indicates only availability of a non-critical resource), but the described integer manipulation coupled with CWE-189 (numeric errors) suggests potential for partial data exposure or undefined behavior in packet parsing.
RemediationAI
Upgrade bettercap to a version incorporating commit 0eaa375c5e5446bfba94a290eff92967a5deac9e or later. Check the official bettercap releases (https://github.com/bettercap/bettercap/releases) for the first version after this commit. If immediate upgrade is not possible and bettercap is deployed in production, disable the MySQL Server module entirely (remove or comment out the module configuration) if not actively needed for credential capture operations. The fix itself is minimal and low-risk: it adds a buffer length validation (ensuring the client handshake packet is at least 37 bytes) before parsing capability flags, and corrects the capability flags format string from 8-bit to 16-bit representation, eliminating the integer truncation. Side effect of disabling the module: loss of MySQL credential interception capability until patched.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Bettercap is a network attack and monitoring framework written in Go. The vulnerable component is the embedded MySQL Server module (modules/mysql_server/mysql_server.go), which implements a fake MySQL server for man-in-the-middle attacks and credential capture. The vulnerability resides in the MySQL handshake packet processing logic, specifically in the parsing of client authentication packets. The root cause is CWE-189 (Numeric Errors), manifesting as improper integer coercion when processing the MySQL protocol's capability flags field. The original code performed a 8-bit format operation on a value that should be 16-bit (uint16/uint32), causing integer truncation or overflow when the capability flags exceed 8-bit range. This occurs at the network protocol level before authentication, making it remotely exploitable without credentials.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
A flaw has been found in bettercap up to 2.41.5. Affected by this issue is some unknown functionality of the file modules/mysql_server/mysql_server.go of the component MySQL Server. Executing a manipulation can lead to integer coercion error. The attack can be launched remotely. The attack requires a high level of complexity. The exploitation is known to be difficult. The exploit has been published and may be used. This patch is called 0eaa375c5e5446bfba94a290eff92967a5deac9e. It is advisable to implement a patch to correct this issue.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-29036
GHSA-jcqv-2g3v-gm88
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB