CVE-2022-35915

Source
https://cve.org/CVERecord?id=CVE-2022-35915
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35915.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-35915
Aliases
Published
2022-08-01T21:05:11Z
Modified
2026-07-16T03:46:16.198403245Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
Unbounded gas consumption in @openzeppelin/contracts
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35915.json",
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "introduced": ">=2.0.0 < 4.7.2"
                },
                {
                    "last_affected": ">=2.0.0 < 4.7.2"
                }
            ],
            "source": "AFFECTED_FIELD"
        }
    ],
    "cwe_ids": [
        "CWE-400"
    ]
}
References

Affected packages

Git
github.com/openzeppelin/openzeppelin-contracts

Affected ranges

Type
GIT
Repo
https://github.com/openzeppelin/openzeppelin-contracts
Events
Database specific
{
    "cpe": [
        "cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:*",
        "cpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:*"
    ],
    "extracted_events": [
        {
            "introduced": "2.0.0"
        },
        {
            "fixed": "4.7.2"
        },
        {
            "introduced": "3.2.0"
        }
    ],
    "source": "CPE_RANGE"
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35915.json"
github.com/openzeppelin/openzeppelin-contracts-upgradeable

Affected ranges

Type
GIT
Repo
https://github.com/openzeppelin/openzeppelin-contracts-upgradeable
Events
Database specific
{
    "cpe": "cpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:*",
    "extracted_events": [
        {
            "introduced": "3.2.0"
        },
        {
            "fixed": "4.7.2"
        }
    ],
    "source": "CPE_RANGE"
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35915.json"