CVE-2026-8276: Github.com/bettercap/bettercap/v2 Bettercap Has An Integer Coercion Vulnerability
LOWCVE-2026-8276 is a LOW (CVSS 3.7) bettercap has an integer coercion vulnerability (CWE-192: Integer Coercion Error) affecting Github.com/bettercap/bettercap/v2 libraries in the Go ecosystem. The issue involves bettercap has an integer coercion error in modules/mysql_server/mysql_server.go. Remediation is available by upgrading affected packages to version 2.41.7.
CVE-2026-8276 at a Glance
Security Impact
CVSS: 3.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2026-8276
To remediate this vulnerability, upgrade all affected Github.com/bettercap/bettercap/v2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/bettercap/bettercap/v2 to 2.41.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/bettercap/bettercap/v2
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-8276, inspect your project dependencies for Github.com/bettercap/bettercap/v2:
inspect dependencies for github.com/bettercap/bettercap/v2
Analyze the terminal output to locate any version of Github.com/bettercap/bettercap/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.41.7), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-192: Integer Coercion Error, where integer coercion refers to a set of flaws pertaining to the type casting, extension, or truncation of primitive data types. In Github.com/bettercap/bettercap/v2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-8276 Affected Github.com/bettercap/bettercap/v2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/bettercap/bettercap/v2
|
Go |
< 2.41.7
|
2.41.7
|
References
Frequently Asked Questions
What is CVE-2026-8276?
Which Github.com/bettercap/bettercap/v2 versions are affected?
What version fixes CVE-2026-8276?
Is github.com/bettercap/bettercap/v2 affected?
What is the CVSS score of CVE-2026-8276?
What CWE is associated with CVE-2026-8276?
How can I check Go dependencies for CVE-2026-8276?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jcqv-2g3v-gm88",
"modified" : "2026-05-14T21:15:09Z",
"published" : "2026-05-11T06:31:33Z",
"aliases" : [ "CVE-2026-8276" ],
"summary" : "bettercap Has an Integer Coercion Error in modules/mysql_server/mysql_server.go",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/bettercap/bettercap/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.41.7"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-8276"
}, {
"type" : "WEB",
"url" : "https://github.com/bettercap/bettercap/issues/1265"
}, {
"type" : "WEB",
"url" : "https://github.com/bettercap/bettercap/issues/1265#issue-4287957382"
}, {
"type" : "WEB",
"url" : "https://github.com/bettercap/bettercap/pull/1266"
}, {
"type" : "WEB",
"url" : "https://github.com/bettercap/bettercap/commit/0eaa375c5e5446bfba94a290eff92967a5deac9e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/bettercap/bettercap"
}, {
"type" : "WEB",
"url" : "https://github.com/bettercap/bettercap/releases/tag/v2.41.7"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/submit/811163"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/vuln/362573"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/vuln/362573/cti"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-192" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-14T21:15:09Z",
"nvd_published_at" : "2026-05-11T06:16:10Z"
}
}