SecurityContext

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

IdName
CWE-400Uncontrolled Resource Consumption
CWE-667Improper Locking

References

Same in every row:

  • Source: nvd
UrlTags
https://gist.github.com/nateberkopec/4b3ea5676c0d70cbb37c82d54be25837Patch, Third Party Advisory
https://github.com/puma/puma/security/advisories/GHSA-q28m-8xjw-8vr5Patch, Third Party Advisory
https://github.com/puma/puma/security/policyThird Party Advisory
https://lists.debian.org/debian-lts-announce/2022/08/msg00015.htmlMailing List, Third Party Advisory
https://rubygems.org/gems/pumaProduct, Third Party Advisory
https://security.gentoo.org/glsa/202208-28Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
puma:puma>= 5.0.0, < 5.3.1; < 4.3.8nonvd/v1/products/puma/puma
debian:debian_linux= 10.0nonvd/v1/products/debian/debian_linux

Projects

RepositoryLink kindsIndexedUrl
puma/pumapackage, security_advisoryyes/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