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-04-10T04:49:09.932221Z
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",
    "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
{
    "versions": [
        {
            "introduced": "2.0.0"
        },
        {
            "fixed": "4.7.2"
        },
        {
            "introduced": "3.2.0"
        },
        {
            "fixed": "4.7.2"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35915.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "2.0.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "2.0.0"
            }
        ]
    }
]