GHSA-4HG4-9MF5-WXXQ
incorrect order of evaluation of side effects for some builtins
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-4HG4-9MF5-WXXQ divulgada | |
| Remediación | Parche 0.3.10 | vyper · 30 d desde divulgación | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice |
### Impact
The order of evaluation of the arguments of the builtin functions `uint256_addmod`, `uint256_mulmod`, `ecadd` and `ecmul` does not follow source order.
• For `uint256_addmod(a,b,c)` and `uint256_mulmod(a,b,c)`, the order is `c,a,b`.
• For `ecadd(a,b)` and `ecmul(a,b)`, the order is `b,a`.
Note that this behaviour is problematic when the evaluation of one of the arguments produces side effects that other arguments depend on.
### Patches
https://github.com/vyperlang/vyper/pull/3583
### Workarounds
When using builtins from the list above, make sure that the arguments of the expression do not produce side effects or, if one does, that no other argument is dependent on those side effects.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypivyper |
Corregida | 0.3.10 | 30 d | 0.4.3 no afectada |
0.3.10Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://nvd.nist.gov/vuln/detail/CVE-2023-41052https://github.com/vyperlang/vyper/security/advisories/GHSA-4hg4-9mf5-wxxqhttps://github.com/vyperlang/vyper/pull/3583https://github.com/vyperlang/vyper/commit/78fa8dd8f91ba0cb26277eeffb585c68c83e7daahttps://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2023-168.yamlhttps://github.com/vyperlang/vyperLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
