cve.bz

CVE-2022-23633

5.9 mediumEPSS 2.2%Fix available

Medium (5.9). EPSS 2.2% estimated probability of exploitation activity in the next 30 days. Fixed in actionpack 5.2.6.2, 6.0.4.6, 6.1.4.6.

On this page
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.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
2.2% (unchanged from 2.2% a week ago; 2.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 83rd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-212 Improper Removal of Sensitive Information Before Storage or Transfer
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-23633 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-23633?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-23633?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-23633 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rubyonrails:railsfrom 5.0.0 before 5.2.6.2
rubyonrails:railsfrom 6.0.0 before 6.0.4.6
rubyonrails:railsfrom 6.1.0 before 6.1.4.6
rubyonrails:railsfrom 7.0.0 before 7.0.2.2
debian:debian_linux10.0
debian:debian_linux11.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wh98-p28r-vrc9RubyGemsactionpack>=5.0.0.0 <5.2.6.25.2.6.2
GHSA-wh98-p28r-vrc9RubyGemsactionpack>=6.0.0.0 <6.0.4.66.0.4.6
GHSA-wh98-p28r-vrc9RubyGemsactionpack>=6.1.0.0 <6.1.4.66.1.4.6
GHSA-wh98-p28r-vrc9RubyGemsactionpack>=7.0.0.0 <7.0.2.27.0.2.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10rails2:5.2.2.1+dfsg-1+deb10u4DLA-3093-1
Debian11rails2:6.0.3.7+dfsg-2+deb11u1DSA-5372-1
Debian12, 13, 14rails2:6.1.4.6+dfsg-1DEBIAN-CVE-2022-23633
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 5 morerailsno fix listedUBUNTU-CVE-2022-23633
Red Hatsatellite:6.11::el7candlepin0:4.1.13-1.el7satRHSA-2022:5498
Red Hatsatellite:6.11::el7tfm-rubygem-actionpack0:6.0.4.7-1.el7satRHSA-2022:5498
Red Hatsatellite:6.11::el7tfm-rubygem-puma, tfm-rubygem-puma-debuginfo0:5.6.2-1.el7satRHSA-2022:5498
Red Hatsatellite:6.11::el7tfm-rubygem-sidekiq0:5.2.10-1.el7satRHSA-2022:5498
Red Hatsatellite:6.11::el7, satellite_capsule:6.11::el7libsolv0:0.7.22-1.el7pcRHSA-2022:5498
Red Hatsatellite:6.11::el7, satellite_capsule:6.11::el7, satellite_utils:6.11::el7foreman0:3.1.1.21-2.el7satRHSA-2022:5498
Red Hatsatellite:6.11::el7, satellite_capsule:6.11::el7, satellite_utils:6.11::el7satellite0:6.11.0-2.el7satRHSA-2022:5498
Red Hatsatellite:6.11::el8candlepin0:4.1.13-1.el8satRHSA-2022:5498
Red Hatsatellite:6.11::el8rubygem-actionpack0:6.0.4.7-1.el8satRHSA-2022:5498
Red Hatsatellite:6.11::el8rubygem-puma, rubygem-puma-debuginfo, rubygem-puma-debugsource0:5.6.2-1.el8satRHSA-2022:5498
Red Hatsatellite:6.11::el8rubygem-sidekiq0:5.2.10-1.el8satRHSA-2022:5498
Red Hatsatellite:6.11::el8, satellite_capsule:6.11::el8libsolv0:0.7.22-1.el8pcRHSA-2022:5498
5 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise High Availability Extension 15 SP1, Linux Enterprise High Availability Extension 15 SP2 and 2 morerubygem-actionpack-5_15.1.4-150000.3.12.1SUSE-SU-2022:2108-1
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise High Availability Extension 15 SP1, Linux Enterprise High Availability Extension 15 SP2 and 2 morerubygem-activesupport-5_15.1.4-150000.3.6.1SUSE-SU-2022:2108-1
openSUSELeap 15.3, Leap 15.4rubygem-actionpack-5_15.1.4-150000.3.12.1SUSE-SU-2022:2108-1
openSUSELeap 15.3, Leap 15.4rubygem-activesupport-5_15.1.4-150000.3.6.1SUSE-SU-2022:2108-1
openSUSETumbleweedruby3.2-rubygem-actionpack-7.07.0.4.3-1.1openSUSE-SU-2024:12878-1
openSUSETumbleweedrubygem-actionpack-6.06.0.4.6-1.1openSUSE-SU-2024:11869-1
openSUSETumbleweedrubygem-actionpack-7.07.0.2.2-1.1openSUSE-SU-2024:11899-1
openSUSETumbleweedrubygem-actionpack-7.07.0.8.4-1.1openSUSE-SU-2024:14067-1
openSUSETumbleweedrubygem-actionpack-7.07.0.8.6-1.3openSUSE-SU-2025:15110-1
Rocky Linux8libdb0:5.3.28-42.el8_4RLSA-2022:5498

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

A workaround for this problem:

~~~

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

~~~

ProductPackageStateAdvisory
Red Hat Satellite 6.11 for RHEL 7tfm-rubygem-actionpack-0:6.0.4.7-1.el7satFixed 2022-07-05RHSA-2022:5498
Red Hat Satellite 6.11 for RHEL 8tfm-rubygem-actionpack-0:6.0.4.7-1.el8satFixed 2022-07-05RHSA-2022:5498

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-23633.

Attack patterns (CAPEC)

  • CAPEC-168 Windows ::DATA Alternate Data Stream Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON