SecurityContext

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

IdName
CWE-125Out-of-bounds Read

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/commit/2d081f24cac1a867f6f73d512f2022e1fa987854Patch
https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/commit/723f8cab09cdae1aca9ec9cc1cfa040c2d4b06c1Patch
https://github.com/OpenZeppelin/openzeppelin-contracts/commit/92224533b1263772b0774eec3134e132a3d7b2a6Patch
https://github.com/OpenZeppelin/openzeppelin-contracts/commit/a6286d0fded8771b3a645e5813e51993c490399cPatch
https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-9vx6-7xxf-x967Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
openzeppelin:contracts>= 5.0.0, < 5.0.2; >= 4.5.0, < 4.9.6nonvd/v1/products/openzeppelin/contracts
openzeppelin:contracts_upgradeable>= 5.0.0, < 5.0.2; >= 4.5.0, <= 4.9.6nonvd/v1/products/openzeppelin/contracts_upgradeable

Projects

RepositoryLink kindsIndexedUrl
openzeppelin/openzeppelin-contractscommit, fix, package, security_advisoryyes/v1/repositories/openzeppelin/openzeppelin-contracts
openzeppelin/openzeppelin-contracts-upgradeablecommityes/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