CVE-2023-23626

HIGH
Published Feb 9, 20233y ago · Modified Jun 17, 20262w ago
7.5 CVSS 3.1
High
Find Similar
Published Feb 9, 2023 3y ago
Last Modified Jun 17, 2026 2w ago

Description

go-bitfield is a simple bitfield package for the go language aiming to be more performant that the standard library. When feeding untrusted user input into the size parameter of `NewBitfield` and `FromBytes` functions, an attacker can trigger `panic`s. This happen when the `size` is a not a multiple of `8` or is negative. There were already a note in the `NewBitfield` documentation, however known users of this package are subject to this issue. Users are advised to upgrade. Users unable to upgrade should ensure that `size` is a multiple of 8 before calling `NewBitfield` or `FromBytes`.

CVSS Details

Base Score
7.5
Exploitability
3.9
Impact
3.6
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality None
Integrity None
Availability High

Threat Intelligence

No active exploitation signals — not in CISA KEV and no EPSS score yet.

Exploit & Patch Status
Public Exploit Known
Patch Available

Weaknesses 2

CWE-1284
CWE-754

Affected Products 1

VendorProductVersionRange
protocolgo-bitfield* <1.1.0

References 2

  • github.com https://github.com/ipfs/go-bitfield/commit/5e1d256fe043fc4163343ccca83862c69c52e579
    Patch
  • github.com https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r
    ExploitPatchVendor Advisory

Remediation

  • github.com https://github.com/ipfs/go-bitfield/commit/5e1d256fe043fc4163343ccca83862c69c52e579
    Patch
  • github.com https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r
    ExploitPatchVendor Advisory