CVE-2022-2584
Go vulnerability
### Impact Decoding 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. ### Patches The issue is fixed in v1.3.1 and above. Consumers can discover the versions of `go-codec-dagpb` in a module's dependency graph using the following command in the module root: ```go mod graph | grep go-codec-dagpb``` ### Workarounds You can work around this issue without upgrading by recovering panics higher in the call stack of the goroutine that calls the defective code. ### For more information If you have any questions or comments about this advisory: * Ask in [IPFS Discord #ipld-chatter](https://discord.gg/ipfs) * Open an issue in [go-codec-dagpb](https://github.com/ipld/go-codec-dagpb)
Affected products
Go. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Go runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ipld/go-codec-dagpb/security/advisories/GHSA-g3vv-g2j5-45f2
- github.com/ipld/go-codec-dagpb/commit/a17ace35cc760a2698645c09868f9050fa219f57
- pkg.go.dev/vuln/GO-2022-0422
- nvd.nist.gov/vuln/detail/CVE-2022-2584
- github.com/advisories/GHSA-g3vv-g2j5-45f2
- nvd.nist.gov/vuln/detail/CVE-2022-2584
- cve.org/CVERecord?id=CVE-2022-2584
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.