CVE-2022-23634
Information Exposure when using Puma with Rails
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High8.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N |
| NVDNVD · Modified | 3.1 | Medium5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 2.1% · top 18% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.0.
Weakness
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- RubyGemspumaGHSA-rmj8-8hhh-gv5h (opens in a new tab)
References (12)
- https://github.com/puma/puma/security/advisories/GHSA-rmj8-8hhh-gv5h (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/puma/puma/commit/b70f451fe8abc0cff192c065d549778452e155bb (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/advisories/GHSA-rmj8-8hhh-gv5h (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/advisories/GHSA-wh98-p28r-vrc9 (opens in a new tab)x_refsource_MISCx_transferred
- https://groups.google.com/g/ruby-security-ann/c/FkTM-_7zSNA/m/K2RiMJBlBAAJ?utm_medium=email&utm_source=footer&pli=1 (opens in a new tab)x_refsource_MISCx_transferred
- DSA-5146 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- [debian-lts-announce] 20220525 [SECURITY] [DLA 3023-1] puma security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- GLSA-202208-28 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
- [debian-lts-announce] 20220827 [SECURITY] [DLA 3083-1] puma security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- FEDORA-2022-de968d1b6c (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2022-52d0032596 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2022-7c8b29195f (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-rmj8-8hhh-gv5h (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-23634)Record last updated .