CVE-2022-24790Puma
High 7.5 No auth needed
Follow: this CVE · Puma · Puma We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.9% probability of exploitation in 30 days · percentile 80
- Auth required
- No
- Published
- Mar 30, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-444
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
Puma is a simple, fast, multi-threaded, parallel HTTP 1.1 server for Ruby/Rack applications. When using Puma behind a proxy that does not properly validate that the incoming HTTP request matches the RFC7230 standard, Puma and the frontend proxy may disagree on where a request starts and ends. This would allow requests to be smuggled via the front-end proxy to Puma. The vulnerability has been fixed in 5.6.4 and 4.3.12. Users are advised to upgrade as soon as possible. Workaround: when deploying a proxy in front of Puma, turning on any and all functionality to make sure that the request matches the RFC7230 standard.
What to do
- Apply the vendor's security update for Puma.
- 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 | puma |
≥ 5.0.0 < 5.6.4 |
5.6.4 |
gem "puma", ">= 5.6.4" |
| RubyGems | puma |
< 4.3.12 |
4.3.12 |
gem "puma", ">= 4.3.12" |
Per OSV / GitHub Advisories (GHSA-h99w-9q5r-gjq9). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| puma | puma | < 4.3.12 |
| puma | puma | ≥ 5.0.0 < 5.6.4 |
| debian | debian_linux | 10.0 |
| debian | debian_linux | 11.0 |
| fedoraproject | fedora | 35 |
| fedoraproject | fedora | 36 |
| fedoraproject | fedora | 37 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Issue Tracking Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.gentoo.org Third Party Advisory
- www.debian.org Third Party Advisory