CVE-2023-40014
August 10, 2023
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.
Affected Packages
@openzeppelin/contracts-upgradeable (NPM):
Affected version(s) >=4.0.0 <4.9.3Fix Suggestion:
Update to version 4.9.3@openzeppelin/contracts (NPM):
Affected version(s) >=4.0.0 <4.9.3Fix Suggestion:
Update to version 4.9.3Related Resources (9)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.9
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Encoding or Escaping of Output
EPSS
Base Score:
0.56