6.1medium
Actionpack Open Redirect Vulnerability
- Severity
- 6.1medium CVSS:3.1 by NVD
- Exploit likelihood
- 87.3% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- hackerone
- Also known as
- GHSA-8877-prq4-9xfw
Description
The Host Authorization middleware in Action Pack before 6.1.2.1, 6.0.3.5 suffers from an 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. Impacted applications will have allowed hosts with a leading dot. When an allowed host contains a leading dot, a specially crafted `Host` header can be used to redirect to a malicious website.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| https://github.com/rails/rails | Fixed in 6.1.2.1, 6.0.3.5 | CVE List |
| actionpack (RubyGems) | from 6.0.0 before 6.0.3.5, from 6.1.0 before 6.1.2.1 | GitHub Advisory Database |
| rubyonrails rails | from 6.0.0 before 6.0.3.5, from 6.1.0 before 6.1.2.1 | NVD |
| fedoraproject fedora | 33 | NVD |
All scores
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 5.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Classification
What each source says
CVE List
The Host Authorization middleware in Action Pack before 6.1.2.1, 6.0.3.5 suffers from an 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. Impacted applications will have allowed hosts with a leading dot. When an allowed host contains a leading dot, a specially crafted `Host` header can be used to redirect to a malicious website.
GitHub Advisory Database
The Host Authorization middleware in Action Pack before 6.1.2.1, 6.0.3.5 suffers from an 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.
NVD (es)
El middleware de Autorización de Host en Action Pack versiones anteriores a 6.1.2.1, 6.0.3.5 sufre una vulnerabilidad de redireccionamiento abierto. Los encabezados "Host" especialmente diseñados en combinación con determinados formatos "allowed host" pueden causar que el middleware de Autorización del Host en Action Pack redireccione a los usuarios a un sitio web malicioso. Las aplicaciones afectadas habrán permitido hosts con un punto inicial. Cuando un host permitido contiene un punto inicial, un encabezado "Host" especialmente diseñado puede ser usado para redireccionar hacia un sitio web malicioso
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-22881 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8877-prq4-9xfw changed 2024-02-20 | CC-BY-4.0 |
| NVD | CVE-2021-22881 changed 2026-06-17 | Public domain |