CVE-2023-23626: ipfs go-bitfield
Vulnerability summary
CVE-2023-23626 is a high (CVSS 7.5) vulnerability in ipfs go-bitfield. EPSS estimates a 0.91% chance of exploitation in the next 30 days, higher than 59.3% of scored vulnerabilities. 1 public exploit is recorded.
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.91%
Chance of exploitation in the next 30 days
Percentile
59%
Versus all other CVEs
30-day change
0.00 pp
From 0.91% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
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
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