Skip to main content
← All vulnerabilities
CVE-2023-40014GHSA-G4VP-M682-QQMP

OpenZeppelin Contracts's ERC2771Context with custom forwarder may lead to zero-valued _msgSender

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.9.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

OpenZeppelin Contracts is a library for secure smart contract development. Starting in version 4.0.0 and prior to version 4.9.3, 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. The problem has been patched in v4.9.3.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • OpenZeppelin openzeppelin-contracts

    From 4.0.0 · fixed in 4.9.3

  • @openzeppelin/contractsnpm

    From 4.0.0 · fixed in 4.9.3

  • @openzeppelin/contracts-upgradeablenpm

    From 4.0.0 · fixed in 4.9.3

References 6

GitHub · OpenZeppelin/openzeppelin-contracts