Vulnerability

CVE-2024-27094

highCVSS 3.1 7.4Published 21 Mar 2024

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

OpenZeppelin Contracts is a library for secure smart contract development. The `Base64.encode` function encodes a `bytes` input by iterating over it in chunks of 3 bytes. When this input is not a multiple of 3, the last iteration may read parts of the memory that are beyond the input buffer. The vulnerability is fixed in 5.0.2 and 4.9.6.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Openzeppelin contracts, contracts upgradeable

Weakness type

References

  • github.com /OpenZeppelin/openzeppelin-contracts-upgradeable/commit/2d0…
  • github.com /OpenZeppelin/openzeppelin-contracts-upgradeable/commit/723…
  • github.com /OpenZeppelin/openzeppelin-contracts/commit/92224533b126377…
  • github.com /OpenZeppelin/openzeppelin-contracts/commit/a6286d0fded8771…
  • github.com /OpenZeppelin/openzeppelin-contracts/security/advisories/GH…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning