CVE-2020-8167
mediumpriority · track · 27EPSS 0.015 · 74 %ileDEEURUUSEPSS · scored 2026-10-27
A CSRF vulnerability exists in rails <= 6.0.3 rails-ujs module that could allow attackers to send CSRF tokens to wrong domains.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (73)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-1093Ruby on Rails: Mehrere SchwachstellenDeutsch2020-05-18csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in Ruby on Rails ausnutzen, um Sicherheitsvorkehrungen zu umgehen, Informationen offenzulegen, beliebigen Programmcode auszuführen oder Dateien zu manipulieren.
- GHSA-xq5j-gw7f-jgj8CSRF Vulnerability in rails-ujs2020-07-07ghsa · osvUS
There is a vulnerability in rails-ujs that allows attackers to send CSRF tokens to wrong domains. Versions Affected: rails <= 6.0.3 Not affected: Applications which don't use rails-ujs. Fixed Versions: rails >= 5.2.4.3, rails >= 6.0.3.1 Impact ------ This is a regression of CVE-2015-1840. In the scenario where an attacker might be able to control the href attribute of an anchor tag or the action attribute of a form tag that will trigger a POST action, the attacker can set the href or action to a cross-origin URL, and the CSRF token will be sent. Workarounds ----------- To work around this problem, change code that allows users to control the href attribute of an anchor tag or the action attribute of a form tag to filter the user parameters. For example, code like this: link_to params to code like this: link_to filtered_params def filtered_params # Filter just the parameters that you trust end
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (17)
External citations — patches, advisories, analysis.
- https://groups.google.com/g/rubyonrails-security/c/x9DixQDG9a0cnnvd
- https://hackerone.com/reports/189878cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2020-8167cnnvd
- https://vigilance.fr/vulnerability/rails-four-vulnerabilities-33413cnnvd
- https://weblog.rubyonrails.org/2020/5/18/Rails-5-2-4-3-and-6-0-3-1-have-been-released/Patchcnnvd
- https://www.auscert.org.au/bulletins/ESB-2020.1780/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2020.3278/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2020.3691/cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan