CVE-2024-27094GHSA-9VX6-7XXF-X967
OpenZeppelin Contracts base64 encoding may read from potentially dirty memory
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 4.9.6, 5.0.2
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
CISA's decision points: whether it is exploited, whether attacks can be automated, and how much control an attacker gets. Assessed (SSVC 2.0.3).What do these mean? →
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- OpenZeppelin openzeppelin-contracts
From 4.5.0 · fixed in 4.9.6; From 5.0.0-rc.0 · fixed in 5.0.2
- @openzeppelin/contractsnpm
From 4.5.0 · fixed in 4.9.6
- @openzeppelin/contracts-upgradeablenpm
From 5.0.0-rc.0 · fixed in 5.0.2
- @openzeppelin/contractsnpm
From 5.0.0-rc.0 · fixed in 5.0.2
- @openzeppelin/contracts-upgradeablenpm
From 4.5.0 · fixed in 4.9.6