Lucene search

K
cveHackeroneCVE-2021-22903
HistoryJun 11, 2021 - 4:15 p.m.

CVE-2021-22903

2021-06-1116:15:11
CWE-601
hackerone
web.nvd.nist.gov
70
2
cve-2021-22903
nvd
actionpack
ruby
gem
open redirect
vulnerability
host headers
security

CVSS2

5.8

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:P/I:P/A:N

CVSS3

6.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

AI Score

6

Confidence

High

EPSS

0.002

Percentile

61.0%

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.

Affected configurations

Nvd
Vulners
Node
rubyonrailsrailsRange6.1.16.1.3.2
OR
rubyonrailsrailsMatch6.1.0rc2
VendorProductVersionCPE
rubyonrailsrails6.1.0cpe:/a:rubyonrails:rails:6.1.0:rc2::

CNA Affected

[
  {
    "product": "https://github.com/rails/rails",
    "vendor": "n/a",
    "versions": [
      {
        "status": "affected",
        "version": "Fixed in 6.1.3.2"
      }
    ]
  }
]

Social References

More

CVSS2

5.8

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:P/I:P/A:N

CVSS3

6.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

AI Score

6

Confidence

High

EPSS

0.002

Percentile

61.0%