Vulnerabilities · 2024 · Openzeppelin
CVE-2024-27094
Openzeppelin Contracts vulnerability
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.
Affected products
Contracts, Contracts Upgradeable. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Openzeppelin Contracts runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-9vx6-7xxf-x967
- github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/commit/2d081f24cac1a867f6f73d51
- github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/commit/723f8cab09cdae1aca9ec9cc
- github.com/OpenZeppelin/openzeppelin-contracts/commit/92224533b1263772b0774eec3134e132a3d7
- github.com/OpenZeppelin/openzeppelin-contracts/commit/a6286d0fded8771b3a645e5813e51993c490
- nvd.nist.gov/vuln/detail/CVE-2024-27094
- github.com/advisories/GHSA-9vx6-7xxf-x967
- nvd.nist.gov/vuln/detail/CVE-2024-27094
- cve.org/CVERecord?id=CVE-2024-27094
More vulnerabilities in Openzeppelin products
CVE-2024-45304CVE-2023-49798CVE-2023-40014CVE-2023-34459CVE-2023-34234CVE-2023-30542CVE-2023-30541CVE-2023-26488All 22
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.