@openzeppelin/contracts-upgradeable@5.4.0-rc.1 vulnerabilities

Secure Smart Contract library for Solidity

  • latest version

    5.4.0

  • latest non vulnerable version

  • first published

    4 years ago

  • latest version published

    2 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @openzeppelin/contracts-upgradeable 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

    @openzeppelin/contracts-upgradeable is a Secure Smart Contract library for Solidity.

    Affected versions of this package are vulnerable to Out-of-bounds Read via the lastIndexOf function when the buffer is empty and the pos argument is not set to its maximum value. An attacker can cause the function to access memory outside the intended buffer, potentially resulting in unexpected behavior such as returning an invalid index or causing a revert, by supplying crafted arguments.

    How to fix Out-of-bounds Read?

    Upgrade @openzeppelin/contracts-upgradeable to version 5.4.0 or higher.

    >=5.2.0 <5.4.0