Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-41264

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).

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-41264
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 08:56 UTC · Revision 1

Source evidence

CVE-2021-41264

core-osv · Original source

Published 12 Nov 2021, 18:15 UTC

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).

osv:CVE-2021-41264
Complete source record
{
  "id": "7d720bca2273515b8196788b8ebeb29ad0d39729ad5d33319083ed147ddcd152",
  "url": "https://osv.dev/vulnerability/CVE-2021-41264",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-41264",
    "summary": "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).",
    "evidence": "osv:CVE-2021-41264",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-41264",
      "aliases": [
        "CVE-2021-41264",
        "GHSA-5vp3-v4hc-gx76"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/openzeppelin/openzeppelin-contracts",
              "type": "GIT",
              "events": [
                {
                  "introduced": "23869e5b2a7c6b9c3e27dee4289615b8cf50e36b"
                },
                {
                  "fixed": "0c4de6721d9668d7b5b2c5a9400fd0b2a5e8de90"
                },
                {
                  "fixed": "024cc50df478d2e8f78539819749e94d6df60592"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "4.1.0"
                      },
                      {
                        "fixed": "4.3.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "024cc50df478d2e8f78539819749e94d6df60592"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41264.json"
          }
        }
      ],
      "modified": "2026-10-24T10:50:42.805208418Z",
      "provider": "osv",
      "references": [
        "https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-5vp3-v4hc-gx76",
        "https://forum.openzeppelin.com/t/security-advisory-initialize-uups-implementation-contracts/15301",
        "https://github.com/OpenZeppelin/openzeppelin-contracts/commit/024cc50df478d2e8f78539819749e94d6df60592"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:*"
            ],
            "vendor_product": "openzeppelin:contracts",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "4.1.0"
                  },
                  {
                    "fixed": "4.3.2"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-41264",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 442515,
  "published_at": "2021-11-12T18:15:07.733+00:00"
}