CVE-2021-29509
Keepalive Connections Causing Denial Of Service in puma
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.599% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 7.5 · published by GitHub_MCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Assessment source · checked 2026-11-19T12:55:47.080Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:55:47.080Z | CVE Program |
| epss | verified | 2026-11-19T16:04:29.829Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:44.737Z | OSV |
| affected | verified | 2026-11-19T12:55:47.080Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:47.080Z | CVE Program |
Affected versions and configuration
puma puma; default status: unknown: < 4.3.8 [affected; scheme: unspecified]; >= 5.0.0, < 5.3.1 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "puma",
"product": "puma",
"versions": [
{
"status": "affected",
"version": "< 4.3.8"
},
{
"status": "affected",
"version": ">= 5.0.0, < 5.3.1"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/puma/puma/security/advisories/GHSA-q28m-8xjw-8vr5",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://gist.github.com/nateberkopec/4b3ea5676c0d70cbb37c82d54be25837",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/puma/puma/security/policy",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://rubygems.org/gems/puma",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://security.gentoo.org/glsa/202208-28",
"name": "GLSA-202208-28",
"tags": [
"vendor-advisory",
"x_refsource_GENTOO",
"x_transferred"
]
},
{
"url": "https://lists.debian.org/debian-lts-announce/2022/08/msg00015.html",
"name": "[debian-lts-announce] 20220827 [SECURITY] [DLA 3083-1] puma security update",
"tags": [
"mailing-list",
"x_refsource_MLIST",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T22:11:05.438Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-q28m-8xjw-8vr5",
"aliases": [
"CVE-2021-29509"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.3.8"
}
]
}
],
"package": {
"name": "puma",
"purl": "pkg:gem/puma",
"ecosystem": "RubyGems"
},
"versions": [
"0.8.0",
"0.8.1",
"0.8.2",
"0.9.0",
"0.9.1",
"0.9.2",
"0.9.3",
"0.9.4",
"0.9.5",
"1.0.0",
"1.1.0",
"1.1.1",
"1.2.0",
"1.2.1",
"1.2.2",
"1.3.0",
"1.3.1",
"1.4.0",
"1.5.0",
"1.6.0",
"1.6.1",
"1.6.2",
"1.6.3",
"2.0.0",
"2.0.0.b1",
"2.0.0.b2",
"2.0.0.b3",
"2.0.0.b4",
"2.0.0.b5",
"2.0.0.b6",
"2.0.0.b7",
"2.0.1",
"2.1.0",
"2.1.1",
"2.10.0",
"2.10.1",
"2.10.2",
"2.11.0",
"2.11.1",
"2.11.2",
"2.11.3",
"2.12.0",
"2.12.1",
"2.12.2",
"2.12.3",
"2.13.0",
"2.13.1",
"2.13.2",
"2.13.3",
"2.13.4",
"2.14.0",
"2.15.0",
"2.15.1",
"2.15.2",
"2.15.3",
"2.16.0",
"2.2.0",
"2.2.1",
"2.2.2",
"2.3.0",
"2.3.1",
"2.3.2",
"2.4.0",
"2.4.1",
"2.5.0",
"2.5.1",
"2.6.0",
"2.7.0",
"2.7.1",
"2.8.0",
"2.8.1",
"2.8.2",
"2.9.0",
"2.9.1",
"2.9.2",
"3.0.0",
"3.0.0.rc1",
"3.0.1",
"3.0.2",
"3.1.0",
"3.1.1",
"3.10.0",
"3.11.0",
"3.11.1",
"3.11.2",
"3.11.3",
"3.11.4",
"3.12.0",
"3.12.1",
"3.12.2",
"3.12.4",
"3.12.5",
"3.12.6",
"3.2.0",
"3.3.0",
"3.4.0",
"3.5.0",
"3.5.1",
"3.5.2",
"3.6.0",
"3.6.1",
"3.6.2",
"3.7.0",
"3.7.1",
"3.8.0",
"3.8.1",
"3.8.2",
"3.9.0",
"3.9.1",
"4.0.0",
"4.0.1",
"4.1.0",
"4.1.1",
"4.2.0",
"4.2.1",
"4.3.0",
"4.3.1",
"4.3.3",
"4.3.4",
"4.3.5",
"4.3.6",
"4.3.7"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-q28m-8xjw-8vr5/GHSA-q28m-8xjw-8vr5.json",
"last_known_affected_version_range": "<= 4.3.7"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.3.1"
}
]
}
],
"package": {
"name": "puma",
"purl": "pkg:gem/puma",
"ecosystem": "RubyGems"
},
"versions": [
"5.0.0",
"5.0.1",
"5.0.2",
"5.0.3",
"5.0.4",
"5.1.0",
"5.1.1",
"5.2.0",
"5.2.1",
"5.2.2",
"5.3.0"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-q28m-8xjw-8vr5/GHSA-q28m-8xjw-8vr5.json",
"last_known_affected_version_range": "<= 5.3.0"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/puma/puma/security/advisories/GHSA-q28m-8xjw-8vr5",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-29509",
"type": "ADVISORY"
},
{
"url": "https://gist.github.com/nateberkopec/4b3ea5676c0d70cbb37c82d54be25837",
"type": "WEB"
},
{
"url": "https://github.com/puma/puma",
"type": "PACKAGE"
},
{
"url": "https://github.com/puma/puma/security/policy",
"type": "WEB"
},
{
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/puma/CVE-2021-29509.yml",
"type": "WEB"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2022/08/msg00015.html",
"type": "WEB"
},
{
"url": "https://rubygems.org/gems/puma",
"type": "WEB"
},
{
"url": "https://security.gentoo.org/glsa/202208-28",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-400"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2021-05-11T17:15:00Z",
"github_reviewed_at": "2021-05-18T01:26:55Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | RubyGems / package | puma | Not a distribution channel | 4.3.8 | Official record |
| ecosystem-boundary | RubyGems / package | puma | Not a distribution channel | 5.3.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:44.737ZArchived source JSON
Source publication: 2021-05-18T01:27:15.000Z
Source modification: 2026-07-08T06:00:01.447ZDocument fingerprint
8cbdd60df248cfd12d9bd01a2572aa1ff18383369ba91364d4efd229e2d7a782 - CVE ProgramConsulted: 2026-11-19T12:55:47.080ZArchived source JSON
Source publication: 2021-05-11T16:50:11.000Z
Source modification: 2024-08-03T22:11:05.438ZDocument fingerprint
5e27b302585bec8532301450139fc8a26cf397df0efb670cc999d7b9abf7d979 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:29.829ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
0ada5949615a4f73336c326c2872c6b13ce677871d7a909901276520e3f556a8
Official status history
- UNKNOWN → PUBLISHED · · evidence