CVE-2022-24788
HIGH7.1EPSS 0.33%Buffer Overflow in vyper
Published: 4/20/2022Modified: 11/19/2024
Description
### Impact Importing a function from a JSON interface which returns `bytes` generates bytecode which does not clamp bytes length, potentially resulting in a buffer overrun. ### Patches 0.3.2 (as of https://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b) ### Workarounds Use .vy interfaces.
Affected packages (2)
- PyPI/vyperfrom 0, < 0.3.2
- PyPI/vyperfrom 0, < 049dbdc647b2ce838fae7c188e6bb09cf16e470b | from 0, < 0.3.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N |
References (5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-24788
- PATCHhttps://github.com/vyperlang/vyper
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2022-197.yaml
- WEBhttps://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b
- WEBhttps://github.com/vyperlang/vyper/security/advisories/GHSA-4mrx-6fxm-8jpg