Vulnerability · Published Nov 15, 2021 · Assigned by GitHub_M

CVE-2021-41263Secure/signed cookies share secrets between sites in rails_multisite

High 8.3

In plain English

A high-severity information exposure in rails_multisite from discourse. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.3High
Exploit odds (30 days)0.6%top 49.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

rails_multisite provides multi-db support for Rails applications. In affected versions this vulnerability impacts any Rails applications using `rails_multisite` alongside Rails' signed/encrypted cookies. Depending on how the application makes use of these cookies, it may be possible for an attacker to re-use cookies on different 'sites' within a multi-site Rails application. The issue has been patched in v4 of the `rails_multisite` gem. Note that this upgrade will invalidate all previous signed/encrypted cookies. The impact of this invalidation will vary based on the application architecture.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
RubyGemsrails_multisite4.0.0GHSA-844m-cpr9-jcmh

Affected products (as reported)

VendorProductVersions
discourse rails_multisite < 4.0.0

Weakness: CWE-200, CWE-565 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H

References