CVE-2023-23626: Denial of service when feeding malformed size arguments in go-bitfield
Vulnerability summary
CVE-2023-23626 is a high (CVSS 7.5) vulnerability in ipfs go-bitfield. EPSS estimates a 0.92% chance of exploitation in the next 30 days, higher than 61.4% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 09-02-2023PublishedVulnerability first disclosed.
- 10-03-2025Last modifiedVulnerability information updated.
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`.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · GoEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
0.92%
Chance of exploitation in the next 30 days
Percentile
61%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.91% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundGo Bitfield
Maturity: poc
Weaknesses
CWE · root cause- CWE-754Improper Check for Unusual or Exceptional ConditionsThe product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.
- CWE-1284Improper Validation of Specified Quantity in InputThe product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Github.com/ipfs1 product
- go-bitfield< 1.1.0
Ipfs1 product
- go-bitfield< 1.1.0
Protocol1 product
- go-bitfield< 1.1.0
3 vendors · 3 products
References
5 links- github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9rX Refsource CONFIRMWEBAdvisoryExploitPatchVendor Advisory
- github.com/ipfs/go-bitfield/commit/5e1d256fe043fc4163343ccca83862c69c52e579X Refsource MISCWEBFIXPatch
- github.com/ipfs/go-bitfieldPACKAGE