Vulnerability Details : CVE-2022-24788
Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. Versions of vyper prior to 0.3.2 suffer from a potential buffer overrun. Importing a function from a JSON interface which returns `bytes` generates bytecode which does not clamp bytes length, potentially resulting in a buffer overrun. Users are advised to upgrade. There are no known workarounds for this issue.
Vulnerability category: Overflow
Products affected by CVE-2022-24788
- cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-24788
0.15%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 52 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-24788
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | AV:N/AC:L/Au:N/C:P/I:P/A:P |
10.0
|
6.4
|
NIST | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST | |
7.1
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N |
2.8
|
4.2
|
GitHub, Inc. |
CWE ids for CVE-2022-24788
-
The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.Assigned by: nvd@nist.gov (Primary)
-
The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow.Assigned by: security-advisories@github.com (Secondary)
References for CVE-2022-24788
-
https://github.com/vyperlang/vyper/security/advisories/GHSA-4mrx-6fxm-8jpg
No bytes clamps for interfaces imported via JSON · Advisory · vyperlang/vyper · GitHubPatch;Third Party Advisory
-
https://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b
Merge pull request from GHSA-j2x6-9323-fp7h · vyperlang/vyper@049dbdc · GitHubPatch;Third Party Advisory
Jump to