CVE-2019-16782
Possible Information Leak / Session Hijack Vulnerability in Rack
Reported by github_m · Published December 18, 2019
rack is fixed in 2.0.8 and 1.6.12 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rack | RubyGems | 2.0.8, 1.6.12 |
| rack | rack | 2.0.8, 1.6.12 |
| ruby-rack | Ubuntu:Pro:14.04:LTS | 1.5.2-3+deb8u3ubuntu1~esm3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| rack | rack | before 1.6.12 or 2.0.8 |
| RubyGems | rack | 0, 2.0.0 |
| rack | rack | 1.6.12 |
Timeline
- Dec 18, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 Distribution Patch (2 in total, the first dated here)
- Mar 6, 2026 Security Advisory (8 in total, the first dated here)
- Sep 13, 2026 Coalition ESS Score
- Sep 20, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-16782
vulnetix vdb fixes CVE-2019-16782
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-16782/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- [oss-security] 20191219 Re: [CVE-2019-16782] Possible Information Leak / Session Hijack Vulnerability in Rack mailing-listx_refsource_MLIST
- [oss-security] 20191218 [CVE-2019-16782] Possible Information Leak / Session Hijack Vulnerability in Rack mailing-listx_refsource_MLIST
- [oss-security] 20191218 Re: [CVE-2019-16782] Possible Information Leak / Session Hijack Vulnerability in Rack mailing-listx_refsource_MLIST
- FEDORA-2020-57fc0d0156 vendor-advisoryx_refsource_FEDORA
- openSUSE-SU-2020:0214 vendor-advisoryx_refsource_SUSE
- [oss-security] 20200409 Re: [CVE-2019-16782] Possible Information Leak / Session Hijack Vulnerability in Rack mailing-listx_refsource_MLIST
- [oss-security] 20200408 Re: [CVE-2019-16782] Possible Information Leak / Session Hijack Vulnerability in Rack mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2019-16782 advisory
- https://github.com/advisories/GHSA-hrqr-hxpp-chr3 advisory
- https://github.com/rack/rack url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2019-16782.yml advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HZXMWILCICQLA2BYSP6I2CRMUG53YBLX url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HZXMWILCICQLA2BYSP6I2CRMUG53YBLX url