llamaCVEVulnerability Intelligence
/
Advisory · GitHub · PyPI · vyper

GHSA-4HG4-9MF5-WXXQ

incorrect order of evaluation of side effects for some builtins

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a 30 d de la divulgación
Exposición1.173 dDesde la divulgación, 4 sept 2023, 11:39 a. m.
Detección1.169 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 0.3.10
Monitoreo
Detectada
4 sept 23
4 oct 23
17 sept 26
17 nov 26
20 nov 26
4 sept 23
23 jun 24
13 abr 25
31 ene 26
20 nov 26
FechaFaseEventoDetalle
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
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

### 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.

Versiones

Rangos afectados

Afectada Corregida Última
vyper< 0.3.10
0.3.10
0.4.3
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypivyper
Corregida 0.3.10 30 d 0.4.3 no afectada
Versiones corregidas0.3.10
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2023-41052
Otrahttps://github.com/vyperlang/vyper/security/advisories/GHSA-4hg4-9mf5-wxxq
Otrahttps://github.com/vyperlang/vyper/pull/3583
Otrahttps://github.com/vyperlang/vyper/commit/78fa8dd8f91ba0cb26277eeffb585c68c83e7daa
Otrahttps://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2023-168.yaml
Otrahttps://github.com/vyperlang/vyper

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.