Live threats

All CVEs / Protocol

CVE-2023-23626Protocol Go-bitfield

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.0%
probability of exploitation in 30 days · percentile 61
Auth required
No
Published
Feb 9, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-754, CWE-1284
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Go-bitfield.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/ipfs/go-bitfield < 1.1.0 1.1.0 go get github.com/ipfs/go-bitfield@v1.1.0
Go github.com/ipfs/go-bitfield < 1.1.0 1.1.0 go get github.com/ipfs/go-bitfield@v1.1.0

Per OSV / GitHub Advisories (GHSA-2h6c-j3gf-xp9r, GO-2023-1558). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
protocolgo-bitfield< 1.1.0

Official sources

References

Links published by the sources. Open them with care.