{"id":"CVE-2023-23626","published":"2023-02-09T20:54:07Z","modified":"2025-03-10T21:14:05Z","title":"Denial of service when feeding malformed size arguments in go-bitfield","vendor":"ipfs","product":"go-bitfield","tier":"tail","description":{"text":"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`.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00919,"percentile":0.6113,"provenance":"source"},"cwes":[{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"}],"references":[{"url":"https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ipfs/go-bitfield/commit/5e1d256fe043fc4163343ccca83862c69c52e579","tags":["x_refsource_MISC"]}],"priority":{"score":16.4,"factors":[{"name":"EPSS percentile","points":12.23},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"ipfs","affectedVersions":[{"vendor":"ipfs","product":"go-bitfield","versions":["< 1.1.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-10T21:01:02.599125Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/ipfs/go-bitfield","vulnerableRanges":["<1.1.0"],"patched":["1.1.0"],"from":["GHSA-2h6c-j3gf-xp9r","GO-2023-1558"],"provenance":"source"}],"summary":{"text":"The go-bitfield package from ipfs, a Go library for bitfields, fails to validate the size parameter passed to its NewBitfield and FromBytes functions, so a size that is negative or not a multiple of 8 causes a panic. An attacker who can supply the size value over the network, with no authentication or user interaction required, can crash the affected program, though exploiting it requires that the application pass untrusted input into that parameter.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:03Z"},"euvd":{"id":"EUVD-2023-0601","exploited":false,"provenance":"source"}}