Duplicated execution of subcalls in OpenZeppelin Contracts
openzeppelin-contracts
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @openzeppelin/contracts npm |
|
|
| @openzeppelin/contracts-upgradeable npm |
|
|
openzeppelin-contracts
| Product | Affected | Fixed in |
|---|---|---|
| @openzeppelin/contracts npm |
|
|
| @openzeppelin/contracts-upgradeable npm |
|
|
OpenZeppelin Contracts is a library for smart contract development. A merge issue when porting the 5.0.1 patch to the 4.9 branch caused a line duplication. In the version of `Multicall.sol` released in `@openzeppelin/contracts@4.9.4` and `@openzeppelin/contracts-upgradeable@4.9.4`, all subcalls are executed twice. Concretely, this exposes a user to unintentionally duplicate operations like asset transfers. The duplicated delegatecall was removed in version 4.9.5. The 4.9.4 version is marked as deprecated. Users are advised to upgrade. There are no known workarounds for this issue.
From the CVE record · GitHub_M
A duplicated delegatecall in Multicall.sol causes every subcall to execute twice, potentially duplicating operations such as asset transfers. This occurs when Multicall is used; the input does not specify an attacker, authentication requirement, or other interaction condition.
Teams using npm @openzeppelin/contracts or @openzeppelin/contracts-upgradeable version 4.9.4 should check their dependencies.