CVE-2022-36078: Binary provides encoding/decoding in Borsh and other formats
CVE-2022-36078 is a high-severity flaw (CVSS 8.8) affecting binary. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Binary provides encoding/decoding in Borsh and other formats. The vulnerability is a memory allocation vulnerability that can be exploited to allocate slices in memory with (arbitrary) excessive size value, which can either exhaust available memory or crash the whole program. When using `github.com/gagliardetto/binary` to parse unchecked (or wrong type of) data from untrusted sources of input (e.g. the blockchain) into slices, it's possible to al
Why this priority
- High severity
- Public exploit reference
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-36078?
binary: upgrade to 0.7.1. Exact commands for each OS are on this page.
Is CVE-2022-36078 being exploited?
CVE-2022-36078 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-36078 affect?
CVE-2022-36078 affects binary. Severity is high (CVSS 8.8). Binary provides encoding/decoding in Borsh and other formats. The vulnerability is a memory allocation vulnerability that can be exploited to allocate slices in memory with (arbitrary) excessive size value, which can either exhaust availabl
How urgent is CVE-2022-36078?
Priority 53/100. High severity; Public exploit reference