Denial of service when feeding malformed size arguments in go-bitfield
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
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`.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ipfs | go-bitfield | before 1.1.0 | 1.1.0 | Patch available | CNA |
| — | github.com/ipfs/go-bitfield (Go) | before 1.1.0 | 1.1.0 | Patch available | GHSA-2h6c-j3gf-xp9r |
- go-bitfield Vendoripfs Affected before 1.1.0 Fixed in 1.1.0 Patch available CNA
- github.com/ipfs/go-bitfield (Go) Vendor— Affected before 1.1.0 Fixed in 1.1.0 Patch available GHSA-2h6c-j3gf-xp9r
Remediation
- Fix · CNA go-bitfield (ipfs) Fixed in 1.1.0
- Fix · GHSA-2h6c-j3gf-xp9r github.com/ipfs/go-bitfield (Go) Fixed in 1.1.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-23626
- 2026-10-03 Alias added: GHSA-2h6c-j3gf-xp9r
References
More ipfs vulnerabilities
- TI-2023-10871 Boxo bitswap/server: DOS unbounded persistent memory leak CVSS 3.1HIGH 8.2
- TI-2020-08933 Exposure of Sensitive Information to an Unauthorized Actor in AEgir CVSS 3.1CRITICAL 9.6
- TI-2022-07554 ProtoNode may be modified such that common method calls may panic in ipfs/go-merkledag CVSS 3.1HIGH 7.5
- TI-2020-16104 Control character injection in console output CVSS 3.1HIGH 8.8
- TI-2020-16100 Path traversal in ipfs go-ipfs CVSS 3.1HIGH 8.1
- TI-2016-08604 Cryptographic flaw in HackerOne go-ipfs-dep node module CVSS 3.0HIGH 8.1
Sources
- CVE-2023-23626 · CVE Program
- CVE-2023-23626 · NVD
- FIRST EPSS
- GHSA-2h6c-j3gf-xp9r · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences