{"answers":{"affected":"2 open source packages ship an affected version, including pallet-ethereum. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-39193 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-39193 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-39193 is a medium-severity vulnerability in paritytech frontier, published on 3 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-39193 and fix it if it is affected.\n\nWhat it is: CVE-2021-39193 is a medium-severity vulnerability in paritytech frontier, published on 3 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-39193 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pallet-ethereum (crates.io): affected all versions up to 3.0.0; no fix listed\n- pallet-ethereum (crates.io): affected all versions up to 3.0.0; no fix listed\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-2021-39193/ (Markdown: https://insights.sbomify.com/CVE-2021-39193/index.md)","id":"CVE-2021-39193","markdown":"https://insights.sbomify.com/CVE-2021-39193/index.md","name":"CVE-2021-39193","record":{"aliases":["GHSA-hw4v-5x4h-c3xm"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Substrate Ethereum compatibility","requires_auth":"none","summary":"Attackers can include invalid Ethereum transactions in block state due to missing input validation, though they have no functional effect on the system.","user_interaction":"not_required","vuln_class":"business_logic"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"frontier","vendor":"parity"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-1284","name":"Improper Validation of Specified Quantity in Input"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"Frontier is Substrate's Ethereum compatibility layer. Prior to commit number 0b962f218f0cdd796dadfe26c3f09e68f7861b26, a bug in `pallet-ethereum` can cause invalid transactions to be included in the Ethereum block state in `pallet-ethereum` due to not validating the input data size. Any invalid transactions included this way have no possibility to alter the internal Ethereum or Substrate state. The transaction will appear to have be included, but is of no effect as it is rejected by the EVM engine. The impact is further limited by Substrate extrinsic size constraints. A patch is available in commit number 0b962f218f0cdd796dadfe26c3f09e68f7861b26. There are no workarounds aside from applying the patch.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Transaction validity oversight in pallet-ethereum","id":"CVE-2021-39193","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"business_logic","year":"2021"},"n_packages":2,"n_references":4,"next":{"headline":"Denial of service while parsing polymorphic input with tagged polymorphism style in kaml","id":"CVE-2021-39194"},"packages":[{"ecosystem":"crates.io","fixed":[],"introduced":["0"],"last_affected":["3.0.0"],"package":"pallet-ethereum","purl":null,"source":"GHSA-hw4v-5x4h-c3xm"},{"ecosystem":"crates.io","fixed":[],"introduced":["0"],"last_affected":["3.0.0"],"package":"pallet-ethereum","purl":"pkg:cargo/pallet-ethereum","source":"GHSA-hw4v-5x4h-c3xm"}],"prev":{"headline":"Privilege escalation: all users can access Admin-level API keys","id":"CVE-2021-39192"},"products":["frontier"],"published":"2021-09-03","related":[{"cvss_score":7.5,"headline":"Frontier opcode SUICIDE touches too many storage values on large contracts","id":"CVE-2023-45130","kev_date_added":null,"published":"2023-10-13"},{"cvss_score":7.5,"headline":"Frontier's modexp precompile is slow for even modulus","id":"CVE-2023-28431","kev_date_added":null,"published":"2023-03-22"},{"cvss_score":7.1,"headline":"Message length overflow in frontier","id":"CVE-2022-36008","kev_date_added":null,"published":"2022-08-19"},{"cvss_score":6.5,"headline":"Integer underflow in Frontier","id":"CVE-2022-21685","kev_date_added":null,"published":"2022-01-14"},{"cvss_score":5.3,"headline":"Incorrect Calculation in Frontier leads to inflated Ethereum chain gas prices","id":"CVE-2022-39242","kev_date_added":null,"published":"2022-09-24"},{"cvss_score":5.3,"headline":"Discrepency in transfer value and actual value due to incorrect truncation in Frontier","id":"CVE-2022-31111","kev_date_added":null,"published":"2022-07-06"},{"cvss_score":5.3,"headline":"Validity check for signed Frontier-specific extrinsic not called in block execution","id":"CVE-2021-41138","kev_date_added":null,"published":"2021-10-13"}],"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["paritytech"]},"summary":"Attackers can include invalid Ethereum transactions in block state due to missing input validation, though they have no functional effect on the system.","url":"https://insights.sbomify.com/CVE-2021-39193/"}