GHSA-4V7V-GQF9-WW2G
Vyper: Call stack corruption when passing complex type containing non-base type members as argument
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 0.2.6 | vyper · -2187 d desde divulgación | |
| Divulgación | Publicada | GHSA-4V7V-GQF9-WW2G divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice |
### Impact
When we pass a multi-dimensional array (like `[[1, 2], [3, 4]]`) as an argument to internal/external functions we get incorrect output. This is due to a stack management issue, because it was assumed that the size of each subtype of an array/struct is 32, which is not always correct.
Example code:
@internal
def test_input(arr: int128[2][1], i: int128) -> (int128[2][1], int128):
return arr, i
@external
def test_values(arr: int128[2][1], i: int128) -> (int128[2][1], int128):
return self.test_input(arr, i)Please see #2183 for further information
### Patches
This problem was fixed in #2184, and released as a part of `v0.2.6` https://github.com/vyperlang/vyper/releases/tag/v0.2.6.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypivyper |
Corregida | 0.2.6 | -2187 d | 0.4.3 no afectada |
0.2.6Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/vyperlang/vyper/security/advisories/GHSA-4v7v-gqf9-ww2ghttps://github.com/vyperlang/vyper/issues/2183https://github.com/vyperlang/vyper/pull/2184https://github.com/vyperlang/vyper/commit/0be02b7331e8febe79d5a4218829c72e30417a29https://github.com/vyperlang/vyperhttps://github.com/vyperlang/vyper/releases/tag/v0.2.6Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
