Vyper 0.4.0b1以降で変数名の衝突により計算結果が狂う不具合
Summary
Vyper 0.4.0b1から0.5.0b1までのコンパイラでは、インポートした定数や省略された既定引数の名前が呼び出し側の変数と衝突すると、意図しない値に置き換わることがあります。uint8などの狭い型で範囲外の値が入り、検証や会計処理が誤作動するおそれがあります。最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Vyper 0.4.0b1から0.5.0b1までのコンパイラでは、インポートした定数や省略された既定引数の名前が呼び出し側の変数と衝突すると、意図しない値に置き換わることがあります。uint8などの狭い型で範囲外の値が入り、検証や会計処理が誤作動するおそれがあります。最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| vyperlangvyper |
0.4.0b1 – 0.5.0b1→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
Vyper 0.4.0b1 through 0.5.0b1 miscompiles unfoldable constants and omitted default arguments from imported modules, because parse_Name resolves their names in the using function's scope rather than at declaration. When a contract's parameter, local, or loop variable shares such a name, attacker-influenced input can replace the intended value, including out-of-range values for narrow types such as uint8, corrupting validation or accounting logic.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- REDHAT Red Hat
- web github.com