vyper@0.4.1b3 vulnerabilities

Vyper: the Pythonic Programming Language for the EVM

  • latest version

    0.4.0

  • first published

    6 years ago

  • latest version published

    6 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the vyper package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Out-of-bounds Read

    vyper is a Pythonic Smart Contract Language for the EVM.

    Affected versions of this package are vulnerable to Out-of-bounds Read due to the extract32 function's caching mechanism. An attacker can access and return dirty memory bytes instead of the expected output by manipulating the start index to change b's content and length.

    How to fix Out-of-bounds Read?

    There is no fixed version for vyper.

    [0,)
    • L
    Always-Incorrect Control Flow Implementation

    vyper is a Pythonic Smart Contract Language for the EVM.

    Affected versions of this package are vulnerable to Always-Incorrect Control Flow Implementation when the unsafe_add, unsafe_sub, unsafe_mul, unsafe_div, pow_mod256, |, &, ^ (bitwise operators), bitwise_or (deprecated), bitwise_and (deprecated), bitwise_xor (deprecated), raw_call, <, >, <=, >=, ==, !=, in, not in (when lhs and rhs are enums) expressions are evaluated. An attacker can cause incorrect control flow by exploiting the right-to-left evaluation of arguments.

    Note:

    This is only exploitable if one of the arguments produces side effects that other arguments depend on. The following expressions can produce side-effect: state modifying external call , state modifying internal call, raw_call, pop() when used on a Dynamic Array stored in the storage, create_minimal_proxy_to, create_copy_of, create_from_blueprint.

    Mitigation: This vulnerability can be mitigated by ensuring that the arguments of the expression do not produce side effects or, if one does, that no other argument is dependent on those side effects.

    How to fix Always-Incorrect Control Flow Implementation?

    There is no fixed version for vyper.

    [0,)
    • L
    Insufficient Validation

    vyper is a Pythonic Smart Contract Language for the EVM.

    Affected versions of this package are vulnerable to Insufficient Validation. It is possible for vyper users who make assumptions about what values certain interface types can return.

    How to fix Insufficient Validation?

    There is no fixed version for vyper.

    [0,)