CVE-2021-22904
Ruby packages · CVE-2021-22904
The actionpack ruby gem before 6.1.3.2, 6.0.3.7, 5.2.4.6, 5.2.6 suffers from a possible denial of service vulnerability in the Token Authentication logic in Action Controller due to a too permissive regular expression. Impacted code uses `authenticate_or_request_with_http_token` or `authenticate_with_http_token` for request authentication.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 4.868% · 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-19T18:36:01.564Z. Public exploit availability is not used to set this status.
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T18:36:01.564Z | CISA KEV |
| cvss | unknown | unknown | unknown |
| epss | verified | 2026-11-19T18:27:05.361Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:43.680Z | OSV |
| affected | verified | 2026-11-19T12:55:42.985Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:42.985Z | CVE Program |
Affected versions and configuration
n/a https://github.com/rails/rails; default status: unknown: Fixed in 6.1.3.2, 6.0.3.7, 5.2.4.6, 5.2.6 [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": "n/a",
"product": "https://github.com/rails/rails",
"versions": [
{
"status": "affected",
"version": "Fixed in 6.1.3.2, 6.0.3.7, 5.2.4.6, 5.2.6"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://hackerone.com/reports/1101125",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://discuss.rubyonrails.org/t/cve-2021-22904-possible-dos-vulnerability-in-action-controller-token-authentication/77869",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://security.netapp.com/advisory/ntap-20210805-0009/",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T18:58:25.438Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-7wjx-3g7j-8584",
"aliases": [
"CVE-2021-22904"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.0.0"
},
{
"fixed": "6.0.3.7"
}
]
}
],
"package": {
"name": "actionpack",
"purl": "pkg:gem/actionpack",
"ecosystem": "RubyGems"
},
"versions": [
"6.0.0",
"6.0.1",
"6.0.1.rc1",
"6.0.2",
"6.0.2.1",
"6.0.2.2",
"6.0.2.rc1",
"6.0.2.rc2",
"6.0.3",
"6.0.3.1",
"6.0.3.2",
"6.0.3.3",
"6.0.3.4",
"6.0.3.5",
"6.0.3.6",
"6.0.3.rc1"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-7wjx-3g7j-8584/GHSA-7wjx-3g7j-8584.json",
"last_known_affected_version_range": "<= 6.0.3.6"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.1.0"
},
{
"fixed": "6.1.3.2"
}
]
}
],
"package": {
"name": "actionpack",
"purl": "pkg:gem/actionpack",
"ecosystem": "RubyGems"
},
"versions": [
"6.1.0",
"6.1.1",
"6.1.2",
"6.1.2.1",
"6.1.3",
"6.1.3.1"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-7wjx-3g7j-8584/GHSA-7wjx-3g7j-8584.json",
"last_known_affected_version_range": "<= 6.1.3.1"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.2.5"
},
{
"fixed": "5.2.6"
}
]
}
],
"package": {
"name": "actionpack",
"purl": "pkg:gem/actionpack",
"ecosystem": "RubyGems"
},
"versions": [
"5.2.5"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-7wjx-3g7j-8584/GHSA-7wjx-3g7j-8584.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.0.0"
},
{
"fixed": "5.2.4.6"
}
]
}
],
"package": {
"name": "actionpack",
"purl": "pkg:gem/actionpack",
"ecosystem": "RubyGems"
},
"versions": [
"4.0.0",
"4.0.1",
"4.0.1.rc1",
"4.0.1.rc2",
"4.0.1.rc3",
"4.0.1.rc4",
"4.0.10",
"4.0.10.rc1",
"4.0.10.rc2",
"4.0.11",
"4.0.11.1",
"4.0.12",
"4.0.13",
"4.0.13.rc1",
"4.0.2",
"4.0.3",
"4.0.4",
"4.0.4.rc1",
"4.0.5",
"4.0.6",
"4.0.6.rc1",
"4.0.6.rc2",
"4.0.6.rc3",
"4.0.7",
"4.0.8",
"4.0.9",
"4.1.0",
"4.1.0.beta1",
"4.1.0.beta2",
"4.1.0.rc1",
"4.1.0.rc2",
"4.1.1",
"4.1.10",
"4.1.10.rc1",
"4.1.10.rc2",
"4.1.10.rc3",
"4.1.10.rc4",
"4.1.11",
"4.1.12",
"4.1.12.rc1",
"4.1.13",
"4.1.13.rc1",
"4.1.14",
"4.1.14.1",
"4.1.14.2",
"4.1.14.rc1",
"4.1.14.rc2",
"4.1.15",
"4.1.15.rc1",
"4.1.16",
"4.1.16.rc1",
"4.1.2",
"4.1.2.rc1",
"4.1.2.rc2",
"4.1.2.rc3",
"4.1.3",
"4.1.4",
"4.1.5",
"4.1.6",
"4.1.6.rc1",
"4.1.6.rc2",
"4.1.7",
"4.1.7.1",
"4.1.8",
"4.1.9",
"4.1.9.rc1",
"4.2.0",
"4.2.0.beta1",
"4.2.0.beta2",
"4.2.0.beta3",
"4.2.0.beta4",
"4.2.0.rc1",
"4.2.0.rc2",
"4.2.0.rc3",
"4.2.1",
"4.2.1.rc1",
"4.2.1.rc2",
"4.2.1.rc3",
"4.2.1.rc4",
"4.2.10",
"4.2.10.rc1",
"4.2.11",
"4.2.11.1",
"4.2.11.2",
"4.2.11.3",
"4.2.2",
"4.2.3",
"4.2.3.rc1",
"4.2.4",
"4.2.4.rc1",
"4.2.5",
"4.2.5.1",
"4.2.5.2",
"4.2.5.rc1",
"4.2.5.rc2",
"4.2.6",
"4.2.6.rc1",
"4.2.7",
"4.2.7.1",
"4.2.7.rc1",
"4.2.8",
"4.2.8.rc1",
"4.2.9",
"4.2.9.rc1",
"4.2.9.rc2",
"5.0.0",
"5.0.0.1",
"5.0.0.beta1",
"5.0.0.beta1.1",
"5.0.0.beta2",
"5.0.0.beta3",
"5.0.0.beta4",
"5.0.0.racecar1",
"5.0.0.rc1",
"5.0.0.rc2",
"5.0.1",
"5.0.1.rc1",
"5.0.1.rc2",
"5.0.2",
"5.0.2.rc1",
"5.0.3",
"5.0.4",
"5.0.4.rc1",
"5.0.5",
"5.0.5.rc1",
"5.0.5.rc2",
"5.0.6",
"5.0.6.rc1",
"5.0.7",
"5.0.7.1",
"5.0.7.2",
"5.1.0",
"5.1.0.beta1",
"5.1.0.rc1",
"5.1.0.rc2",
"5.1.1",
"5.1.2",
"5.1.2.rc1",
"5.1.3",
"5.1.3.rc1",
"5.1.3.rc2",
"5.1.3.rc3",
"5.1.4",
"5.1.4.rc1",
"5.1.5",
"5.1.5.rc1",
"5.1.6",
"5.1.6.1",
"5.1.6.2",
"5.1.7",
"5.1.7.rc1",
"5.2.0",
"5.2.0.beta1",
"5.2.0.beta2",
"5.2.0.rc1",
"5.2.0.rc2",
"5.2.1",
"5.2.1.1",
"5.2.1.rc1",
"5.2.2",
"5.2.2.1",
"5.2.2.rc1",
"5.2.3",
"5.2.3.rc1",
"5.2.4",
"5.2.4.1",
"5.2.4.2",
"5.2.4.3",
"5.2.4.4",
"5.2.4.5",
"5.2.4.rc1"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-7wjx-3g7j-8584/GHSA-7wjx-3g7j-8584.json",
"last_known_affected_version_range": "<= 5.2.4.5"
}
}
],
"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://nvd.nist.gov/vuln/detail/CVE-2021-22904",
"type": "ADVISORY"
},
{
"url": "https://hackerone.com/reports/1101125",
"type": "WEB"
},
{
"url": "https://discuss.rubyonrails.org/t/cve-2021-22904-possible-dos-vulnerability-in-action-controller-token-authentication/77869",
"type": "WEB"
},
{
"url": "https://github.com/rails/rails",
"type": "PACKAGE"
},
{
"url": "https://github.com/rails/rails/releases/tag/v5.2.4.6",
"type": "WEB"
},
{
"url": "https://github.com/rails/rails/releases/tag/v5.2.6",
"type": "WEB"
},
{
"url": "https://github.com/rails/rails/releases/tag/v6.0.3.7",
"type": "WEB"
},
{
"url": "https://github.com/rails/rails/releases/tag/v6.1.3.2",
"type": "WEB"
},
{
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2021-22904.yml",
"type": "WEB"
},
{
"url": "https://groups.google.com/g/rubyonrails-security/c/Pf1TjkOBdyQ",
"type": "WEB"
},
{
"url": "https://security.netapp.com/advisory/ntap-20210805-0009",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-400"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2021-06-11T16:15:00Z",
"github_reviewed_at": "2021-05-05T19:48:31Z"
}
}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 | actionpack | Not a distribution channel | 6.0.3.7 | Official record |
| ecosystem-boundary | RubyGems / package | actionpack | Not a distribution channel | 6.1.3.2 | Official record |
| ecosystem-boundary | RubyGems / package | actionpack | Not a distribution channel | 5.2.6 | Official record |
| ecosystem-boundary | RubyGems / package | actionpack | Not a distribution channel | 5.2.4.6 | 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:43.680ZArchived source JSON
Source publication: 2021-05-05T19:49:12.000Z
Source modification: 2024-02-16T08:20:03.075ZDocument fingerprint
d399715cc7aaad5b333cd35318e478e46c7b6d1f171c2c980651710472a11e1c - FIRST EPSSConsulted: 2026-11-19T18:27:05.361ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
6edec3ff5408c9332bb5cad007615e6981ab6e76b387b737f9030d5936c5b5e2 - CVE ProgramConsulted: 2026-11-19T12:55:42.985ZArchived source JSON
Source publication: 2021-06-11T15:49:38.000Z
Source modification: 2024-08-03T18:58:25.438ZDocument fingerprint
250509d739d208a557dba4cc0471ed5882ff3ced9b4d400d5bdb2ccca02816ef - CISA KEVConsulted: 2026-11-19T18:36:01.564ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56
Official status history
- UNKNOWN → PUBLISHED · · evidence