Live threats

All CVEs / Openzeppelin

CVE-2023-40014Openzeppelin Contracts

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
0.8%
probability of exploitation in 30 days · percentile 52
Auth required
No
Published
Aug 10, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-116
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Openzeppelin Contracts.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @openzeppelin/contracts ≥ 4.0.0 < 4.9.3 4.9.3 npm install @openzeppelin/contracts@4.9.3
npm @openzeppelin/contracts-upgradeable ≥ 4.0.0 < 4.9.3 4.9.3 npm install @openzeppelin/contracts-upgradeable@4.9.3

Per OSV / GitHub Advisories (GHSA-g4vp-m682-qqmp). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
openzeppelinopenzeppelin_contracts≥ 4.0.0 < 4.9.3
openzeppelinopenzeppelin_contracts-upgradable≥ 4.0.0 < 4.9.3

Official sources

References

Links published by the sources. Open them with care.