go-bitfield is a simple bitfield package for the go language aiming to be more performant that the standard…
Historical advisory recorded 24 Oct 2026 21:17:28 UTC. Read the latest advisory.
nvd · CVE-2023-23626
Publishedgo-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`.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2023-23626 · CVE overview and exploitation status
nvd · CVE-2023-23626
This historical advisory does not include today's related changes. Open the latest advisory to find current connections.