llamaCVEVulnerability Intelligence
/
Advisory · GitHub · PyPI · vyper

GHSA-CX2Q-HFXR-RJ97

Vyper's `_abi_decode` input not validated in complex expressions

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a 8 d de la divulgación
Exposición1.149 dDesde la divulgación, 26 sept 2023, 2:34 p. m.
Detección1.147 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
26 sept 23
4 oct 23
19 nov 24
17 nov 26
19 nov 26
26 sept 23
10 jul 24
23 abr 25
5 feb 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-CX2Q-HFXR-RJ97 divulgada
Remediación Parche 0.3.10 vyper · 8 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
`_abi_decode()` does not validate input when it is nested in an expression. the following example gets correctly validated (bounds checked):

x: int128 = _abi_decode(slice(msg.data, 4, 32), int128)

however, the following example is not bounds checked

@external
def abi_decode(x: uint256) -> uint256:
    a: uint256 = convert(_abi_decode(slice(msg.data, 4, 32), (uint8)), uint256) + 1
    return a  # abi_decode(256) returns: 257

the issue can be triggered by constructing an example where the output of `_abi_decode` is not internally passed to `make_setter` (an internal codegen routine) or other input validating routine.

### Patches
https://github.com/vyperlang/vyper/pull/3626

### Workarounds
_Is there a way for users to fix or remediate the vulnerability without upgrading?_

### References
_Are there any links users can visit to find out more?_

Versiones

Rangos afectados

Afectada Corregida Última
vyper≥ 0.3.4 < 0.3.10
0.3.4
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 8 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-42460
Otrahttps://github.com/vyperlang/vyper/security/advisories/GHSA-cx2q-hfxr-rj97
Otrahttps://github.com/vyperlang/vyper/pull/3626
Otrahttps://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2023-191.yaml
Otrahttps://github.com/vyperlang/vyper

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