Skip to main content

bettercap EUVDEUVD-2026-29036

| CVE-2026-8276 LOW
Numeric Errors (CWE-189)
2026-05-11 cna@vuldb.com GHSA-jcqv-2g3v-gm88
2.9
CVSS 4.0 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts malformed MySQL handshake
  2. Delivery
    Sends packet to bettercap MySQL module
  3. Exploit
    Parser reads incomplete buffer or truncates capability flags
  4. Execution
    Integer coercion error triggered
  5. Impact
    Partial 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

bettercap 2.41.0
bettercap 2.41.5
bettercap 2.41.3
bettercap 2.41.4
bettercap 2.41.2
bettercap 2.41.1

Affected Packages

go github.com/bettercap/bettercap/v2 fix: 2.41.7
euvd bettercap no fix

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

NVD PRIMARY 2.9 LOW
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

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.0%
Top 86% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

14
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +14
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy