{"cve":"CVE-2023-23626","nvd":{"published":"2023-02-09T21:15:11.413","modified":"2026-06-17T05:37:37.003","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-1284","CWE-754"],"references":["https://github.com/ipfs/go-bitfield/commit/5e1d256fe043fc4163343ccca83862c69c52e579","https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r","https://github.com/ipfs/go-bitfield/commit/5e1d256fe043fc4163343ccca83862c69c52e579","https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r"],"products":["protocol:go-bitfield"],"source":"nvd","synced_at":"2026-10-19T21:37:38.595364862+00:00"},"epss":{"cve":"CVE-2023-23626","score":0.0091,"percentile":0.59983,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-2h6c-j3gf-xp9r","url":"https://osv.dev/vulnerability/GHSA-2h6c-j3gf-xp9r","summary":"IPFS go-bitfield vulnerable to DoS via malformed size arguments","modified":"2026-09-10T03:49:51.750951929Z","packages":[{"ecosystem":"Go","name":"github.com/ipfs/go-bitfield","purl":"pkg:golang/github.com/ipfs/go-bitfield","ranges":["<1.1.0"],"fixed":["1.1.0"]}]},{"id":"GO-2023-1558","url":"https://osv.dev/vulnerability/GO-2023-1558","summary":"Denial of service via malformed size parameters in github.com/ipfs/go-bitfield","modified":"2024-05-20T16:03:47Z","packages":[{"ecosystem":"Go","name":"github.com/ipfs/go-bitfield","purl":"pkg:golang/github.com/ipfs/go-bitfield","ranges":["<1.1.0"],"fixed":["1.1.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}