Skip to content
Heist/ feed
Back to feed
Critical

Incorrect Conversion between Numeric Types in Besu Ethereum Client

Type: advisorySources: OSV

Besu is a Java-based Ethereum client. In versions newer than 22.1.3 and prior to 22.7.1, Besu is subject to an Incorrect Conversion between Numeric Types. An error in 32 bit signed and unsigned types in the calculation of available gas in the CALL operations (including DELEGATECALL) results in incorrect gas being passed into called contracts and incorrect gas being returned after call execution. Where the amount of gas makes a difference in the success or failure, or if the gas is a negative 64 bit value, the execution will result in a different state root than expected, resulting in a consensus failure in networks with multiple EVM implementations. In networks with a single EVM implementation this can be used to execute with significantly more gas than then transaction requested, possibly exceeding gas limitations. This issue is patched in version 22.7.1. As a workaround, reverting to version 22.1.3 or earlier will prevent incorrect execution.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-36025
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 03:03 UTC · Revision 1

Source evidence

Incorrect Conversion between Numeric Types in Besu Ethereum Client

core-osv · Original source

Published 24 Sept 2022, 02:00 UTC

Besu is a Java-based Ethereum client. In versions newer than 22.1.3 and prior to 22.7.1, Besu is subject to an Incorrect Conversion between Numeric Types. An error in 32 bit signed and unsigned types in the calculation of available gas in the CALL operations (including DELEGATECALL) results in incorrect gas being passed into called contracts and incorrect gas being returned after call execution. Where the amount of gas makes a difference in the success or failure, or if the gas is a negative 64 bit value, the execution will result in a different state root than expected, resulting in a consensus failure in networks with multiple EVM implementations. In networks with a single EVM implementation this can be used to execute with significantly more gas than then transaction requested, possibly exceeding gas limitations. This issue is patched in version 22.7.1. As a workaround, reverting to version 22.1.3 or earlier will prevent incorrect execution.

osv:CVE-2022-36025
Complete source record
{
  "id": "493fbed3cd20208af16854541675e90f14a3248a9034e912e12796850a1c02e8",
  "url": "https://osv.dev/vulnerability/CVE-2022-36025",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Incorrect Conversion between Numeric Types in Besu Ethereum Client",
    "summary": "Besu is a Java-based Ethereum client. In versions newer than 22.1.3 and prior to 22.7.1, Besu is subject to an Incorrect Conversion between Numeric Types. An error in 32 bit signed and unsigned types in the calculation of available gas in the CALL operations (including DELEGATECALL) results in incorrect gas being passed into called contracts and incorrect gas being returned after call execution. Where the amount of gas makes a difference in the success or failure, or if the gas is a negative 64 bit value, the execution will result in a different state root than expected, resulting in a consensus failure in networks with multiple EVM implementations. In networks with a single EVM implementation this can be used to execute with significantly more gas than then transaction requested, possibly exceeding gas limitations. This issue is patched in version 22.7.1. As a workaround, reverting to version 22.1.3 or earlier will prevent incorrect execution.",
    "evidence": "osv:CVE-2022-36025",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2022-36025",
      "aliases": [
        "CVE-2022-36025",
        "GHSA-4456-w38r-m53x"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/besu-eth/besu",
              "type": "GIT",
              "events": [
                {
                  "introduced": "12a0ba9c6d90de043189d1069d4acee35ac1129d"
                },
                {
                  "fixed": "c5ddf2b1b4796526f57b3252efa1ac0737aa89fc"
                },
                {
                  "introduced": "5ec9de8717a95c7dee2c5e485aac24a960c9ea25"
                },
                {
                  "last_affected": "32fd3476e3409ec5b10c654b96a00418f24f53a5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:besu:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "22.4.1"
                      },
                      {
                        "fixed": "22.7.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:besu:22.4.0:-:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "22.4.0-NA"
                      },
                      {
                        "last_affected": "22.4.0-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:besu:22.4.0:rc2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "22.4.0-rc2"
                      },
                      {
                        "last_affected": "22.4.0-rc2"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "22.4.0-NA",
            "22.4.0-rc2",
            "22.7.0",
            "22.7.0-RC3",
            "22.7.0-RC2",
            "22.4.3",
            "22.7.0-RC1",
            "22.4.2",
            "22.4.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-36025.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:33.092173367Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36025.json",
        "https://github.com/hyperledger/besu/security/advisories/GHSA-4456-w38r-m53x",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-36025"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-196",
          "CWE-681"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36025.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-36025",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 499858,
  "published_at": "2022-09-24T02:00:13+00:00"
}