CVE-2019-16782Possible 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 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.
What to do
Fixed builds are available from Debian, RubyGems: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | ruby-rack | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | ruby-rack | Fix pending | 2.0.7-2ubuntu0.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2019-16782 |
| Ubuntu 18.04 | ruby-rack | Fix pending | 1.6.4-4ubuntu0.2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2019-16782 |
| Ubuntu 16.04 | ruby-rack | Fix pending | 1.6.4-3ubuntu0.2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2019-16782 |
| Ubuntu 14.04 | ruby-rack | Fix pending | 1.5.2-3+deb8u3ubuntu1~esm3 (Ubuntu Pro) | UBUNTU-CVE-2019-16782 |
| Debian 14 | ruby-rack | Fixed | 2.1.1-2 | DEBIAN-CVE-2019-16782 |
| Debian 13 | ruby-rack | Fixed | 2.1.1-2 | DEBIAN-CVE-2019-16782 |
| Debian 12 | ruby-rack | Fixed | 2.1.1-2 | DEBIAN-CVE-2019-16782 |
| RubyGems library | rack | Fixed | 2.0.8 | GHSA-hrqr-hxpp-chr3 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- rack: affected: before 1.6.12 or 2.0.8
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00016.html (vendor-advisory)
References
- https://github.com/rack/rack/security/advisories/GHSA-hrqr-hxpp-chr3
- https://github.com/rack/rack/commit/7fecaee81f59926b6e1913511c90650e76673b38
- http://www.openwall.com/lists/oss-security/2019/12/18/3
- http://www.openwall.com/lists/oss-security/2019/12/18/2
- http://www.openwall.com/lists/oss-security/2019/12/19/3
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HZXMWILCICQLA2BYSP6I2CRMUG53YBLX/
- http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00016.html
- http://www.openwall.com/lists/oss-security/2020/04/08/1
- http://www.openwall.com/lists/oss-security/2020/04/09/2
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.