Skip to main content

Buffer Access with Incorrect Length Value

CVE-2021-48019

Severity Medium
Score 6.3/10

Summary

Vyper versions prior to 0.2.9 deploys forwarder proxies through the built-in `create_forwarder_to` function that report a fixed 4096-byte `RETURNDATASIZE` rather than the actual return data size. Calls through these proxies can yield corrupted data when a function returns more than 4096 bytes without return data sanitation, and fail strict return-size checks such as `SafeERC20.safeTransfer`.

  • HIGH
  • NETWORK
  • LOW
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • LOW

CWE-805 - Buffer Access with Incorrect Length Value

The software uses a sequential operation to read or write a buffer, but it uses an incorrect length value that causes it to access memory that is outside of the bounds of the buffer.

Advisory Timeline

  • Published