CVE-2022-36078
Google Bard Binary Large Array Allocate Overwrite
Description
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 allocate memory with excessive size. When `dec.Decode(&val)` method is used to parse data into a structure that is or contains slices of values, the length of the slice was previously read directly from the data itself without any checks on the size of it, and then a slice was allocated. This could lead to an overflow and an allocation of memory with excessive size value. Users should upgrade to `v0.7.1` or higher. A workaround is not to rely on the `dec.Decode(&val)` function to parse the data, but to use a custom `UnmarshalWithDecoder()` method that reads and checks the length of any slice.
INFO
Published Date :
Sept. 2, 2022, 1:15 p.m.
Last Modified :
Nov. 21, 2024, 7:12 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
2.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-36078
.
URL | Resource |
---|---|
https://github.com/gagliardetto/binary/pull/7 | Issue Tracking Patch Third Party Advisory |
https://github.com/gagliardetto/binary/releases/tag/v0.7.1 | Release Notes Third Party Advisory |
https://github.com/gagliardetto/binary/security/advisories/GHSA-4p6f-m4f9-ch88 | Exploit Mitigation Third Party Advisory |
https://github.com/gagliardetto/binary/pull/7 | Issue Tracking Patch Third Party Advisory |
https://github.com/gagliardetto/binary/releases/tag/v0.7.1 | Release Notes Third Party Advisory |
https://github.com/gagliardetto/binary/security/advisories/GHSA-4p6f-m4f9-ch88 | Exploit Mitigation Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-36078
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-36078
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/gagliardetto/binary/pull/7 Added Reference https://github.com/gagliardetto/binary/releases/tag/v0.7.1 Added Reference https://github.com/gagliardetto/binary/security/advisories/GHSA-4p6f-m4f9-ch88 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Reanalysis by [email protected]
Jul. 21, 2023
Action Type Old Value New Value Removed CWE NIST CWE-400 Added CWE NIST CWE-1284 -
Initial Analysis by [email protected]
Sep. 09, 2022
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Changed Reference Type https://github.com/gagliardetto/binary/pull/7 No Types Assigned https://github.com/gagliardetto/binary/pull/7 Issue Tracking, Patch, Third Party Advisory Changed Reference Type https://github.com/gagliardetto/binary/releases/tag/v0.7.1 No Types Assigned https://github.com/gagliardetto/binary/releases/tag/v0.7.1 Release Notes, Third Party Advisory Changed Reference Type https://github.com/gagliardetto/binary/security/advisories/GHSA-4p6f-m4f9-ch88 No Types Assigned https://github.com/gagliardetto/binary/security/advisories/GHSA-4p6f-m4f9-ch88 Exploit, Mitigation, Third Party Advisory Added CWE NIST CWE-400 Added CPE Configuration OR *cpe:2.3:a:binary_project:binary:*:*:*:*:*:go:*:* versions up to (excluding) 0.7.1
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-36078
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-36078
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.09 }} 0.01%
score
0.27348
percentile