CVE-2024-27094 - CVE House
Back to Database
Status published Medium CVE-2024-27094

OpenZeppelin Contracts base64 encoding may read from potentially dirty memory

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

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2024-27094

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

OpenZeppelin

View all reports →

Affected Software

openzeppelin-contracts
Vulnerable Versions:
>= 4.5.0, < 4.9.6, >= 5.0.0-rc.0, < 5.0.2

Timeline

Official Publish: February 29th, 2024
Last Modified: August 2nd, 2024
Added to House: July 22nd, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H

Weaknesses (CWE)