llamaCVEVulnerability Intelligence
/
rails

CVE-2022-23633

Exposure of sensitive information in Action Pack

UnclearParche disponible
Descargar PNG JSON
CVSS 3.1
7.4
Alta
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N Fuente: CNA
5.9NVD · CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche8 versionesPrimer parche el mismo día de la divulgación
Exposición1.744 dDesde la divulgación, 11 feb 2022
Detección1.726 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.6.2 +3
Monitoreo
Detectada
Verificada
11 feb 22
3 ago 24
3 nov 26
18 nov 26
21 nov 26
11 feb 22
23 abr 23
2 jul 24
11 sept 25
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2022-23633 divulgada · CVSS 7.4 (CNA)
Remediación Parche 5.2.6.2 actionpack · 0 d desde divulgación
Remediación Parche 6.0.4.6 actionpack · 0 d desde divulgación
Remediación Parche 6.1.4.6 actionpack · 0 d desde divulgación
Remediación Parche 7.0.2.2 actionpack · 0 d desde divulgación
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen

Action Pack is a framework for handling and responding to web requests. Under certain circumstances response bodies will not be closed. In the event a response is *not* notified of a `close`, `ActionDispatch::Executor` will not know to reset thread local state for the next request. This can lead to data being leaked to subsequent requests.This has been fixed in Rails 7.0.2.1, 6.1.4.5, 6.0.4.5, and 5.2.6.1. Upgrading is highly recommended, but to work around this problem a middleware described in GHSA-wh98-p28r-vrc9 can be used.

Affects Action Pack in Rails 5.0 through releases before the fixed versions, when response bodies are not closed, such as from a webserver or Rack middleware bug. Fixed in 7.0.2.1, 6.1.4.5, 6.0.4.5, and 5.2.6.1.

¿Qué significa?Thread local state is not reset between requests when response bodies are not closed, so data can leak to subsequent requests. The risk is greatest when using ActiveSupport::CurrentAttributes.
¿Quién está afectado?Affected Rails versions are 5.0.0 up to 5.2.6.1, 6.0.0 up to 6.0.4.5, 6.1.0 up to 6.1.4.5, and 7.0.0 up to 7.0.2.1, and the setup involves response bodies that are not closed, such as from a webserver or Rack middleware bug. To check a project, run bin/rails -v or look at the actionpack entry in Gemfile.lock.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Response bodies are not closed, for example because of a bug in a webserver or a Rack middleware.“Under certain circumstances response bodies will not be closed, for example a bug in a webserver or a bug in a Rack middleware.”
¿Quién debe revisar?Teams running Rails on Action Pack 5.0.0 or later, especially Ruby on Rails stacks behind a webserver or Rack middleware that may leave response bodies unclosed.
MitigaciónInstall a GuardedExecutor middleware that calls complete! on any active executor, inserted before ActionDispatch::Executor.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:H
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
7.1/ 10Alto
Vector 7.1 (fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
rails≥ 5.0.0 < 5.2.6.1
actionpack≥ 5.0.0.0 < 5.2.6.2
rails≥ 6.0.0.0 < 6.0.4.5
actionpack≥ 6.0.0.0 < 6.0.4.6
rails≥ 6.1.0.0 < 6.1.4.5
actionpack≥ 6.1.0.0 < 6.1.4.6
rails≥ 7.0.0.0 < 7.0.2.1
actionpack≥ 7.0.0.0 < 7.0.2.2
5.0.0
5.0.0.0
5.2.6.1
5.2.6.2
6.0.0.0
6.0.4.5
6.0.4.6
6.1.0.0
6.1.4.5
6.1.4.6
7.0.0.0
7.0.2.1
7.0.2.2
8.1.4.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
rubygemsactionpack
Corregida 5.2.6.2, 6.0.4.6, 6.1.4.6, 7.0.2.2 0 d · 0 d · 0 d · 0 d 8.1.4.1 no afectada
Versiones corregidas5.2.6.15.2.6.26.0.4.56.0.4.66.1.4.56.1.4.67.0.2.17.0.2.2
Explotación

Arsenal público

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

Referencias
Advisoryhttps://www.debian.org/security/2023/dsa-5372
Fabricantehttps://github.com/rails/rails/security/advisories/GHSA-wh98-p28r-vrc9
Análisishttp://www.openwall.com/lists/oss-security/2022/02/11/5
Otrahttps://github.com/rails/rails/commit/f9a2ad03943d5c2ba54e1d45f155442b519c75da
Otrahttps://lists.debian.org/debian-lts-announce/2022/09/msg00002.html
Otrahttps://security.netapp.com/advisory/ntap-20240119-0013/

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