CVE-2024-27094

HIGHCVSS 7.4/10EPSS 0.76%

Last modified

CVE-2024-27094 is a high-severity vulnerability rated 7.4/10 on the CVSS scale. 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. EPSS estimates a 0.76% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
7.4/10

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

EPSS Probability
0.76%

50.7th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
OpenzeppelinContracts>= 4.5.0, < 4.9.6
OpenzeppelinContracts>= 5.0.0, < 5.0.2
OpenzeppelinContracts Upgradeable>= 4.5.0, <= 4.9.6
OpenzeppelinContracts Upgradeable>= 5.0.0, < 5.0.2

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is 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.
How severe is CVE-2024-27094?
CVE-2024-27094 has a CVSS score of 7.4/10 (HIGH severity). The EPSS model estimates a 0.76% probability of exploitation in the next 30 days.
How do I fix CVE-2024-27094?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2024-27094?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST