{"answers":{"affected":"2 open source packages ship an affected version, including org.hyperledger.besu:evm. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-36025 in the wild and no public exploit code.","fix":"Upgrade org.hyperledger.besu:evm to 22.7.1 or later.","what":"CVE-2022-36025 is a critical vulnerability in hyperledger besu, published on 24 Sep 2022."},"fix_prompt":"Check this codebase for CVE-2022-36025 and fix it if it is affected.\n\nWhat it is: CVE-2022-36025 is a critical vulnerability in hyperledger besu, published on 24 Sep 2022. \nExploitation: There is no known exploitation of CVE-2022-36025 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.hyperledger.besu:evm (Maven): affected from 22.4.0-RC1; fixed in 22.7.1\n- org.hyperledger.besu:evm (Maven): affected from 22.4.0-RC1; fixed in 22.7.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-36025/ (Markdown: https://insights.sbomify.com/CVE-2022-36025/index.md)","id":"CVE-2022-36025","markdown":"https://insights.sbomify.com/CVE-2022-36025/index.md","name":"CVE-2022-36025","record":{"aliases":["GHSA-4456-w38r-m53x"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"besu","vendor":"linuxfoundation"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-681","name":"Incorrect Conversion between Numeric Types"},{"id":"CWE-196","name":"Unsigned to Signed Conversion Error"}],"description":"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Incorrect Conversion between Numeric Types in Besu Ethereum Client","id":"CVE-2022-36025","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":null,"year":"2022"},"n_packages":2,"n_references":1,"next":{"headline":"`CHECK` fail in `QuantizeAndDequantizeV3` in TensorFlow","id":"CVE-2022-36026"},"packages":[{"ecosystem":"Maven","fixed":["22.7.1"],"introduced":["22.4.0-RC1"],"last_affected":[],"package":"org.hyperledger.besu:evm","purl":null,"source":"GHSA-4456-w38r-m53x"},{"ecosystem":"Maven","fixed":["22.7.1"],"introduced":["22.4.0-RC1"],"last_affected":[],"package":"org.hyperledger.besu:evm","purl":"pkg:maven/org.hyperledger.besu/evm","source":"GHSA-4456-w38r-m53x"}],"prev":{"headline":"Bots using py-cord as discord api wrapper are vulnerable to shutdowns through remote code execution","id":"CVE-2022-36024"},"products":["besu"],"published":"2022-09-24","related":[{"cvss_score":7.5,"headline":"SHL, SHR, and SAR operations trigger native exception at key values in besu","id":"CVE-2021-41272","kev_date_added":null,"published":"2021-12-13"},{"cvss_score":6.5,"headline":"Potential DoS in Besu HTTP JSON-RPC API","id":"CVE-2021-21369","kev_date_added":null,"published":"2021-03-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["hyperledger"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2022-36025/"}