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

LOW
Advisory Identifier: GHSA-322p-rrj6-j44g
CVSS 3.7
CWE-190 CWE-192
Published
Advisory Summary

CVE-2026-8275 is a LOW (CVSS 3.7) bettercap has an integer coercion vulnerability (CWE-190: Integer Overflow or Wraparound) affecting Github.com/bettercap/bettercap/v2 libraries in the Go ecosystem. The issue involves bettercap has an integer coercion error in the ippreadchunkedbody function. Remediation is available by upgrading affected packages to version 2.41.7.

CVE-2026-8275 at a Glance

CVE Identifier CVE-2026-8275
GHSA Identifier GHSA-322p-rrj6-j44g
Severity LOW
CVSS v3.1 Base Score 3.7
CWE Classification CWE-190: Integer Overflow or Wraparound
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-8275

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-8275, 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-190: Integer Overflow or Wraparound, where the product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. this occurs when an integer value is incremented to a value that is too large to store in the associated representation. when this occurs, the value may become a very small or negative number. 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 vulnerability was detected in bettercap up to 2.41.5. Affected by this vulnerability is the function ippReadChunkedBody of the file modules/zerogod/zerogod_ipp_primitives.go of the component zerogod IPP Service. Performing a manipulation results in integer coercion error. The attack can be initiated remotely. The attack is considered to have high complexity. The exploitation appears to be difficult. The exploit is now public and may be used. The patch is named 3731d5576cffae9eefe3721cd46a40933304129f. To fix this issue, it is recommended to deploy a patch.

CVE-2026-8275 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-8275?
CVE-2026-8275 is a security vulnerability in Github.com/bettercap/bettercap/v2 involving bettercap Has an Integer Coercion Error in the ippReadChunkedBody Function under CWE-190: Integer Overflow or Wraparound.
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-8275?
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-8275?
CVE-2026-8275 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-8275?
CVE-2026-8275 is classified under CWE-190: Integer Overflow or Wraparound (The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.).
How can I check Go dependencies for CVE-2026-8275?
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-322p-rrj6-j44g",
  "modified" : "2026-05-14T21:14:54Z",
  "published" : "2026-05-11T06:31:33Z",
  "aliases" : [ "CVE-2026-8275" ],
  "summary" : "bettercap Has an Integer Coercion Error in the ippReadChunkedBody Function",
  "details" : "A vulnerability was detected in bettercap up to 2.41.5. Affected by this vulnerability is the function ippReadChunkedBody of the file modules/zerogod/zerogod_ipp_primitives.go of the component zerogod IPP Service. Performing a manipulation results in integer coercion error. The attack can be initiated remotely. The attack is considered to have high complexity. The exploitation appears to be difficult. The exploit is now public and may be used. The patch is named 3731d5576cffae9eefe3721cd46a40933304129f. To fix this issue, it is recommended to deploy a patch.",
  "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-8275"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bettercap/bettercap/issues/1263"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bettercap/bettercap/pull/1264"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bettercap/bettercap/commit/3731d5576cffae9eefe3721cd46a40933304129f"
  }, {
    "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://github.com/user-attachments/files/26852847/poc.py"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/submit/811145"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/362572"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/362572/cti"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-190", "CWE-192" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-14T21:14:53Z",
    "nvd_published_at" : "2026-05-11T06:16:09Z"
  }
}