cve.bz

CVE-2023-23626

7.5 highEPSS 0.9%

High (7.5) in protocol go-bitfield. EPSS 0.9% chance of exploitation in the next 30 days. Fixed in github.com/ipfs/go-bitfield 1.1.0.

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

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.9% chance of exploitation in the next 30 days; higher than 59% of CVEs (scores of 2026-10-31)
CWEs
CWE-1284, CWE-754
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2h6c-j3gf-xp9rGogithub.com/ipfs/go-bitfield<1.1.01.1.0
GO-2023-1558Gogithub.com/ipfs/go-bitfield<1.1.01.1.0

References

Check your stackJSON