CVE-2021-29509: Puma - Denial of Service
- Cve: CVE-2021-29509
- Name: Puma - Denial of Service
- Description: Puma is a concurrent HTTP 1.1 server for Ruby/Rack applications. The fix for CVE-2019-16770 was incomplete. The original fix only protected existing connections that had already been accepted from having their requests starved by greedy persistent-connections saturating all threads in the same process. However, new connections may still be starved by greedy persistent-connections saturating all threads in all processes in the cluster. A `puma` server which received more concurrent `keep-alive` connections than the server had threads in its threadpool would service only a subset of connections, denying service to the unserved connections. This problem has been fixed in `puma` 4.3.8 and 5.3.1. Setting `queue_requests false` also fixes the issue. This is not advised when using `puma` without a reverse proxy, such as `nginx` or `apache`, because you will open yourself to slow client attacks (e.g. slowloris). The fix is very small and a git patch is available for those using unsupported versions of Puma.
- Impact: Attackers can cause denial of service by saturating server threads with persistent connections, denying service to legitimate clients.
- Remediation: Update to Puma 4.3.8 or 5.3.1, or set 'queue_requests false' (not recommended without a reverse proxy).
- Vulnerability type: denial_of_service
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.01599
- Epss percentile: 0.76275
- Assignee: [email protected]
- Published at: 2021-05-11T17:15:07Z
- Age in days: 2023
- Modified at: 2026-06-17T03:47:48Z
- Patch available: yes
- References total: 6
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-29509
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-400 | Uncontrolled Resource Consumption |
| CWE-667 | Improper Locking |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://gist.github.com/nateberkopec/4b3ea5676c0d70cbb37c82d54be25837 | Patch, Third Party Advisory |
| https://github.com/puma/puma/security/advisories/GHSA-q28m-8xjw-8vr5 | Patch, Third Party Advisory |
| https://github.com/puma/puma/security/policy | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2022/08/msg00015.html | Mailing List, Third Party Advisory |
| https://rubygems.org/gems/puma | Product, Third Party Advisory |
| https://security.gentoo.org/glsa/202208-28 | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| puma:puma | >= 5.0.0, < 5.3.1; < 4.3.8 | no | nvd | /v1/products/puma/puma |
| debian:debian_linux | = 10.0 | no | nvd | /v1/products/debian/debian_linux |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| puma/puma | package, security_advisory | yes | /v1/repositories/puma/puma |
Index
- Repositories: 35
- Repositories high signal: 5
- Packages: 1
Exploitation
- Remote: yes
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports