cve.bz

CVE-2024-27094

7.4 highEPSS 0.8%

High (7.4) in openzeppelin. EPSS 0.8% chance of exploitation in the next 30 days. Fixed in @openzeppelin/contracts 4.9.6, 5.0.2.

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.

Severity

CVSS 3.1

7.4 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
EPSS
0.8% chance of exploitation in the next 30 days; higher than 55% of CVEs (scores of 2026-10-31)
CWE
CWE-125
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-9vx6-7xxf-x967npm@openzeppelin/contracts>=4.5.0 <4.9.64.9.6
GHSA-9vx6-7xxf-x967npm@openzeppelin/contracts-upgradeable>=5.0.0-rc.0 <5.0.25.0.2
GHSA-9vx6-7xxf-x967npm@openzeppelin/contracts>=5.0.0-rc.0 <5.0.25.0.2
GHSA-9vx6-7xxf-x967npm@openzeppelin/contracts-upgradeable>=4.5.0 <4.9.64.9.6

References

Check your stackJSON