CVE-2026-8276: Github.com/bettercap/bettercap/v2 Bettercap Has An Integer Coercion Vulnerability

LOW
Advisory Identifier: GHSA-jcqv-2g3v-gm88
CVSS 3.7
CWE-192
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-8276
GHSA Identifier GHSA-jcqv-2g3v-gm88
Severity LOW
CVSS v3.1 Base Score 3.7
CWE Classification CWE-192: Integer Coercion Error
Affected Product Github.com/bettercap/bettercap/v2
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (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.

github.com/bettercap/bettercap/v2 fixed: 2.41.7
Upgrade github.com/bettercap/bettercap/v2 to 2.41.7
Verify Direct and Transitive Dependencies

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

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.

CVE-2026-8276 Affected Github.com/bettercap/bettercap/v2 Versions

1 component(s)
Fixed Versions:
2.41.7
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?
CVE-2026-8276 is a security vulnerability in Github.com/bettercap/bettercap/v2 involving bettercap Has an Integer Coercion Error in modules/mysql_server/mysql_server.go under CWE-192: Integer Coercion Error.
Which Github.com/bettercap/bettercap/v2 versions are affected?
Affected versions include releases prior to 2.41.7 across affected packages: github.com/bettercap/bettercap/v2.
What version fixes CVE-2026-8276?
Upgrading to 2.41.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/bettercap/bettercap/v2 affected?
Yes, github.com/bettercap/bettercap/v2 is affected in releases prior to 2.41.7. Upgrade your dependency to 2.41.7 or later.
What is the CVSS score of CVE-2026-8276?
CVE-2026-8276 has a CVSS v3.1 base score of 3.7 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2026-8276?
CVE-2026-8276 is classified under CWE-192: Integer Coercion Error (Integer coercion refers to a set of flaws pertaining to the type casting, extension, or truncation of primitive data types.).
How can I check Go dependencies for CVE-2026-8276?
Run the dependency tree command: 'inspect dependencies for github.com/bettercap/bettercap/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}