Use-after-free in Ruby on Rails - CVE-2021-22904
Published: May 10, 2021
Vulnerability identifier: #VU53004
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-22904
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to a use-after-free error in the Token Authentication logic in Action Controller. A remote attacker can send a specially crafted request and cause a denial of service condition on the target system.
Affected software
Ruby on Rails
IBM Cloud Pak for Multicloud Management
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Linux Enterprise High Availability
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Server
SUSE Linux Enterprise High Performance Computing
openSUSE Leap
openEuler
rails (Debian package)
ruby2.5-rubygem-activesupport-5_1
ruby2.5-rubygem-activesupport-doc-5_1
ruby2.5-rubygem-actionpack-5_1
ruby2.5-rubygem-actionpack-doc-5_1
rubygem-actionpack
rubygem-actionpack-doc
IBM Cloud Pak for Multicloud Management
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Linux Enterprise High Availability
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Server
SUSE Linux Enterprise High Performance Computing
openSUSE Leap
openEuler
rails (Debian package)
ruby2.5-rubygem-activesupport-5_1
ruby2.5-rubygem-activesupport-doc-5_1
ruby2.5-rubygem-actionpack-5_1
ruby2.5-rubygem-actionpack-doc-5_1
rubygem-actionpack
rubygem-actionpack-doc
How to mitigate CVE-2021-22904
Install updates from vendor's website.
Ruby on Rails - addressed in versions 5.2.4.6, 5.2.6, 6.0.3.7, 6.1.3.2
rails (Debian package) - update to 2:5.2.2.1+dfsg-1+deb10u3
ruby2.5-rubygem-activesupport-5_1 - update to 5.1.4-150000.3.6.1
ruby2.5-rubygem-activesupport-doc-5_1 - update to 5.1.4-150000.3.6.1
ruby2.5-rubygem-actionpack-5_1 - update to 5.1.4-150000.3.12.1
ruby2.5-rubygem-actionpack-doc-5_1 - update to 5.1.4-150000.3.12.1
rubygem-actionpack - update to 5.2.4.4-3
rubygem-actionpack-doc - update to 5.2.4.4-3
rails (Debian package) - update to 2:5.2.2.1+dfsg-1+deb10u3
ruby2.5-rubygem-activesupport-5_1 - update to 5.1.4-150000.3.6.1
ruby2.5-rubygem-activesupport-doc-5_1 - update to 5.1.4-150000.3.6.1
ruby2.5-rubygem-actionpack-5_1 - update to 5.1.4-150000.3.12.1
ruby2.5-rubygem-actionpack-doc-5_1 - update to 5.1.4-150000.3.12.1
rubygem-actionpack - update to 5.2.4.4-3
rubygem-actionpack-doc - update to 5.2.4.4-3