Skip to main content

How Is the Call Function in Solidity Related to Reentrancy?

The low-level call function in Solidity is often used to send Ether to external addresses. Unlike transfer or send , call forwards all available gas by default, which allows the receiving contract to execute complex logic, including calling back the original contract.

This high gas forwarding is the mechanism that enables the reentrancy vulnerability.

How Does the ‘Out-of-Gas’ Error Impact a Smart Contract Transaction’s State Change?
What Are the Gas Limitations of the Transfer Function in Solidity?
What Is the Relative Gas Cost of a ‘Delegatecall’ Compared to a Regular ‘Call’?
How Have Recent Versions of Solidity Changed the Behavior of Fallback Functions to Mitigate This Risk?