Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2024-27094
February 29, 2024
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 Packages
@openzeppelin/contracts-upgradeable (NPM):
Affected version(s) >=5.0.0-rc.0 <5.0.2
Fix Suggestion:
Update to version 5.0.2
@openzeppelin/contracts-upgradeable (NPM):
Affected version(s) >=4.5.0 <4.9.6
Fix Suggestion:
Update to version 4.9.6
@openzeppelin/contracts (NPM):
Affected version(s) >=5.0.0-rc.0 <5.0.2
Fix Suggestion:
Update to version 5.0.2
@openzeppelin/contracts (NPM):
Affected version(s) >=4.5.0 <4.9.6
Fix Suggestion:
Update to version 4.9.6
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
LOW
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.5
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
HIGH
Weakness Type (CWE)
Out-of-bounds Read
EPSS
Base Score:
0.56