Skip to content
OpenAdvisories
Critical USN-5253-1 4 CVEs

ruby-rack vulnerabilities

Published Dec 13, 2022 · Updated Jun 29, 2026

Summary

It was discovered that Rack insecurely handled session ids. An
unauthenticated remote attacker could possibly use this issue to perform
a timing attack and hijack sessions. (CVE-2019-16782)

It was discovered that Rack was incorrectly handling cookies during
parsing, not validating them or performing the necessary integrity checks.
An attacker could possibly use this issue to overwrite existing cookie
data and gain control over a remote system's behaviour. This issue only
affected Ubuntu 14.04 ESM. (CVE-2020-8184)

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. This issue was only fixed in Ubuntu 14.04 ESM and Ubuntu 16.04
ESM. (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. This issue was only fixed in Ubuntu
14.04 ESM and Ubuntu 16.04 ESM. (CVE-2022-30123)

Fixed packages 4

ReleasePackageFixed in
Ubuntu · Pro 14.04 LTS Pro:14.04:LTS ruby-rack 1.5.2-3+deb8u3ubuntu1~esm4
Ubuntu · Pro 16.04 LTS Pro:16.04:LTS ruby-rack 1.6.4-3ubuntu0.2+esm2
Ubuntu · Pro 18.04 LTS Pro:18.04:LTS ruby-rack 1.6.4-4ubuntu0.2+esm1
Ubuntu · Pro 20.04 LTS Pro:20.04:LTS ruby-rack 2.0.7-2ubuntu0.1+esm1

Vulnerabilities 4

  • Critical 10.0

    Possible shell escape sequence injection vulnerability in Rack

    A sequence injection vulnerability exists in Rack <2.0.9.1, <2.1.4.1 and <2.2.3.1 which could allow is a possible shell escape in the Lint and CommonLogger components of Rack.

  • High 7.5

    Rack allows Percent-encoded cookies to overwrite existing prefixed cookie names

    A reliance on cookies without validation/integrity check security vulnerability exists in rack < 2.2.3, rack < 2.1.4 that makes it is possible for an attacker to forge a secure or host-only cookie prefix.

  • High 7.5

    Denial of Service Vulnerability in Rack Multipart Parsing

    A possible denial of service vulnerability exists in Rack <2.0.9.1, <2.1.4.1 and <2.2.3.1 in the multipart parsing component of Rack.

  • Medium 6.3

    Possible Information Leak / Session Hijack Vulnerability in Rack

    There's a possible information leak / session hijack vulnerability in Rack (RubyGem rack). This vulnerability is patched in versions 1.6.12 and 2.0.8. Attackers may be able to find and hijack sessions by using timing attacks targeting the session id. Session …

References

  • report
    https://ubuntu.com/security/CVE-2019-16782
  • report
    https://ubuntu.com/security/CVE-2020-8184
  • report
    https://ubuntu.com/security/CVE-2022-30122
  • report
    https://ubuntu.com/security/CVE-2022-30123