llamaCVEVulnerability Intelligence
/
Advisory · GitHub · RubyGems · activesupport

GHSA-2P68-F74V-9WC6

ActiveSupport potentially unintended unmarshalling of user-provided objects in MemCacheStore and RedisCacheStore

Parche disponible
Descargar PNG JSON
CVSS
—
critical
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versionesPrimer parche a -8 d de la divulgación
Exposición2.368 dDesde la divulgación, 26 may 2020, 9:49 a. m.
Detección2.365 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 5.2.4.3 +1
Monitoreo
Detectada
18 may 20
26 may 20
9 may 25
17 nov 26
19 nov 26
18 may 20
2 ene 22
19 ago 23
4 abr 25
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 5.2.4.3 activesupport · -8 d desde divulgación
Remediación Parche 6.0.3.1 activesupport · -8 d desde divulgación
Divulgación Publicada GHSA-2P68-F74V-9WC6 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

In ActiveSupport, there is potentially unexpected behaviour in the MemCacheStore and RedisCacheStore where, when
untrusted user input is written to the cache store using the `raw: true` parameter, re-reading the result
from the cache can evaluate the user input as a Marshalled object instead of plain text. Vulnerable code looks like:

data = cache.fetch("demo", raw: true) { untrusted_string }

Versions Affected: rails < 5.2.5, rails < 6.0.4
Not affected: Applications not using MemCacheStore or RedisCacheStore. Applications that do not use the `raw` option when storing untrusted user input.
Fixed Versions: rails >= 5.2.4.3, rails >= 6.0.3.1

Impact
------
Unmarshalling of untrusted user input can have impact up to and including RCE. At a minimum,
this vulnerability allows an attacker to inject untrusted Ruby objects into a web application.
In addition to upgrading to the latest versions of Rails, developers should ensure that whenever
they are calling `Rails.cache.fetch` they are using consistent values of the `raw` parameter for both
reading and writing, especially in the case of the RedisCacheStore which does not, prior to these changes,
detect if data was serialized using the raw option upon deserialization.

Workarounds
-----------
It is recommended that application developers apply the suggested patch or upgrade to the latest release as
soon as possible. If this is not possible, we recommend ensuring that all user-provided strings cached using
the `raw` argument should be double-checked to ensure that they conform to the expected format.

Versiones

Rangos afectados

Afectada Corregida Última
activesupport≥ 5.0.0 < 5.2.4.3
activesupport≥ 6.0.0 < 6.0.3.1
5.0.0
5.2.4.3
6.0.0
6.0.3.1
8.1.4.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
rubygemsactivesupport
Corregida 5.2.4.3, 6.0.3.1 -8 d · -8 d 8.1.4.1 no afectada
Versiones corregidas5.2.4.36.0.3.1
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-2020-8165
Otrahttps://hackerone.com/reports/413388
Otrahttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2020-8165.yml
Otrahttps://groups.google.com/forum/#!topic/rubyonrails-security/bv6fW4S0Y1c
Otrahttps://groups.google.com/g/rubyonrails-security/c/bv6fW4S0Y1c
Otrahttps://lists.debian.org/debian-lts-announce/2020/06/msg00022.html
Otrahttps://lists.debian.org/debian-lts-announce/2020/07/msg00013.html
Otrahttps://security.netapp.com/advisory/ntap-20250509-0002
Otrahttps://weblog.rubyonrails.org/2020/5/18/Rails-5-2-4-3-and-6-0-3-1-have-been-released
Otrahttps://www.debian.org/security/2020/dsa-4766
Otrahttp://lists.opensuse.org/opensuse-security-announce/2020-10/msg00031.html
Otrahttp://lists.opensuse.org/opensuse-security-announce/2020-10/msg00034.html

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