CVE-2021-39193
JSON

5.3medium

Transaction validity oversight in pallet-ethereum

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.19% (higher than 68% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-hw4v-5x4h-c3xm

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.

Affected

Product or packageVersionsReported by
paritytech frontier< 0b962f218f0cdd796dadfe26c3f09e68f7861b26CVE List
pallet-ethereum (crates.io)up to 3.0.0GitHub Advisory Database
parity frontierbefore 2021-09-03NVD

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:P/A:N

Classification

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

Patches

Patches are applied in PR #465.

Workarounds

None.

References

Patch PR: https://github.com/paritytech/frontier/pull/465

For more information

If you have any questions or comments about this advisory:

NVD (es)

Frontier es la capa de compatibilidad con Ethereum de Substrate. Anterior al commit número 0b962f218f0cdd796dadfe26c3f09e68f7861b26, un error en "pallet-ethereum" puede causar que se incluyan transacciones no válidas en el estado del bloque de Ethereum en "pallet-ethereum" debido a que no es comprobado el tamaño de los datos de entrada. Cualquier transacción no válida incluida de esta manera no presenta posibilidad de alterar el estado interno de Ethereum o del Substrato. La transacción parecerá haber sido incluida, pero no tiene ningún efecto ya que es rechazada por el motor EVM. El impacto es aún más limitado por las restricciones de tamaño extrínsecas del sustrato. Se presenta un parche disponible en el commit número 0b962f218f0cdd796dadfe26c3f09e68f7861b26. No se presentan soluciones aparte de aplicar el parche

References

Sources

SourceRecordLicence
CVE ListCVE-2021-39193 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-hw4v-5x4h-c3xm changed 2026-07-08CC-BY-4.0
NVDCVE-2021-39193 changed 2026-06-17Public domain