CVE-2023-23626 json
Denial of service when feeding malformed size arguments in go-bitfield
published 2023-02-09 3 y ago modified 2026-09-10 1 mo ago also GHSA-2h6c-j3gf-xp9r , GO-2023-1558 , EUVD-2023-0601
- cvss
- 5.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 60%
- public exploits
- 0
- none known
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`.
Patch / fix
- go github.com/ipfs/go-bitfield 1.1.0
- protocol go-bitfield 1.1.0
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 19 mo ago
Exploit prediction
0.91% chance of exploitation in the next 30 days, higher than 60% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/ipfs/go-bitfield | <1.1.0 |
1.1.0 |
Affected products
- ipfs go-bitfield
Classification
References
-
github.com
/ipfs/go-bitfield/commit/5e1d256fe043fc4163343ccca83862c69c52e579
web, patch
-
github.com
/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r
web, exploit, patch, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-23626
advisory
-
github.com
/ipfs/go-bitfield
package
-
pkg.go.dev
/vuln/GO-2023-1558
web
Sources
- CVE List CVE-2023-23626
- GitHub Advisory GHSA-2h6c-j3gf-xp9r
- NVD CVE-2023-23626
- OSV GO-2023-1558
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.