CVE-2021-22903

CVSS V2 Medium 5.8 CVSS V3 Medium 6.1
Description
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`.
Overview
  • CVE ID
  • CVE-2021-22903
  • Assigner
  • support@hackerone.com
  • Vulnerability Status
  • Analyzed
  • Published Version
  • 2021-06-11T16:15:11
  • Last Modified Date
  • 2021-10-21T14:32:48
CPE Configuration (Product)
CPE Vulnerable Operator Version Start Version End
cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* 1 OR 6.1.1 6.1.3.2
cpe:2.3:a:rubyonrails:rails:6.1.0:rc2:*:*:*:*:*:* 1 OR
CVSS Version 2
  • Version
  • 2.0
  • Vector String
  • AV:N/AC:M/Au:N/C:P/I:P/A:N
  • Access Vector
  • NETWORK
  • Access Compatibility
  • MEDIUM
  • Authentication
  • NONE
  • Confidentiality Impact
  • PARTIAL
  • Integrity Impact
  • PARTIAL
  • Availability Impact
  • NONE
  • Base Score
  • 5.8
  • Severity
  • MEDIUM
  • Exploitability Score
  • 8.6
  • Impact Score
  • 4.9
CVSS Version 3
  • Version
  • 3.1
  • Vector String
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Attack Vector
  • NETWORK
  • Attack Compatibility
  • LOW
  • Privileges Required
  • NONE
  • User Interaction
  • REQUIRED
  • Scope
  • CHANGED
  • Confidentiality Impact
  • LOW
  • Availability Impact
  • NONE
  • Base Score
  • 6.1
  • Base Severity
  • MEDIUM
  • Exploitability Score
  • 2.8
  • Impact Score
  • 2.7
References
Reference URL Reference Tags
https://hackerone.com/reports/1148025 Permissions Required Third Party Advisory
https://discuss.rubyonrails.org/t/cve-2021-22903-possible-open-redirect-vulnerability-in-action-pack/77867 Mitigation Patch Vendor Advisory
History
Created Old Value New Value Data Type Notes
2022-05-10 06:50:14 Added to TrackCVE
2022-12-05 04:17:43 cve-assignments@hackerone.com support@hackerone.com CVE Assigner updated
2022-12-05 04:17:43 2021-06-11T16:15Z 2021-06-11T16:15:11 CVE Published Date updated
2022-12-05 04:17:43 2021-10-21T14:32:48 CVE Modified Date updated
2022-12-05 04:17:43 Analyzed Vulnerability Status updated