blob: 95dfd49ce309eb3c65c3efebf51a88490b740c4a [file] [log] [blame]
{
"id": "GO-2023-1558",
"published": "0001-01-01T00:00:00Z",
"modified": "0001-01-01T00:00:00Z",
"aliases": [
"CVE-2023-23626",
"GHSA-2h6c-j3gf-xp9r"
],
"details": "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 \u0026\u0026 size \u003e= 0 yourself before calling NewBitfield or FromBytes.",
"affected": [
{
"package": {
"name": "github.com/ipfs/go-bitfield",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.0"
}
]
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2023-1558"
},
"ecosystem_specific": {
"imports": [
{
"path": "github.com/ipfs/go-bitfield",
"symbols": [
"FromBytes",
"NewBitfield"
]
}
]
}
}
],
"references": [
{
"type": "ADVISORY",
"url": "https://github.com/ipfs/go-bitfield/security/advisories/GHSA-2h6c-j3gf-xp9r"
},
{
"type": "FIX",
"url": "https://github.com/ipfs/go-bitfield/commit/5e1d256fe043fc4163343ccca83862c69c52e579"
}
],
"credits": [
{
"name": "Jorropo"
}
],
"schema_version": "1.3.1"
}