Rack arbitrary code execution via timing attack

Description

Rack::Session::Cookie in Rack 1.5.x before 1.5.2, 1.4.x before 1.4.5, 1.3.x before 1.3.10, 1.2.x before 1.2.8, and 1.1.x before 1.1.6 allows 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.

Basic information

Type
reviewed
Severity
medium
Advisory on GitHub
Open advisory ↗
Repository advisory
Source code
Browse source ↗
Published (advisory)
2022-05-05 02:48:42 UTC
Updated
2023-02-13 16:42:06 UTC
GitHub reviewed
2022-06-17 21:30:05 UTC
NVD published
2013-02-08

EPSS Score

Score Percentile
8.63% 92.38%

CVSS Scores

No CVSS scores in this advisory.

Identifiers

Credits

  • jhutchings1 (analyst)

Affected packages (5)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
rubygems rack >= 1.5.0, < 1.5.2 1.5.2
rubygems rack >= 1.4.0, < 1.4.5 1.4.5
rubygems rack >= 1.3.0, < 1.3.10 1.3.10
rubygems rack >= 1.2.0, < 1.2.8 1.2.8
rubygems rack >= 1.1.0, < 1.1.6 1.1.6

References

cvelogic Threat Intelligence