Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-wh98-p28r-vrc9

Опубликовано: 11 фев. 2022
Источник: github
Github: Прошло ревью
CVSS3: 7.4

Описание

Exposure of information in Action Pack

Impact

Under certain circumstances response bodies will not be closed, for example a bug in a webserver or a bug in a Rack middleware. 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, especially when interacting with ActiveSupport::CurrentAttributes.

Upgrading to the FIXED versions of Rails will ensure mitigation of this issue even in the context of a buggy webserver or middleware implementation.

Patches

This has been fixed in Rails 7.0.2.2, 6.1.4.6, 6.0.4.6, and 5.2.6.2.

Workarounds

Upgrading is highly recommended, but to work around this problem the following middleware can be used:

class GuardedExecutor < ActionDispatch::Executor def call(env) ensure_completed! super end private def ensure_completed! @executor.new.complete! if @executor.active? end end # Ensure the guard is inserted before ActionDispatch::Executor Rails.application.configure do config.middleware.swap ActionDispatch::Executor, GuardedExecutor, executor end

Пакеты

Наименование

actionpack

rubygems
Затронутые версииВерсия исправления

>= 5.0.0.0, <= 5.2.6.1

5.2.6.2

Наименование

actionpack

rubygems
Затронутые версииВерсия исправления

>= 6.0.0.0, <= 6.0.4.5

6.0.4.6

Наименование

actionpack

rubygems
Затронутые версииВерсия исправления

>= 6.1.0.0, <= 6.1.4.5

6.1.4.6

Наименование

actionpack

rubygems
Затронутые версииВерсия исправления

>= 7.0.0.0, <= 7.0.2.1

7.0.2.2

EPSS

Процентиль: 58%
0.00368
Низкий

7.4 High

CVSS3

Дефекты

CWE-200
CWE-212

Связанные уязвимости

CVSS3: 7.4
ubuntu
почти 4 года назад

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.

CVSS3: 5.9
redhat
почти 4 года назад

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.

CVSS3: 7.4
nvd
почти 4 года назад

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.

CVSS3: 7.4
debian
почти 4 года назад

Action Pack is a framework for handling and responding to web requests ...

suse-cvrf
больше 3 лет назад

Security update for rubygem-actionpack-5_1, rubygem-activesupport-5_1

EPSS

Процентиль: 58%
0.00368
Низкий

7.4 High

CVSS3

Дефекты

CWE-200
CWE-212