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
nvd · CVE-2023-23626
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Modified
Weakness classifications: CWE-754 · CWE-1284
Original publisher date fields
published: 2023-02-09T21:15:11.413
lastModified: 2026-06-17T05:37:37.003
1 source CPE criteria · context only
- cpe:2.3:a:protocol:go-bitfield:*:*:*:*:*:go:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON