CVE-2022-23633 — Exposure of information in actionpack — CVE Details
Exposure of information in Action Pack
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.71%). Schedule for your next planned update.
Does your project use an affected actionpack version?
Paste your Gemfile.lock to check it for CVE-2022-23633 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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
Advisory Timeline
- First published February 11, 2022 (1749 days ago).
- Last revised February 4, 2026 — 1453 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install actionpack -v 6.1.4.6
gem install actionpack -v 5.2.6.2
gem install actionpack -v 7.0.2.2
gem install actionpack -v 6.0.4.6
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| actionpack RubyGems · Affected: 6.1.0, 6.1.1, 6.1.2, 6.1.2.1 (+9 more) | 6.1.4.6 |
| actionpack RubyGems · Affected: 5.0.0, 5.0.0.1, 5.0.1, 5.0.1.rc1 (+58 more) | 5.2.6.2 |
| actionpack RubyGems · Affected: 7.0.0, 7.0.1, 7.0.2, 7.0.2.1 | 7.0.2.2 |
| actionpack RubyGems · Affected: 6.0.0, 6.0.1, 6.0.1.rc1, 6.0.2 (+19 more) | 6.0.4.6 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-200Information ExposureMITRE
- CWE-212
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.4 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
References
- https://github.com/rails/rails/security/advisories/GHSA-wh98-p28r-vrc9WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-23633ADVISORY
- https://github.com/rails/rails/commit/f9a2ad03943d5c2ba54e1d45f155442b519c75daWEB
- https://discuss.rubyonrails.org/t/cve-2022-23633-possible-exposure-of-information-vulnerability-in-action-pack/80016WEB
- https://github.com/rails/railsPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2022-23633.ymlWEB
- https://groups.google.com/g/ruby-security-ann/c/FkTM-_7zSNA/m/K2RiMJBlBAAJWEB
- https://lists.debian.org/debian-lts-announce/2022/09/msg00002.htmlWEB
- https://rubyonrails.org/2022/2/11/Rails-7-0-2-2-6-1-4-6-6-0-4-6-and-5-2-6-2-have-been-releasedWEB
- https://security.netapp.com/advisory/ntap-20240119-0013WEB
- https://www.debian.org/security/2023/dsa-5372WEB
- https://www.openwall.com/lists/oss-security/2022/02/11/5WEB
Frequently Asked Questions
- What is CVE-2022-23633?
- Exposure of information in Action Pack. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.4/10).
- How do I check if my project is affected by CVE-2022-23633?
- CVE-2022-23633 affects actionpack. It has a 1.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-23633 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top quartile of EPSS-scored vulnerabilities — 77.8% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2011-1497MEDIUM
Cross site scripting in actionpack Rubygem
- CVE-2021-44528MEDIUM
actionpack Open Redirect in Host Authorization Middleware
- CVE-2026-126073MEDIUM
Action Pack: Possible cache poisoning in Action Pack content negotiation
- CVE-2026-126072MEDIUM
Action Pack: Possible DoS vulnerability in Action Controller Live streaming
- CVE-2024-47887MEDIUM
Possible ReDoS vulnerability in HTTP Token authentication in Action Controller
- CVE-2016-2097MEDIUM
actionview contains Path Traversal vulnerability
- CVE-2026-33167LOW
Rails has a possible XSS vulnerability in its Action Pack debug exceptions
- CVE-2024-54133LOW
Possible Content Security Policy bypass in Action Dispatch