GO-2023-1558
Dashboard / Vulnerabilities / GO-2023-1558
GO-2023-1558
Published: 14 Feb 2023Last Modified: 20 May 2024
Aliases:
Summary: Denial of service via malformed size parameters in github.com/ipfs/go-bitfield
Details: When feeding untrusted user input into the size parameter of NewBitfield and FromBytes functions, an attacker can trigger panics. This happens when the size is a not a multiple of 8 or is negative. A workaround is to ensure size%8 == 0 && size >= 0 yourself before calling NewBitfield or FromBytes.
References: https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r, https://github.com/ipfs/go-bitfield/commit/5e1d256fe043fc4163343ccca83862c69c52e579
Affected packages
Package
Name: github.com/ipfs/go-bitfield
Purl: pkg:golang/github.com/ipfs/go-bitfield
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -1.1.0
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
