CVE-2026-8276: bettercap Integer Coercion Error in MySQL Server Module
Summary
CVE-2026-8276: bettercap Has an Integer Coercion Error in modules/mysql_server/mysql_server.go. Affects github.com/bettercap/bettercap/v2 versions < 2.41.7. Fixed in 2.41.7. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
bettercap is a powerful, flexible, and modular network attack and monitoring tool that is widely used for penetration testing and security assessments. It provides various functionalities, including the ability to manipulate network traffic and perform man-in-the-middle attacks. However, versions up to 2.41.5 contain a vulnerability in the MySQL Server module that can lead to an integer coercion error, potentially allowing attackers to exploit the system remotely.
Vulnerability Detail
The vulnerability arises from an integer coercion error in the MySQL Server module of bettercap, specifically in the file modules/mysql_server/mysql_server.go. This flaw can be exploited remotely, requiring a high level of complexity and technical knowledge. Although the exploitation is known to be difficult, the existence of a published exploit increases the risk of potential attacks. The vulnerability is classified under CWE-192, indicating issues related to integer coercion.
How To Fix
Latest published version: v2.41.7 as of 22 Oct 2026
go get github.com/bettercap/bettercap/v2@v2.41.7
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
2.41.7
This is the first release that contains the fix.
go get github.com/bettercap/bettercap/v2@v2.41.7
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary measure, if updating is not immediately possible, consider disabling the MySQL Server module in bettercap until a proper update can be applied. This can be done by modifying the configuration settings to prevent the module from loading.
Conclusion
In summary, CVE-2026-8276 represents a significant vulnerability in bettercap that can lead to integer coercion errors in the MySQL Server module. Users are advised to update to version 2.41.7 or later to mitigate risks associated with this vulnerability. Additionally, utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for github.com/bettercap/bettercap/v2 →
FAQ
CVE-2026-8276 is a vulnerability in bettercap that involves an integer coercion error in the MySQL Server module, which can be exploited remotely.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Exploitation of this vulnerability could lead to unexpected behavior in the MySQL Server module, potentially allowing attackers to manipulate data or cause service disruptions.
Yes, the vulnerability has been patched in version 2.41.7 of bettercap. It is recommended to update to this version or later.
The CVSS score of this vulnerability is 3.7, indicating a low severity level but still warranting prompt attention.
References
Related vulnerabilities
Recent vulnerabilities recorded for github.com/bettercap/bettercap/v2.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.