CVE-2024-27094: OpenZeppelin Contracts - Buffer Over-read
- Cve: CVE-2024-27094
- Name: OpenZeppelin Contracts - Buffer Over-read
- 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: Attackers can read arbitrary memory beyond the input buffer, potentially exposing sensitive data or causing unexpected behavior.
- Remediation: Update to version 5.0.2 or 4.9.6 or later.
- Vulnerability type: buffer_overflow
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.4
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
- Epss score: 0.00763
- Epss percentile: 0.56119
- Assignee: [email protected]
- Published at: 2024-03-21T02:52:18Z
- Age in days: 978
- Modified at: 2026-06-17T07:19:09Z
- Patch available: yes
- References total: 5
- Products total: 2
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-27094
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-125 | Out-of-bounds Read |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| openzeppelin:contracts | >= 5.0.0, < 5.0.2; >= 4.5.0, < 4.9.6 | no | nvd | /v1/products/openzeppelin/contracts |
| openzeppelin:contracts_upgradeable | >= 5.0.0, < 5.0.2; >= 4.5.0, <= 4.9.6 | no | nvd | /v1/products/openzeppelin/contracts_upgradeable |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| openzeppelin/openzeppelin-contracts | commit, fix, package, security_advisory | yes | /v1/repositories/openzeppelin/openzeppelin-contracts |
| openzeppelin/openzeppelin-contracts-upgradeable | commit | yes | /v1/repositories/openzeppelin/openzeppelin-contracts-upgradeable |
Index
- Repositories: 69
- Repositories high signal: 47
- Packages: 2
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts