CVE-2021-48019 Vyper before 0.2.9 Incorrect RETURNDATASIZE in create_forwarder_to Proxies
- Exploited in the wild
- Not known
- Fix
- None listed
What is CVE-2021-48019?
CVE-2021-48019 is a medium-severity vulnerability in vyperlang vyper, published on 21 Oct 2026.
Official description
Vyper before 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.
Weakness: CWE-805
Which versions are affected by CVE-2021-48019?
2 open source packages ship an affected version, including vyper.
| Package | Affected | Fixed in |
|---|---|---|
vyper PyPI | All versions | 0.2.9 |
vyper PyPI | All versions | 0.2.9 |
How do I fix CVE-2021-48019?
Upgrade vyper to 0.2.9 or later.
Is CVE-2021-48019 being exploited?
There is no known exploitation of CVE-2021-48019 in the wild and no public exploit code.
Sources
Also known as GHSA-375m-5fvv-xq23, GHSA-q48v-45cg-432r.