CVE-2021-22903
Ruby packages · CVE-2021-22903
The actionpack ruby gem before 6.1.3.2 suffers from a possible open redirect vulnerability. Specially crafted Host headers in combination with certain "allowed host" formats can cause the Host Authorization middleware in Action Pack to redirect users to a malicious website. This is similar to CVE-2021-22881. Strings in config.hosts that do not have a leading dot are converted to regular expressions without proper escaping. This causes, for example, `config.hosts << "sub.example.com"` to permit a request with a Host header value of `sub-example.com`.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.230% · 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:28:52.703Z. Public exploit availability is not used to set this status.
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:28:52.703Z | 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:42.769Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:42.769Z | CVE Program |
Affected versions and configuration
n/a https://github.com/rails/rails; default status: unknown: Fixed in 6.1.3.2 [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"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://hackerone.com/reports/1148025",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://discuss.rubyonrails.org/t/cve-2021-22903-possible-open-redirect-vulnerability-in-action-pack/77867",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T18:58:25.786Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-5hq2-xf89-9jxq",
"aliases": [
"CVE-2021-22903"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.1.0.rc2"
},
{
"fixed": "6.1.3.2"
}
]
}
],
"package": {
"name": "actionpack",
"purl": "pkg:gem/actionpack",
"ecosystem": "RubyGems"
},
"versions": [
"6.1.0",
"6.1.0.rc2",
"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-5hq2-xf89-9jxq/GHSA-5hq2-xf89-9jxq.json"
}
}
],
"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-22903",
"type": "ADVISORY"
},
{
"url": "https://hackerone.com/reports/1148025",
"type": "WEB"
},
{
"url": "https://discuss.rubyonrails.org/t/cve-2021-22903-possible-open-redirect-vulnerability-in-action-pack/77867",
"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-22903.yml",
"type": "WEB"
},
{
"url": "https://groups.google.com/g/rubyonrails-security/c/8TxqXEtgSF0",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-601"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2021-06-11T16:15:00Z",
"github_reviewed_at": "2021-05-05T19:47:50Z"
}
}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.1.3.2 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CISA KEVConsulted: 2026-11-19T17:28:52.703ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - OSVConsulted: 2026-11-19T12:52:43.680ZArchived source JSON
Source publication: 2021-05-05T19:48:29.000Z
Source modification: 2024-02-16T08:18:07.647ZDocument fingerprint
d399715cc7aaad5b333cd35318e478e46c7b6d1f171c2c980651710472a11e1c - CVE ProgramConsulted: 2026-11-19T12:55:42.769ZArchived source JSON
Source publication: 2021-06-11T15:49:38.000Z
Source modification: 2024-08-03T18:58:25.786ZDocument fingerprint
70cd951ae862c990a729ad7dc6625fc35488aedacdcf95d855e83ab61a8ab96c - 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