CVE-2023-23626
HIGH 7.5CVSS 3.1IPFS go-bitfield vulnerable to DoS via malformed size arguments
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 panics. 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.
- Published
- 9 Feb 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-1284CWE-754
- Also known as
- GHSA-2h6c-j3gf-xp9rGO-2023-1558
- Sources
- NVDJSONOSV GHSA-2h6c-j3gf-xp9rJSONOSV GO-2023-1558JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | protocol | go-bitfieldcpe:2.3:a:protocol:go-bitfield:*:*:*:*:*:go:*:* |
< 1.1.0 | 1.1.0 |
| OSV | Go | github.com/ipfs/go-bitfield | < 1.1.0 | 1.1.0 |
References
- https://github.com/ipfs/go-bitfield/commit/5e1d256fe043fc4163343ccca83862c69c52e579 · Patch, WEB, FIX
- https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r · Exploit, Patch, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2023-23626 · ADVISORY
- https://github.com/ipfs/go-bitfield · PACKAGE
- https://pkg.go.dev/vuln/GO-2023-1558 · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 9 Feb 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Feb 2023)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 10 Feb 2023)