Vulnerability Report: GO-2023-1558
- CVE-2023-23626, GHSA-2h6c-j3gf-xp9r
- Affects: github.com/ipfs/go-bitfield
- Published: Feb 14, 2023
- Modified: May 20, 2024
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.
For detailed information about this vulnerability, visit https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r.
Affected Packages
-
PathGo VersionsSymbols
-
before v1.1.0
Aliases
References
- https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r
- https://github.com/ipfs/go-bitfield/commit/5e1d256fe043fc4163343ccca83862c69c52e579
- https://vuln.go.dev/ID/GO-2023-1558.json
Credits
- Jorropo
Feedback
See anything missing or incorrect?
Suggest an edit to this report.