CVE-2022-23633Rubyonrails Rails
Medium 5.9 No auth needed
Follow: this CVE · Rubyonrails · Rubyonrails Rails We alert you by email or Slack (account required).
- Priority
- 51
- CVSS 3.1
- 5.9
- EPSS
- 1.7% probability of exploitation in 30 days · percentile 78
- Auth required
- No
- Published
- Feb 11, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Rails.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | actionpack |
≥ 5.0.0.0 < 5.2.6.2 |
5.2.6.2 |
gem "actionpack", ">= 5.2.6.2" |
| RubyGems | actionpack |
≥ 6.0.0.0 < 6.0.4.6 |
6.0.4.6 |
gem "actionpack", ">= 6.0.4.6" |
| RubyGems | actionpack |
≥ 6.1.0.0 < 6.1.4.6 |
6.1.4.6 |
gem "actionpack", ">= 6.1.4.6" |
| RubyGems | actionpack |
≥ 7.0.0.0 < 7.0.2.2 |
7.0.2.2 |
gem "actionpack", ">= 7.0.2.2" |
Per OSV / GitHub Advisories (GHSA-wh98-p28r-vrc9). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | rails | ≥ 5.0.0 < 5.2.6.2 |
| rubyonrails | rails | ≥ 6.0.0 < 6.0.4.6 |
| rubyonrails | rails | ≥ 6.1.0 < 6.1.4.6 |
| rubyonrails | rails | ≥ 7.0.0 < 7.0.2.2 |
| debian | debian_linux | 10.0 |
| debian | debian_linux | 11.0 |
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com Mailing List Mitigation Patch
- github.com Patch Third Party Advisory
- github.com Mitigation Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- security.netapp.com
- www.debian.org Third Party Advisory