CVE-2020-25613: High severity ruby-lang Ruby vulnerability
An issue was discovered in Ruby through 2.5.8, 2.6.x through 2.6.6, and 2.7.x through 2.7.1. WEBrick, a simple HTTP server bundled with Ruby, had not checked the transfer-encoding header value rigorously. An attacker may potentially exploit this issue to bypass a reverse proxy (which also has a poor header check), which may lead to an HTTP Request Smuggling attack.
Other sources
WEBrick was too tolerant against an invalid Transfer-Encoding header. This may lead to inconsistent interpretation between WEBrick and some HTTP proxy servers, which may allow the attacker to “smuggle” a request.
Reference: https://www.ruby-lang.org/en/news/2020/09/29/http-request-smuggling-cve-2020-25613/
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/rh-ruby25-rubyto a version that resolves this vulnerability.Fixed in 0:2.5.9-9.el7 - Upgrade
Upgrade
redhat/rh-ruby27-rubyto a version that resolves this vulnerability.Fixed in 0:2.7.3-129.el7 - Upgrade
Upgrade
redhat/rh-ruby26-rubyto a version that resolves this vulnerability.Fixed in 0:2.6.7-119.el7 - Upgrade
Upgrade
rubygems/webrickto a version that resolves this vulnerability.Fixed in 1.4.4 - Upgrade
Upgrade
rubygems/webrickto a version that resolves this vulnerability.Fixed in 1.5.1 - Upgrade
Upgrade
rubygems/webrickto a version that resolves this vulnerability.Fixed in 1.6.1 - Upgrade
Upgrade
redhat/rubygem-webrickto a version that resolves this vulnerability.Fixed in 1.6.1 - Upgrade
Upgrade
redhat/rubyto a version that resolves this vulnerability.Fixed in 2.5.9 - Upgrade
Upgrade
redhat/rubyto a version that resolves this vulnerability.Fixed in 2.6.7 - Upgrade
Upgrade
redhat/rubyto a version that resolves this vulnerability.Fixed in 2.7.2
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2020-25613?
The severity of CVE-2020-25613 is high.
How does CVE-2020-25613 affect Ruby versions?
CVE-2020-25613 affects Ruby versions 2.5.8 through 2.5.9, 2.6.0 through 2.6.6, and 2.7.0 through 2.7.1.
What is WEBrick?
WEBrick is a simple HTTP server bundled with Ruby.
What is HTTP request smuggling?
HTTP request smuggling is a vulnerability that allows an attacker to bypass security measures in reverse proxies by sending specially crafted requests that are interpreted differently by the proxy and the server handling the request.
How can I fix CVE-2020-25613?
To fix CVE-2020-25613, upgrade Ruby to version 2.5.9, 2.6.7, or 2.7.2, or apply the appropriate patches provided by your distribution.