{"id":"CVE-2021-41263","published":"2021-11-15T20:10:11Z","modified":"2024-08-04T03:08:31Z","title":"Secure/signed cookies share secrets between sites in rails_multisite","vendor":"discourse","product":"rails_multisite","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00628,"percentile":0.51038,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"},{"id":"CWE-565","name":"Reliance on Cookies without Validation and Integrity Checking"}],"references":[{"url":"https://github.com/discourse/rails_multisite/security/advisories/GHSA-844m-cpr9-jcmh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/discourse/rails_multisite/commit/c6785cdb5c9277dd2c5ac8d55180dd1ece440ed0","tags":["x_refsource_MISC"]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":10.21},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"discourse","affectedVersions":[{"vendor":"discourse","product":"rails_multisite","versions":["< 4.0.0"]}],"affected":[{"ecosystem":"RubyGems","package":"rails_multisite","vulnerableRanges":["<4.0.0"],"patched":["4.0.0"],"from":["GHSA-844m-cpr9-jcmh"],"provenance":"source"}],"summary":{"text":"The rails_multisite gem (Discourse's multi-database support library for Rails applications) has a flaw where signed and encrypted cookies share secrets across sites in a multi-site Rails application that also uses it. An attacker with low-privilege access to the application, reached over the network with no user interaction, could potentially reuse cookies on a different site within that multi-site deployment, depending on how the application uses those cookies.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:17:38Z"},"euvd":{"id":"EUVD-2021-2317","exploited":false,"provenance":"source"}}