p PatchFirst

PatchFirst · Vulnérabilités récentes

Vulnérabilités de @openzeppelin/contracts-upgradeable

Vulnérabilité publiée pour @openzeppelin/contracts-upgradeable au cours des 30 derniers jours : 0. Dans le catalogue KEV : 0.

Filtrer les vulnérabilités
Effacer les filtres

Vulnérabilités : 22

  1. CVE-2025-54070

    Moyenne · CVSS 6.9EPSS 0,4%Correctif disponible

    OpenZeppelin Contracts's Bytes's lastIndexOf function with position argument performs out-of-bound memory access on empty buffers

    OpenZeppelin Contracts is a library for secure smart contract development. Starting in version 5.2.0 and prior to version 5.4.0, the `lastIndexOf(bytes,byte,uint256)` function of the `Bytes.sol` library may access uninitialized memory when the following two conditions hold: 1) the provided buffer length is empty (i.e. `buffer.length == 0`) and position is not `2**256 - 1` (i.e. `pos != type(uint256).max`). The `pos` argument could be used to access arbitrary data outside of the buffer bounds. This could lead to the operation running out of gas, or returning an invalid index (outside of the empty buffer). Processing this invalid result for acc

    • Mettez à jour vers 5.4.0
    Publication Mise à jour
  2. CVE-2024-27094

    Moyenne · CVSS 6.5EPSS 0,76%Correctif disponible

    OpenZeppelin Contracts base64 encoding may read from potentially dirty memory

    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.

    • Mettez à jour vers 4.9.6
    • Mettez à jour vers 5.0.2
    Publication Mise à jour
  3. CVE-2023-49798

    Moyenne · CVSS 5.9EPSS 0,54%Correctif disponible

    Duplicated execution of subcalls in OpenZeppelin Contracts

    OpenZeppelin Contracts is a library for smart contract development. A merge issue when porting the 5.0.1 patch to the 4.9 branch caused a line duplication. In the version of `Multicall.sol` released in `@openzeppelin/[email protected]` and `@openzeppelin/[email protected]`, all subcalls are executed twice. Concretely, this exposes a user to unintentionally duplicate operations like asset transfers. The duplicated delegatecall was removed in version 4.9.5. The 4.9.4 version is marked as deprecated. Users are advised to upgrade. There are no known workarounds for this issue.

    • Mettez à jour vers 4.9.5
    Publication Mise à jour
  4. CVE-2023-40014

    Moyenne · CVSS 5.3EPSS 0,74%Correctif disponible

    OpenZeppelin Contracts's ERC2771Context with custom forwarder may lead to zero-valued _msgSender

    OpenZeppelin Contracts is a library for secure smart contract development. Starting in version 4.0.0 and prior to version 4.9.3, contracts using `ERC2771Context` along with a custom trusted forwarder may see `_msgSender` return `address(0)` in calls that originate from the forwarder with calldata shorter than 20 bytes. This combination of circumstances does not appear to be common, in particular it is not the case for `MinimalForwarder` from OpenZeppelin Contracts, or any deployed forwarder the team is aware of, given that the signer address is appended to all calls that originate from these forwarders. The problem has been patched in v4.9.3.

    • Mettez à jour vers 4.9.3
    Publication Mise à jour
  5. CVE-2023-34459

    Moyenne · CVSS 5.3EPSS 0,37%Correctif disponible

    OpenZeppelin Contracts's MerkleProof multiproofs may allow proving arbitrary leaves for specific trees

    OpenZeppelin Contracts is a library for smart contract development. Starting in version 4.7.0 and prior to version 4.9.2, when the `verifyMultiProof`, `verifyMultiProofCalldata`, `procesprocessMultiProof`, or `processMultiProofCalldat` functions are in use, it is possible to construct merkle trees that allow forging a valid multiproof for an arbitrary set of leaves. A contract may be vulnerable if it uses multiproofs for verification and the merkle tree that is processed includes a node with value 0 at depth 1 (just under the root). This could happen inadvertedly for balanced trees with 3 leaves or less, if the leaves are not hashed. This co

    • Mettez à jour vers 4.9.2
    Publication Mise à jour
  6. CVE-2023-34234

    Moyenne · CVSS 5.3EPSS 0,6%Correctif disponible

    Governor proposal creation may be blocked by frontrunning in OpenZeppelin

    OpenZeppelin Contracts is a library for smart contract development. By frontrunning the creation of a proposal, an attacker can become the proposer and gain the ability to cancel it. The attacker can do this repeatedly to try to prevent a proposal from being proposed at all. This impacts the `Governor` contract in v4.9.0 only, and the `GovernorCompatibilityBravo` contract since v4.3.0. This problem has been patched in 4.9.1 by introducing opt-in frontrunning protection. Users are advised to upgrade. Users unable to upgrade may submit the proposal creation transaction to an endpoint with frontrunning protection as a workaround.

    • Mettez à jour vers 4.9.1
    Publication Mise à jour
  7. CVE-2023-30541

    Moyenne · CVSS 5.3EPSS 0,81%Correctif disponible

    TransparentUpgradeableProxy clashing selector calls may not be delegated in @openzeppelin/contracts

    OpenZeppelin Contracts is a library for secure smart contract development. A function in the implementation contract may be inaccessible if its selector clashes with one of the proxy's own selectors. Specifically, if the clashing function has a different signature with incompatible ABI encoding, the proxy could revert while attempting to decode the arguments from calldata. The probability of an accidental clash is negligible, but one could be caused deliberately and could cause a reduction in availability. The issue has been fixed in version 4.8.3. As a workaround if a function appears to be inaccessible for this reason, it may be possible to

    • Mettez à jour vers 4.8.3
    Publication Mise à jour
  8. CVE-2023-30542

    Moyenne · CVSS 6.8EPSS 0,58%Correctif disponible

    GovernorCompatibilityBravo may trim proposal calldata

    OpenZeppelin Contracts is a library for secure smart contract development. The proposal creation entrypoint (`propose`) in `GovernorCompatibilityBravo` allows the creation of proposals with a `signatures` array shorter than the `calldatas` array. This causes the additional elements of the latter to be ignored, and if the proposal succeeds the corresponding actions would eventually execute without any calldata. The `ProposalCreated` event correctly represents what will eventually execute, but the proposal parameters as queried through `getActions` appear to respect the original intended calldata. This issue has been patched in 4.8.3. As a work

    • Mettez à jour vers 4.8.3
    Publication Mise à jour
  9. CVE-2023-26488

    Moyenne · CVSS 6.5EPSS 0,71%Correctif disponible

    OpenZeppelin Contracts contains Incorrect Calculation

    OpenZeppelin Contracts is a library for secure smart contract development. The ERC721Consecutive contract designed for minting NFTs in batches does not update balances when a batch has size 1 and consists of a single token. Subsequent transfers from the receiver of that token may overflow the balance as reported by `balanceOf`. The issue exclusively presents with batches of size 1. The issue has been patched in 4.8.2.

    • Mettez à jour vers 4.8.2
    Publication Mise à jour
  10. CVE-2022-35961

    Élevée · CVSS 7.9EPSS 0,43%Correctif disponible

    ECDSA signature malleability in OpenZeppelin Contracts

    OpenZeppelin Contracts is a library for secure smart contract development. The functions `ECDSA.recover` and `ECDSA.tryRecover` are vulnerable to a kind of signature malleability due to accepting EIP-2098 compact signatures in addition to the traditional 65 byte signature format. This is only an issue for the functions that take a single `bytes` argument, and not the functions that take `r, v, s` or `r, vs` as separate arguments. The potentially affected contracts are those that implement signature reuse or replay protection by marking the signature itself as used rather than the signed message or a nonce included in it. A user may take a sig

    • Mettez à jour vers 4.7.3
    Publication Mise à jour
  11. CVE-2022-35915

    Moyenne · CVSS 5.3EPSS 0,8%Correctif disponible

    Unbounded gas consumption in @openzeppelin/contracts

    OpenZeppelin Contracts is a library for secure smart contract development. The target contract of an EIP-165 `supportsInterface` query can cause unbounded gas consumption by returning a lot of data, while it is generally assumed that this operation has a bounded cost. The issue has been fixed in v4.7.2. Users are advised to upgrade. There are no known workarounds for this issue.

    • Mettez à jour vers 4.7.2
    Publication Mise à jour
  12. CVE-2022-35916

    Moyenne · CVSS 5.3EPSS 0,6%Correctif disponible

    Cross chain utilities for Arbitrum L2 see EOA calls as cross chain calls

    OpenZeppelin Contracts is a library for secure smart contract development. Contracts using the cross chain utilities for Arbitrum L2, `CrossChainEnabledArbitrumL2` or `LibArbitrumL2`, will classify direct interactions of externally owned accounts (EOAs) as cross chain calls, even though they are not started on L1. This issue has been patched in v4.7.2. Users are advised to upgrade. There are no known workarounds for this issue.

    • Mettez à jour vers 4.7.2
    Publication Mise à jour
  13. CVE-2022-31198

    Élevée · CVSS 7.5EPSS 0,79%Correctif disponible

    GovernorVotesQuorumFraction updates to quorum may affect past defeated proposals in @openzeppelin/contracts

    OpenZeppelin Contracts is a library for secure smart contract development. This issue concerns instances of Governor that use the module `GovernorVotesQuorumFraction`, a mechanism that determines quorum requirements as a percentage of the voting token's total supply. In affected instances, when a proposal is passed to lower the quorum requirements, past proposals may become executable if they had been defeated only due to lack of quorum, and the number of votes it received meets the new quorum requirement. Analysis of instances on chain found only one proposal that met this condition, and we are actively monitoring for new occurrences of this

    • Mettez à jour vers 4.7.2
    Publication Mise à jour
  14. CVE-2022-31170

    Élevée · CVSS 7.5EPSS 0,79%Correctif disponible

    OpenZeppelin Contracts's ERC165Checker may revert instead of returning false

    OpenZeppelin Contracts is a library for smart contract development. Versions 4.0.0 until 4.7.1 are vulnerable to ERC165Checker reverting instead of returning `false`. `ERC165Checker.supportsInterface` is designed to always successfully return a boolean, and under no circumstance revert. However, an incorrect assumption about Solidity 0.8's `abi.decode` allows some cases to revert, given a target contract that doesn't implement EIP-165 as expected, specifically if it returns a value other than 0 or 1. The contracts that may be affected are those that use `ERC165Checker` to check for support for an interface and then handle the lack of support

    • Mettez à jour vers 4.7.1
    Publication Mise à jour
  15. CVE-2022-31172

    Élevée · CVSS 7.5EPSS 0,5%Correctif disponible

    OpenZeppelin Contracts's SignatureChecker may revert on invalid EIP-1271 signers

    OpenZeppelin Contracts is a library for smart contract development. Versions 4.1.0 until 4.7.1 are vulnerable to the SignatureChecker reverting. `SignatureChecker.isValidSignatureNow` is not expected to revert. However, an incorrect assumption about Solidity 0.8's `abi.decode` allows some cases to revert, given a target contract that doesn't implement EIP-1271 as expected. The contracts that may be affected are those that use `SignatureChecker` to check the validity of a signature and handle invalid signatures in a way other than reverting. The issue was patched in version 4.7.1.

    • Mettez à jour vers 4.7.1
    Publication Mise à jour
  16. GHSA-7j52-6fjp-58gr

    Non évaluéeCorrectif disponible

    Inconsistent storage layout for ERC2771ContextUpgradeable

    ### Impact The storage layout of the ERC2771ContextUpgradeable is not constant between versions. - versions `4.0.0`, `4.1.0` and `4.2.0`, the contract has a length of 51 slots. - since `4.3.0`, the contract has a length of 50 slots - future versions will continue using 50 slots. This difference in layout could result in breaking upgrades if someone upgrades from an affected version to a non-affected version. It is thus recommended to be extremely careful when upgrading from a contract that uses ERC2771ContextUpgradeable `<4.3.0` to a newer version that uses `>=4.3.0`. We've assessed the instances of this contract found on chain (with pu

    • Mettez à jour vers 4.3.0
    Publication Mise à jour
  17. CVE-2021-46320

    Élevée · CVSS 7.5EPSS 1,22%Correctif disponible

    CVE-2021-46320

    In OpenZeppelin <=v4.4.0, initializer functions that are invoked separate from contract creation (the most prominent example being minimal proxies) may be reentered if they make an untrusted non-view external call. Once an initializer has finished running it can never be re-executed. However, an exception put in place to support multiple inheritance made reentrancy possible, breaking the expectation that there is a single execution.

    • Mettez à jour vers 4.4.1
    Publication Mise à jour
  18. GHSA-m6w8-fq7v-ph4m

    Non évaluéeCorrectif disponible

    GovernorCompatibilityBravo incorrect ABI encoding may lead to unexpected behavior

    ### Impact The `GovernorCompatibilityBravo` module may lead to the creation of governance proposals that execute function calls with incorrect arguments due to bad ABI encoding. This happens if the proposal is created using explicit function signatures, e.g. a proposal to invoke the function `foo(uint256)` is created as `propose([target], [0], ["foo(uint256)"], ["0x00..01"])`. If the function selector is provided as part of the encoded proposal data the issue is not present, e.g. the same proposal is created as `propose([target], [0], ["0x2fbebd3800..01"])`, where `2fbebd38` is the function selector. We've assessed the instances of this con

    • Mettez à jour vers 4.4.2
    Publication Mise à jour
  19. GHSA-wmpv-c2jp-j2xg

    Non évaluéeCorrectif disponible

    ERC1155Supply vulnerability in OpenZeppelin Contracts

    When ERC1155 tokens are minted, a callback is invoked on the receiver of those tokens, as required by the spec. When including the `ERC1155Supply` extension, total supply is not updated until after the callback, thus during the callback the reported total supply is lower than the real number of tokens in circulation. ### Impact If a system relies on accurately reported supply, an attacker may be able to mint tokens and invoke that system after receiving the token balance but before the supply is updated. ### Patches A fix is included in version 4.3.3 of `@openzeppelin/contracts` and `@openzeppelin/contracts-upgradeable`. ### Workarounds If

    • Mettez à jour vers 4.3.3
    Publication Mise à jour
  20. CVE-2021-41264

    Critique · CVSS 9.8EPSS 1,49%Correctif disponible

    UUPSUpgradeable vulnerability in OpenZeppelin Contracts

    OpenZeppelin Contracts is a library for smart contract development. In affected versions upgradeable contracts using `UUPSUpgradeable` may be vulnerable to an attack affecting uninitialized implementation contracts. A fix is included in version 4.3.2 of `@openzeppelin/contracts` and `@openzeppelin/contracts-upgradeable`. For users unable to upgrade; initialize implementation contracts using `UUPSUpgradeable` by invoking the initializer function (usually called `initialize`). An example is provided [in the forum](https://forum.openzeppelin.com/t/security-advisory-initialize-uups-implementation-contracts/15301).

    • Mettez à jour vers 4.3.2
    Publication Mise à jour

Vérifiez votre serveur

Comparez votre pile et les versions installées aux bases de vulnérabilités actuelles.

Vérifiez votre serveur →