PT-2023-27209 · Openzeppelin · Openzeppelin Contracts
Frangiop
·
Published
2023-08-10
·
Updated
2023-08-23
·
CVE-2023-40014
CVSS v3.1
5.3
Medium
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
OpenZeppelin Contracts versions 4.0.0 through 4.9.3
Description
OpenZeppelin Contracts is a library for secure smart contract development. Contracts using
ERC2771Context along with a custom trusted forwarder may see msgSender return address(0) in calls that originate from the forwarder with calldata shorter than 20 bytes. This combination of circumstances does not appear to be common, in particular it is not the case for MinimalForwarder from OpenZeppelin Contracts, or any deployed forwarder the team is aware of, given that the signer address is appended to all calls that originate from these forwarders.Recommendations
For versions prior to 4.9.3, update to version 4.9.3 to resolve the issue. As a temporary workaround, consider restricting the use of custom trusted forwarders with
ERC2771Context until the update is applied. Avoid using calldata shorter than 20 bytes in calls that originate from custom trusted forwarders until the issue is resolved.Exploit
Fix
Improper Encoding or Escaping of Output
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Openzeppelin Contracts