{"id":"CVE-2022-2584","aliases":["CVE-2022-2584","GHSA-967g-cjx4-h7j6","GHSA-g3vv-g2j5-45f2","GO-2022-0422"],"related":[],"kind":"vulnerability","state":"published","title":"Panic when decoding invalid blocks in github.com/ipld/go-codec-dagpb","summary":"The dag-pb codec can panic when decoding invalid blocks.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The dag-pb codec can panic when decoding invalid blocks.","source":"cvelist"},{"lang":"en","text":"## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-g3vv-g2j5-45f2. This link is maintained to preserve external references.\n\n## Original Description\ngo-codec-dagpb is an implementation of the DAG-PB spec for Go. The dag-pb codec can panic when decoding invalid blocks. This issue has been patched in version 1.3.1.","format":"markdown","source":"ghsa"},{"lang":"en","text":"### Impact \nDecoding certain blocks using the go-ipld-prime version of the dag-pb codec (go-codec-dagpb) can cause a panic.  The panic comes from an assumption that the reported link length is accurate, but if the block ends before that reported length then it’s a buffer overread.\n\n### Patches\nThe issue is fixed in v1.3.1 and above.\n\nConsumers can discover the versions of `go-codec-dagpb` in a module's dependency graph using the following command in the module root:\n\n```go mod graph | grep go-codec-dagpb```\n\n### Workarounds\nYou can work around this issue without upgrading by recovering panics higher in the call stack of the goroutine that calls the defective code.\n\n### For more information\nIf you have any questions or comments about this advisory:\n\n* Ask in [IPFS Discord #ipld-chatter](https://discord.gg/ipfs)\n* Open an issue in [go-codec-dagpb](https://github.com/ipld/go-codec-dagpb)","format":"markdown","source":"ghsa"},{"lang":"es","text":"El códec dag-pb puede entrar en pánico al decodificar bloques no válidos.","source":"nvd"}],"published":"2022-04-08T22:08:45.000Z","modified":"2026-06-17T04:42:09.723Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS: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,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H","score":7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"HIGH"}],"cwes":["CWE-119"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.3.1","status":"affected"}],"vendor":"github.com/ipld/go-codec-dagpb","product":"github.com/ipld/go-codec-dagpb","package":"github.com/ipld/go-codec-dagpb","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.3.1"}],"ecosystem":"Go","package":"github.com/ipld/go-codec-dagpb","purl":"pkg:golang/github.com/ipld/go-codec-dagpb","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.3.1"}],"ecosystem":"Go","package":"github.com/ipld/go-codec-dagpb","purl":"pkg:golang/github.com/ipld/go-codec-dagpb","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.3.1"}],"ecosystem":"Go","package":"github.com/ipld/go-codec-dagpb","purl":"pkg:golang/github.com/ipld/go-codec-dagpb","source":"go"},{"ranges":[{"status":"affected","fixed":"1.3.1"}],"vendor":"protocol","product":"go-codec-dagpb","cpe":"cpe:2.3:a:protocol:go-codec-dagpb:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ipld/go-codec-dagpb/commit/a17ace35cc760a2698645c09868f9050fa219f57","tags":["fix","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0422","tags":["patch","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2584","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ipld/go-codec-dagpb/security/advisories/GHSA-g3vv-g2j5-45f2","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"Go","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-11T16:41:04.244Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-2584","url":"https://www.cve.org/CVERecord?id=CVE-2022-2584","licence":"CVE Terms of Use","modified":"2025-04-11T16:41:55.240Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-967g-cjx4-h7j6","url":"https://github.com/advisories/GHSA-967g-cjx4-h7j6","licence":"CC-BY-4.0","modified":"2026-02-03T03:08:19.655Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g3vv-g2j5-45f2","url":"https://github.com/advisories/GHSA-g3vv-g2j5-45f2","licence":"CC-BY-4.0","modified":"2026-02-03T03:08:22.859Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0422","url":"https://pkg.go.dev/vuln/GO-2022-0422","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-2584","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2584","licence":"Public domain","modified":"2026-06-17T04:42:09.723Z"}],"updatedAt":"2026-11-25T22:58:17.905Z","epss":{"score":0.00771,"percentile":0.56859,"date":"2026-12-01T12:00:22.000Z"}}