CVE-2023-23626
published medium CVSS 3.1 · 5.9Denial of service when feeding malformed size arguments in go-bitfield
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ipfs | — | go-bitfield< 1.1.0 | Affected | Not stated | GitHub_M |
Description
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`.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ipfs | go-bitfield | < 1.1.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-754 CWE-754: Improper Check for Unusual or Exceptional Conditions
References
2Provider assertions
3GitHub_M · cna
Denial of service when feeding malformed size arguments in go-bitfield
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 759a4306445af918a62655c4b495971f7c3921b99fa379e6bf6bb2021495e4c9
- Ingested
- 23 Sep 2026, 08:06:24 UTC
- Source record
- Official CVE record