Timing Attack Affecting rack package, versions < 1.5.2, >= 1.5 < 1.4.5, >= 1.4 < 1.3.10, >= 1.3 < 1.2.8, >= 1.2 < 1.1.6


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    8.35% (95th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-RUBY-RACK-20059
  • published 6 Feb 2013
  • disclosed 6 Feb 2013
  • credit Unknown

How to fix?

Upgrade rack to version 1.1.6, 1.2.8, 1.3.10, 1.4.5, 1.5.2 or higher.

Overview

rack is a minimal, modular and adaptable interface for developing web applications in Ruby. Affected versions of this Gem are vulnerable to Remote Code Execution due to an error in the Rack::Session::Cookie function. It allows a remote attackers to guess the session cookie, gain privileges, and execute arbitrary code via a timing attack involving an HMAC comparison function that does not run in constant time.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
5.6 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    Low
Expand this section

NVD

5.6 medium