# CVE-2019-16782: ruby-rack: There's a possible information leak / session hijack vulnerability in Rack (RubyGem rack)

CVE-2019-16782 is fixed in ruby-rack on 1 platform, first by ruby-rack 1.6.4-4ubuntu0.2+esm1, released December 18, 2019. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2019-16782
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0370
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Dec 18, 2019

## Description

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 ids are usually stored and indexed in a database that uses some kind of scheme for speeding up lookups of that session id. By carefully measuring the amount of time it takes to look up a session, an attacker may be able to find a valid session id and hijack the session. The session id itself may be generated randomly, but the way the session is indexed by the backing store does not use a secure comparison.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | ruby-rack Ubuntu 18.04.6 LTS (bionic) | 1.6.4-4ubuntu0.2+esm1 | [ruby-rack 1.6.4-4ubuntu0.2+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-ruby-rack-1.6.4-4ubuntu0.2-esm1.md) | Dec 18, 2019 |
| Linux | ruby-rack Ubuntu 20.04 LTS (focal) | 2.0.7-2ubuntu0.1+esm1 | [ruby-rack 2.0.7-2ubuntu0.1+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-ruby-rack-2.0.7-2ubuntu0.1-esm1.md) | Dec 18, 2019 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
