{"api_version":"1","generated_at":"2026-04-23T01:32:25+00:00","cve":"CVE-2021-29509","urls":{"html":"https://cve.report/CVE-2021-29509","api":"https://cve.report/api/cve/CVE-2021-29509.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-29509","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-29509"},"summary":{"title":"CVE-2021-29509","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-05-11 17:15:00","updated_at":"2022-10-27 12:39:00"},"problem_types":["CWE-400"],"metrics":[],"references":[{"url":"https://github.com/puma/puma/security/policy","name":"https://github.com/puma/puma/security/policy","refsource":"MISC","tags":[],"title":"Security Policy · puma/puma · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202208-28","name":"GLSA-202208-28","refsource":"GENTOO","tags":[],"title":"Puma: Multiple Vulnerabilities (GLSA 202208-28) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2022/08/msg00015.html","name":"[debian-lts-announce] 20220827 [SECURITY] [DLA 3083-1] puma security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3083-1] puma security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://rubygems.org/gems/puma","name":"https://rubygems.org/gems/puma","refsource":"MISC","tags":[],"title":"puma | RubyGems.org | your community gem host","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://gist.github.com/nateberkopec/4b3ea5676c0d70cbb37c82d54be25837","name":"https://gist.github.com/nateberkopec/4b3ea5676c0d70cbb37c82d54be25837","refsource":"MISC","tags":[],"title":"Puma keepalive patch · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/puma/puma/security/advisories/GHSA-q28m-8xjw-8vr5","name":"https://github.com/puma/puma/security/advisories/GHSA-q28m-8xjw-8vr5","refsource":"CONFIRM","tags":[],"title":"Keepalive Connections Causing Denial Of Service in puma · Advisory · puma/puma · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-29509","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29509","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"29509","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"29509","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"puma","cpe5":"puma","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-29509","qid":"180214","title":"Debian Security Update for puma (CVE-2021-29509)"},{"cve":"CVE-2021-29509","qid":"180972","title":"Debian Security Update for puma (DLA 3083-1)"},{"cve":"CVE-2021-29509","qid":"239895","title":"Red Hat Update for Satellite 6.10 (RHSA-2021:4702)"},{"cve":"CVE-2021-29509","qid":"354428","title":"Amazon Linux Security Advisory for rubygem-puma : ALAS2022-2022-051"},{"cve":"CVE-2021-29509","qid":"710598","title":"Gentoo Linux Puma Multiple Vulnerabilities (GLSA 202208-28)"},{"cve":"CVE-2021-29509","qid":"753159","title":"SUSE Enterprise Linux Security Update for rubygem-puma (SUSE-SU-2022:1515-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-29509","STATE":"PUBLIC","TITLE":"Keepalive Connections Causing Denial Of Service in puma"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"puma","version":{"version_data":[{"version_value":"< 4.3.8"},{"version_value":">= 5.0.0, < 5.3.1"}]}}]},"vendor_name":"puma"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"{\"CWE-400\":\"Uncontrolled Resource Consumption\"}"}]}]},"references":{"reference_data":[{"name":"https://github.com/puma/puma/security/advisories/GHSA-q28m-8xjw-8vr5","refsource":"CONFIRM","url":"https://github.com/puma/puma/security/advisories/GHSA-q28m-8xjw-8vr5"},{"name":"https://gist.github.com/nateberkopec/4b3ea5676c0d70cbb37c82d54be25837","refsource":"MISC","url":"https://gist.github.com/nateberkopec/4b3ea5676c0d70cbb37c82d54be25837"},{"name":"https://github.com/puma/puma/security/policy","refsource":"MISC","url":"https://github.com/puma/puma/security/policy"},{"name":"https://rubygems.org/gems/puma","refsource":"MISC","url":"https://rubygems.org/gems/puma"},{"refsource":"GENTOO","name":"GLSA-202208-28","url":"https://security.gentoo.org/glsa/202208-28"},{"refsource":"MLIST","name":"[debian-lts-announce] 20220827 [SECURITY] [DLA 3083-1] puma security update","url":"https://lists.debian.org/debian-lts-announce/2022/08/msg00015.html"}]},"source":{"advisory":"GHSA-q28m-8xjw-8vr5","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-05-11 17:15:00","lastModifiedDate":"2022-10-27 12:39:00","problem_types":["CWE-400"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:N/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:puma:puma:*:*:*:*:*:ruby:*:*","versionStartIncluding":"5.0.0","versionEndExcluding":"5.3.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:puma:puma:*:*:*:*:*:ruby:*:*","versionEndExcluding":"4.3.8","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"29509","Ordinal":"204713","Title":"CVE-2021-29509","CVE":"CVE-2021-29509","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"29509","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"29509","Ordinal":"2","NoteData":"2021-05-11","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"29509","Ordinal":"3","NoteData":"2021-05-11","Type":"Other","Title":"Modified"}]}}}