CVE-2022-24787 Details
Description
Vyper is a Pythonic Smart Contract Language for the Ethereum Virtual Machine. In version 0.3.1 and prior, bytestrings can have dirty bytes in them, resulting in the word-for-word comparisons giving incorrect results. Even without dirty nonzero bytes, two bytestrings can compare to equal if one ends with `"\x00"` because there is no comparison of the length. A patch is available and expected to be part of the 0.3.2 release. There are currently no known workarounds.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 23, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/vyperlang/vyper/commit/2c73f8352635c0a433423a5b94740de1a118e508 | CVE | PatchThird Party Advisory |
| https://github.com/vyperlang/vyper/security/advisories/GHSA-7vrm-3jc8-5wwm | CVE | PatchThird Party Advisory |
| https://github.com/vyperlang/vyper/commit/2c73f8352635c0a433423a5b94740de1a118e508 | [email protected] | PatchThird Party Advisory |
| https://github.com/vyperlang/vyper/security/advisories/GHSA-7vrm-3jc8-5wwm | [email protected] | PatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-697 | Incorrect Comparison | [email protected] |
| CWE-697 | Incorrect Comparison | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vyperlang vyper | <= 0.3.1 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Aug 2, 2023 | CPE Deprecation Remap | [email protected] |
| Apr 11, 2022 | Initial Analysis | [email protected] |