CVE-2024-27094
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.
Published:Feb 29, 2024
Last Modified:Dec 4, 2025
EPS:Feb 29, 2024
EPSS Score:0.00177
CVSS Score:6.5
Affected Products
Vendor
Product
Action
Vendor
Openzeppelin
Product
Contracts
Openzeppelin
Contracts
Vendor
Openzeppelin
Product
Contracts Upgradeable
Openzeppelin
Contracts Upgradeable
Vendor
Openzeppelin
Product
Openzeppelin Contracts
Openzeppelin
Openzeppelin Contracts
Exploits
No exploit reference
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
Related CVEs
References
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
