CVE-2021-22942
Ruby packages · CVE-2021-22942
A possible open redirect vulnerability in the Host Authorization middleware in Action Pack >= 6.0.0 that could allow attackers to redirect users to a malicious website.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.695% · 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.
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | unknown | unknown | unknown |
| epss | verified | 2026-11-19T16:04:29.367Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:43.680Z | OSV |
| affected | verified | 2026-11-19T12:55:43.292Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:43.292Z | CVE Program |
Affected versions and configuration
n/a https://github.com/rails/rails; default status: unknown: 6.1.4.1, 6.0.4.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": "n/a",
"product": "https://github.com/rails/rails",
"versions": [
{
"status": "affected",
"version": "6.1.4.1, 6.0.4.1"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://weblog.rubyonrails.org/2021/8/19/Rails-6-0-4-1-and-6-1-4-1-have-been-released/",
"tags": [
"x_transferred"
]
},
{
"url": "http://www.openwall.com/lists/oss-security/2021/12/14/5",
"name": "[oss-security] 20211214 [CVE-2021-44528] Possible Open Redirect in Host Authorization Middleware",
"tags": [
"mailing-list",
"x_transferred"
]
},
{
"url": "https://www.debian.org/security/2023/dsa-5372",
"name": "DSA-5372",
"tags": [
"vendor-advisory",
"x_transferred"
]
},
{
"url": "https://security.netapp.com/advisory/ntap-20240202-0005/",
"tags": [
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T18:58:26.009Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-2rqw-v265-jf8c",
"aliases": [
"CVE-2021-22942"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.0.0"
},
{
"fixed": "6.0.4.1"
}
]
}
],
"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.7",
"6.0.3.rc1",
"6.0.4"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-2rqw-v265-jf8c/GHSA-2rqw-v265-jf8c.json",
"last_known_affected_version_range": "<= 6.0.4"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.1.0"
},
{
"fixed": "6.1.4.1"
}
]
}
],
"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",
"6.1.3.2",
"6.1.4"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-2rqw-v265-jf8c/GHSA-2rqw-v265-jf8c.json",
"last_known_affected_version_range": "<= 6.1.4"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-22942",
"type": "ADVISORY"
},
{
"url": "https://access.redhat.com/security/cve/cve-2021-22942",
"type": "WEB"
},
{
"url": "https://github.com/rails/rails",
"type": "PACKAGE"
},
{
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2021-22942.yml",
"type": "WEB"
},
{
"url": "https://groups.google.com/g/rubyonrails-security/c/wB5tRn7h36c",
"type": "WEB"
},
{
"url": "https://rubygems.org/gems/actionpack",
"type": "WEB"
},
{
"url": "https://security.netapp.com/advisory/ntap-20240202-0005",
"type": "WEB"
},
{
"url": "https://weblog.rubyonrails.org/2021/8/19/Rails-6-0-4-1-and-6-1-4-1-have-been-released",
"type": "WEB"
},
{
"url": "https://www.debian.org/security/2023/dsa-5372",
"type": "WEB"
},
{
"url": "http://www.openwall.com/lists/oss-security/2021/12/14/5",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-601"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2021-10-18T13:15:00Z",
"github_reviewed_at": "2021-08-26T20:36:25Z"
}
}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.4.1 | Official record |
| ecosystem-boundary | RubyGems / package | actionpack | Not a distribution channel | 6.1.4.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:43.680ZArchived source JSON
Source publication: 2021-08-26T20:36:51.000Z
Source modification: 2024-02-21T05:31:33.873ZDocument fingerprint
d399715cc7aaad5b333cd35318e478e46c7b6d1f171c2c980651710472a11e1c - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - CVE ProgramConsulted: 2026-11-19T12:55:43.292ZArchived source JSON
Source publication: 2021-10-18T00:00:00.000Z
Source modification: 2024-08-03T18:58:26.009ZDocument fingerprint
919457475f9ddf0f581ee90db955930367084b23b50e64000df47a2cb4f97151 - FIRST EPSSConsulted: 2026-11-19T16:04:29.367ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
6edec3ff5408c9332bb5cad007615e6981ab6e76b387b737f9030d5936c5b5e2
Official status history
- UNKNOWN → PUBLISHED · · evidence