Vulnerability · Published Feb 11, 2022 · Assigned by GitHub_M
CVE-2022-23634Information Exposure when using Puma with Rails
High 8.0
In plain English
A high-severity information exposure in puma from puma. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 82% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Puma is a Ruby/Rack web server built for parallelism. Prior to `puma` version `5.6.2`, `puma` may not always call `close` on the response body. Rails, prior to version `7.0.2.2`, depended on the response body being closed in order for its `CurrentAttributes` implementation to work correctly. The combination of these two behaviors (Puma not closing the body + Rails' Executor implementation) causes information leakage. This problem is fixed in Puma versions 5.6.2 and 4.3.11. This problem is fixed in Rails versions 7.02.2, 6.1.4.6, 6.0.4.6, and 5.2.6.2. Upgrading to a patched Rails _or_ Puma version fixes the vulnerability.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | puma | 5.6.4-1 | DEBIAN-CVE-2022-23634 |
| Debian:13 | puma | 5.6.4-1 | DEBIAN-CVE-2022-23634 |
| Debian:14 | puma | 5.6.4-1 | DEBIAN-CVE-2022-23634 |
| Rocky Linux:8 | libdb | 0:5.3.28-42.el8_4 | RLSA-2022:5498 |
| RubyGems | puma | 5.6.2 | GHSA-rmj8-8hhh-gv5h |
| RubyGems | puma | 4.3.11 | GHSA-rmj8-8hhh-gv5h |
Affected products (as reported)
Weakness: CWE-200 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
References
- https://github.com/puma/puma/security/advisories/GHSA-rmj8-8hhh-gv5h x_refsource_CONFIRM
- https://github.com/puma/puma/commit/b70f451fe8abc0cff192c065d549778452e155bb x_refsource_MISC
- https://github.com/advisories/GHSA-rmj8-8hhh-gv5h x_refsource_MISC
- https://github.com/advisories/GHSA-wh98-p28r-vrc9 x_refsource_MISC
- https://groups.google.com/g/ruby-security-ann/c/FkTM-_7zSNA/m/K2RiMJBlBAAJ?utm_medium=email&utm_source=footer&pli=1 x_refsource_MISC
- DSA-5146 vendor-advisory, x_refsource_DEBIAN
- [debian-lts-announce] 20220525 [SECURITY] [DLA 3023-1] puma security update mailing-list, x_refsource_MLIST
- GLSA-202208-28 vendor-advisory, x_refsource_GENTOO
- [debian-lts-announce] 20220827 [SECURITY] [DLA 3083-1] puma security update mailing-list, x_refsource_MLIST
- FEDORA-2022-de968d1b6c vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-52d0032596 vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-7c8b29195f vendor-advisory, x_refsource_FEDORA