llamaCVEVulnerability Intelligence
/
Advisory · GitHub · PyPI · vyper

GHSA-J2X6-9323-FP7H

Integer bounds error in Vyper

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -3 d de la divulgación
Exposición1.672 dDesde la divulgación, 22 abr 2022, 3:24 p. m.
Detección1.669 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.2
Monitoreo
Detectada
19 abr 22
22 abr 22
8 nov 23
17 nov 26
19 nov 26
19 abr 22
12 jun 23
4 ago 24
27 sept 25
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 0.3.2 vyper · -3 d desde divulgación
Divulgación Publicada GHSA-J2X6-9323-FP7H divulgada
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
in the following code, the return of `<iface>.returns_int128()` is not validated to fall within the bounds of `int128`. as of v0.3.0, `<iface>.returns_int128()` is validated in simple expressions, but not complex expressions.

interface iface:
    def returns_int128() -> int128: view
    def returns_Bytes33() -> Bytes[33]: view

x: iface
 
@external
def call_out():
    x: int128 = self.x.returns_int128()  # affected, <0.3.0
    y: uint256 = convert(self.x.returns_int128(), uint256)  # affected, <0.3.2
    z: Bytes[33] = concat(self.x.returns_Bytes33(), b"")  # affected >= 0.3.0, <0.3.2

### Patches
0.3.2 (as of https://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b)

### Workarounds
Break up operations involving external calls into multiple statements. For instance, instead of the example above, use

x: int128 = self.x.returns_int128()
y: uint256 = convert(x, uint256)
Versiones

Rangos afectados

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

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypivyper
Corregida 0.3.2 -3 d 0.4.3 no afectada
Versiones corregidas0.3.2
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-2022-24845
Otrahttps://github.com/vyperlang/vyper/security/advisories/GHSA-j2x6-9323-fp7h
Otrahttps://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b
Otrahttps://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2022-198.yaml
Otrahttps://github.com/vyperlang/vyper

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