USN-5896-1: Rack vulnerabilities
It was discovered that Rack was not properly parsing data when processing multipart POST requests. If a user or automated system were tricked into sending a specially crafted multipart POST request to an application using Rack, a remote attacker could possibly use this issue to cause a denial of service. (CVE-2022-30122) It was discovered that Rack was not properly escaping untrusted data when performing logging operations, which could cause shell escaped sequences to be written to a terminal. If a user or automated system were tricked into sending a specially crafted request to an application using Rack, a remote attacker could possibly use this issue to execute arbitrary code in the machine running the application. (CVE-2022-30123)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/ruby-rackto a version that resolves this vulnerability.Fixed in Ubuntu Pro
Event History
Frequently Asked Questions
What is the vulnerability ID for this Rack vulnerability?
The vulnerability ID for this Rack vulnerability is CVE-2022-30123.
What is the severity of CVE-2022-30123?
The severity of CVE-2022-30123 is not provided in the information provided.
How can an attacker exploit this vulnerability?
An attacker can exploit this vulnerability by tricking a user or automated system into sending a specially crafted multipart POST request to an application using Rack.
Which versions of Ruby Rack are affected?
Versions 2.1.4-5ubuntu1+esm2, 2.0.7-2ubuntu0.1+esm2, and 1.6.4-4ubuntu0.2+esm2 are affected.
How do I fix the Rack vulnerability?
To fix the Rack vulnerability, update the `ruby-rack` package to version 2.1.4-5ubuntu1+esm2, 2.0.7-2ubuntu0.1+esm2, or 1.6.4-4ubuntu0.2+esm2 depending on your Ubuntu version.