{"id":"GO-2023-1558","revision":"130c6259649b472198b97de261b9356a","records":[{"revision":"130c6259649b472198b97de261b9356a","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2023-1558","aliases":["CVE-2023-23626","GHSA-2h6c-j3gf-xp9r"],"title":"Denial of service via malformed size parameters in github.com/ipfs/go-bitfield","description":"When feeding untrusted user input into the size parameter of NewBitfield and FromBytes functions, an attacker can trigger panics.\n\nThis happens when the size is a not a multiple of 8 or is negative.\n\nA workaround is to ensure size%8 == 0 && size >= 0 yourself before calling NewBitfield or FromBytes.","state":0,"publishedAt":"2023-02-14T19:41:21+00:00","modifiedAt":"2024-05-20T16:03:47+00:00","affected":[{"ecosystem":"Go","name":"github.com/ipfs/go-bitfield","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.1.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r","https://github.com/ipfs/go-bitfield/commit/5e1d256fe043fc4163343ccca83862c69c52e579"],"sourceUrl":"https://osv.dev/vulnerability/GO-2023-1558","license":"OSV · upstream source license applies","key":"osv:GO-2023-1558","identifiers":["GO-2023-1558","CVE-2023-23626","GHSA-2h6c-j3gf-xp9r"]},"retained":false,"historicalAffected":[]}],"coverage":[]}