# CVE-2023-23626: Denial of service when feeding malformed size arguments in go-bitfield

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-02-09 · Modified: 2025-03-10
- Aliases: GHSA-2h6c-j3gf-xp9r, GO-2023-1558
- Record: https://cvemate.com/vulnerability/CVE-2023-23626 · JSON: https://cvemate.com/vulnerability/CVE-2023-23626/json

## Description

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

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.919%, percentile 61.479%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- github.com/ipfs go-bitfield (Go): \< 1.1.0
- ipfs go-bitfield: \< 1.1.0
- protocol go-bitfield: \< 1.1.0

## References

- <https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r>
- <https://github.com/ipfs/go-bitfield/commit/5e1d256fe043fc4163343ccca83862c69c52e579>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-23626>
- <https://github.com/ipfs/go-bitfield>
- <https://pkg.go.dev/vuln/GO-2023-1558>

---

Data as of 2026-12-05T06:48:55.317Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
