CVE-2023-40014
OpenZeppelin Contracts's ERC2771Context with custom forwarder may lead to zero-valued _msgSender
Severity Score
5.3
*CVSS v3.1
Exploit Likelihood
*EPSS
Affected Versions
*CPE
Public Exploits
0
*Multiple Sources
Exploited in Wild
-
*KEV
Decision
Attend
*SSVC
Descriptions
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.
*Credits:
N/A
CVSS Scores
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
Attack Vector
Attack Complexity
Authentication
Confidentiality
Integrity
Availability
* Common Vulnerability Scoring System
SSVC
- Decision:Attend
Exploitation
Automatable
Tech. Impact
* Organization's Worst-case Scenario
Timeline
- 2023-08-08 CVE Reserved
- 2023-08-10 CVE Published
- 2024-10-03 CVE Updated
- 2025-01-20 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-116: Improper Encoding or Escaping of Output
CAPEC
References (6)
URL | Tag | Source |
---|---|---|
https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.9.3 | Release Notes |
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-g4vp-m682-qqmp | 2023-08-23 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Openzeppelin Search vendor "Openzeppelin" | Openzeppelin Contracts Search vendor "Openzeppelin" for product "Openzeppelin Contracts" | >= 4.0.0 < 4.9.3 Search vendor "Openzeppelin" for product "Openzeppelin Contracts" and version " >= 4.0.0 < 4.9.3" | node.js |
Affected
| ||||||
Openzeppelin Search vendor "Openzeppelin" | Openzeppelin Contracts-upgradable Search vendor "Openzeppelin" for product "Openzeppelin Contracts-upgradable" | >= 4.0.0 < 4.9.3 Search vendor "Openzeppelin" for product "Openzeppelin Contracts-upgradable" and version " >= 4.0.0 < 4.9.3" | node.js |
Affected
|