Skip to main content
← All vulnerabilities
CVE-2023-23626GHSA-2H6C-J3GF-XP9RGO-2023-1558

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.1.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • ipfs go-bitfield

    fixed in 1.1.0

  • github.com/ipfs/go-bitfieldGo

    fixed in 1.1.0

References 2

GitHub · ipfs/go-bitfield