Vulnerability in OpenZeppelin Contracts Affecting Smart Contract Development
CVE-2025-54070
What is CVE-2025-54070?
The lastIndexOf(bytes,byte,uint256) function in OpenZeppelin Contracts versions 5.2.0 to 5.3.0 may access uninitialized memory under specific conditions. If an empty buffer is provided and the position is not at its maximum value, this issue can lead to unexpected behavior, including invalid memory accesses. This has significant implications for contracts relying on accurate indexing, resulting in potential reverts or undefined behavior. Developers are urged to upgrade to version 5.4.0 to mitigate this vulnerability.

Human OS v1.0:
Ageing Is an Unpatched Zero-Day Vulnerability.
Remediate biological technical debt. Prime Ageing uses 95% high-purity SIRT6 activation to maintain genomic integrity and bolster systemic resilience.
Affected Version(s)
openzeppelin-contracts >= 5.2.0, < 5.4.0
References
CVSS V4
Timeline
Vulnerability published
Vulnerability Reserved
