CVE-2023-23626Protocol Go-bitfield
High 7.5 No auth needed
Follow: this CVE · Protocol · Protocol Go-bitfield We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 61
- Auth required
- No
- Published
- Feb 9, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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`.
What to do
- Apply the vendor's security update for Go-bitfield.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/ipfs/go-bitfield |
< 1.1.0 |
1.1.0 |
go get github.com/ipfs/go-bitfield@v1.1.0 |
| Go | github.com/ipfs/go-bitfield |
< 1.1.0 |
1.1.0 |
go get github.com/ipfs/go-bitfield@v1.1.0 |
Per OSV / GitHub Advisories (GHSA-2h6c-j3gf-xp9r, GO-2023-1558). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| protocol | go-bitfield | < 1.1.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Patch Vendor Advisory