CVE-2022-23634

MEDIUMCVSS 5.9/10EPSS 2.09%

Last modified

CVE-2022-23634 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. 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. EPSS estimates a 2.09% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
5.9/10

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

EPSS Probability
2.09%

79.3th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PumaPuma< 4.3.11
PumaPuma>= 5.0.0, < 5.6.2
RubyonrailsRails>= 5.0.0, < 5.2.6.2
RubyonrailsRails>= 6.0.0, < 6.0.4.6
RubyonrailsRails>= 6.1.0, < 6.1.4.6
RubyonrailsRails>= 7.0.0, < 7.0.2.2
DebianDebian Linux9.0
DebianDebian Linux10.0
DebianDebian Linux11.0
FedoraprojectFedora35
FedoraprojectFedora36
FedoraprojectFedora37

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2022-23634?
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.
How severe is CVE-2022-23634?
CVE-2022-23634 has a CVSS score of 5.9/10 (MEDIUM severity). The EPSS model estimates a 2.09% probability of exploitation in the next 30 days.
How do I fix CVE-2022-23634?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2022-23634?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST