CVE-2024-27094
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/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Openzeppelin | Contracts | >= 4.5.0, < 4.9.6 |
| Openzeppelin | Contracts | >= 5.0.0, < 5.0.2 |
| Openzeppelin | Contracts Upgradeable | >= 4.5.0, <= 4.9.6 |
| Openzeppelin | Contracts Upgradeable | >= 5.0.0, < 5.0.2 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-27094?
How severe is CVE-2024-27094?
How do I fix CVE-2024-27094?
Are you affected by CVE-2024-27094?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
