CVE-2023-40014

Summary

CVECVE-2023-40014
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-08-10 20:15:00 UTC
Updated2023-08-23 13:48:00 UTC
DescriptionOpenZeppelin 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.

Risk And Classification

Problem Types: CWE-116

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Openzeppelin Openzeppelin Contracts All All All All
Application Openzeppelin Openzeppelin Contracts-upgradable All All All All

References

ReferenceSourceLinkTags
Adjust ERC2771Context._msgData for msg.data.length < 20 (#4484) · OpenZeppelin/openzeppelin-contracts@e4435ee · GitHub MISC github.com
Release v4.9.3 · OpenZeppelin/openzeppelin-contracts · GitHub MISC github.com
Adjust ERC2771Context._msgData for msg.data.length < 20 by frangio · Pull Request #4484 · OpenZeppelin/openzeppelin-contracts · GitHub MISC github.com
Adjust ERC2771Context._msgData for msg.data.length < 20 (#4484) · OpenZeppelin/openzeppelin-contracts@9445f96 · GitHub MISC github.com
Make ERC2771Context return original sender address if `msg.data.length <= 20` by ernestognw · Pull Request #4481 · OpenZeppelin/openzeppelin-contracts · GitHub MISC github.com
ERC2771Context with custom forwarder may lead to zero-valued _msgSender · Advisory · OpenZeppelin/openzeppelin-contracts · GitHub MISC github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 994834 NodeJs (Npm) Security Update for @openzeppelin/contracts (GHSA-g4vp-m682-qqmp)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report