CVE-2023-23626CWE-754

Denial of service when feeding malformed size arguments in go-bitfield

Medium · published February 9, 2023

CVSS v3.1
5.9
EPSS
1%
Percentile
59.6
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
5.9 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00910 · 59.6th percentile
Weakness
CWE-754 · Improper Check for Unusual or Exceptional Conditions
Published
2023-02-09T20:54Z
EPSS history
Timeline
  • 09 FEB 20:54Z
    Denial of service when feeding malformed size arguments in go-bitfield
    cvelistv5