Input validation error in OpenZeppelin Contracts - CVE-2023-40014

 

Input validation error in OpenZeppelin Contracts - CVE-2023-40014

Published: August 10, 2023 / Updated: November 25, 2026


Vulnerability identifier: #VU170129
CSH Severity: Low
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-40014
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a contract to treat the zero address as the caller.

The vulnerability exists due to improper calldata length validation in ERC2771Context._msgSender when processing calls from a trusted forwarder. A remote attacker can trigger incorrect sender attribution through a custom trusted forwarder that permits calls with fewer than 20 bytes of calldata.


Affected software

OpenZeppelin Contracts

How to mitigate CVE-2023-40014

Install security update from vendor's website.

OpenZeppelin Contracts - update to 4.9.3

External References

Related Security Bulletins