Vyper 0.1.0b1 before 0.1.0b12, 0.1.0b14, and 0.4.1 through 0.5.0b1 mix character-based line offsets with Python's UTF-8 byte col_offset values in vyper/ast/parse.py, so multi-byte characters shift the source slices used to reconstruct later numeric literals. An attacker contributing source with non-ASCII identifiers that NFKC-normalize to ASCII, or an invisible byte-order mark, can silently substitute addresses, integers or other constants in compiled code.
Attack Parameters
Impact Assessment
CVSS Vector v4.0
Weakness Type (CWE)
Vulnerable Products 3
| Configuration | From (including) | Up to (excluding) |
|---|---|---|
|
Vyperlang Vyper
cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:*:*:*
|
0.1.0b1
|
0.1.0b12
|
|
Vyperlang Vyper
cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:*:*:*
|
0.1.0b14
|
0.1.0b15
|
|
Vyperlang Vyper
cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:*:*:*
|
0.4.1
|
<= 0.5.0b1
|