Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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 craft the calldata such that ABI decoding does not fail at the proxy and the function is properly proxied through.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-30541
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 07:17 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 17 Apr 2023, 21:37 UTC

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 craft the calldata such that ABI decoding does not fail at the proxy and the function is properly proxied through.

osv:CVE-2023-30541
Complete source record
{
  "id": "14d0caaf85e3f9237559ca786da58fe01a55acf478d7de5f201f80a3f832b016",
  "url": "https://osv.dev/vulnerability/CVE-2023-30541",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "TransparentUpgradeableProxy clashing selector calls may not be delegated in @openzeppelin/contracts",
    "summary": "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 craft the calldata such that ABI decoding does not fail at the proxy and the function is properly proxied through.",
    "evidence": "osv:CVE-2023-30541",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2023-30541",
      "aliases": [
        "CVE-2023-30541",
        "GHSA-mx2q-35m2-x2rh"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/openzeppelin/openzeppelin-contracts",
              "type": "GIT",
              "events": [
                {
                  "introduced": "1ada3b633e5bfd9d4ffe0207d64773a11f5a7c40"
                },
                {
                  "fixed": "0a25c1940ca220686588c4af3ec526f725fe2582"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.8.3"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "range": [
                      {
                        "fixed": "0a25c1940ca220686588c4af3ec526f725fe2582"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v4.8.3"
                  },
                  {
                    "cpe": "cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "3.2.0"
                      },
                      {
                        "fixed": "4.8.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "3.2.0"
                      },
                      {
                        "fixed": "4.8.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            },
            {
              "repo": "https://github.com/openzeppelin/openzeppelin-contracts-upgradeable",
              "type": "GIT",
              "events": [
                {
                  "introduced": "40a9298585b20113c2afc5a2cb7edc5c8f2d656d"
                },
                {
                  "fixed": "58fa0f81c4036f1a3b616fdffad2fd27e5d5ce21"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "3.2.0"
                      },
                      {
                        "fixed": "4.8.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-30541.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.183354688Z",
      "provider": "osv",
      "references": [
        "https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.3",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30541.json",
        "https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-mx2q-35m2-x2rh",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-30541",
        "https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4154"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-436"
        ],
        "cna_assigner": "GitHub_M",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "@openzeppelin/contracts: >= 3.2.0, < 4.8.3"
                  },
                  {
                    "last_affected": "@openzeppelin/contracts: >= 3.2.0, < 4.8.3"
                  },
                  {
                    "introduced": "@openzeppelin/contracts-upgradeable:  >=3.2.0, <4.8.3"
                  },
                  {
                    "last_affected": "@openzeppelin/contracts-upgradeable:  >=3.2.0, <4.8.3"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30541.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-30541",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 518632,
  "published_at": "2023-04-17T21:37:29.361+00:00"
}