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.
History

Thu, 04 Dec 2025 20:15:00 +0000

Type Values Removed Values Added
First Time appeared Openzeppelin contracts
Openzeppelin contracts Upgradeable
CPEs cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:*
cpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:*
Vendors & Products Openzeppelin contracts
Openzeppelin contracts Upgradeable

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published: 2024-02-29T18:18:24.721Z

Updated: 2024-08-02T19:35:12.184Z

Reserved: 2024-02-19T14:43:05.993Z

Link: CVE-2024-27094

cve-icon Vulnrichment

Updated: 2024-08-02T00:27:58.413Z

cve-icon NVD

Status : Analyzed

Published: 2024-03-21T02:52:18.063

Modified: 2025-12-04T20:13:27.070

Link: CVE-2024-27094

cve-icon Redhat

No data.