Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. rack
  4. ›
  5. CVE-2019-16782

CVE-2019-16782: Possible Information Leak / Session Hijack Vulnerability in Rack

December 18, 2019 (updated February 13, 2025)

There’s a possible information leak / session hijack vulnerability in Rack. 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.

References

  • github.com/advisories/GHSA-hrqr-hxpp-chr3
  • github.com/rack/rack
  • github.com/rack/rack/commit/7fecaee81f59926b6e1913511c90650e76673b38
  • github.com/rack/rack/security/advisories/GHSA-hrqr-hxpp-chr3
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2019-16782.yml
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HZXMWILCICQLA2BYSP6I2CRMUG53YBLX
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HZXMWILCICQLA2BYSP6I2CRMUG53YBLX
  • nvd.nist.gov/vuln/detail/CVE-2019-16782

Code Behaviors & Features

Detect and mitigate CVE-2019-16782 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.6.12, all versions starting from 2.0.0 before 2.0.8

Fixed versions

  • 1.6.12
  • 2.0.8

Solution

Upgrade to versions 1.6.12, 2.0.8 or above.

Impact 6.3 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-203: Observable Discrepancy
  • CWE-208: Observable Timing Discrepancy

Source file

gem/rack/CVE-2019-16782.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:24 +0000.