1. Home
  2. Vulnerabilities
  3. CVE-2023-23626

CVE-2023-23626

go-bitfield is a simple bitfield package for the go language aiming to be more performant that the standard…

Published 9 Feb 2023 · modified 17 Jun 2026 · Sources: NVD, EPSS (FIRST)

Medium 53/100

Summary

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

Affected products and versions

Protocol (1 line(s))
Protocol
ProductVersionsFixed inSource
Go-bitfield before 1.1.0 (excluded) — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

Exploit reported by sources

These links are tagged “exploit” by the NVD or CVE.org. We have neither verified nor copied them; open with care.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
NVD
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Weakness
CWE-1284 · Autre (CWE-1284)

How this data is obtained and calculated