{"id":"CVE-2023-48220","published":"2024-02-20T17:24:37Z","modified":"2025-04-24T15:04:40Z","title":"Decidim's devise_invitable gem vulnerable to circumvention of invitation token expiry period","vendor":"decidim","product":"decidim","tier":"tail","description":{"text":"Decidim is a participatory democracy framework. Starting in version 0.4.rc3 and prior to version 2.0.9 of the `devise_invitable` gem, the invites feature allows users to accept the invitation for an unlimited amount of time through the password reset functionality. This issue creates vulnerable dependencies starting in version 0.0.1.alpha3 and prior to versions 0.26.9, 0.27.5, and 0.28.0 of the `decidim,` `decidim-admin`, and `decidim-system` gems. When using the password reset functionality, the `devise_invitable` gem always accepts the pending invitation if the user has been invited. The only check done is if the user has been invited but the code does not ensure that the pending invitation is still valid as defined by the `invite_for` expiry period. Decidim sets this configuration to `2.weeks` so this configuration should be respected. The bug is in the `devise_invitable` gem and should be fixed there and the dependency should be upgraded in Decidim once the fix becomes available. `devise_invitable` to version `2.0.9` and above fix this issue. Versions 0.26.9, 0.27.5, and 0.28.0 of the `decidim,` `decidim-admin`, and `decidim-system` gems contain this fix. As a workaround, invitations can be cancelled directly from the database.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00791,"percentile":0.57205,"provenance":"source"},"cwes":[{"id":"CWE-672","name":"Operation on a Resource after Expiration or Release"}],"references":[{"url":"https://github.com/decidim/decidim/security/advisories/GHSA-w3q8-m492-4pwp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/decidim/decidim/commit/073e60e2e4224dd81815a784002ebba30f2ebb34","tags":["x_refsource_MISC"]},{"url":"https://github.com/decidim/decidim/commit/b12800717a689c295a9ea680a38ca9f823d2c454","tags":["x_refsource_MISC"]},{"url":"https://github.com/scambra/devise_invitable/commit/94d859c7de0829bf63f679ae5dd3cab2b866a098","tags":["x_refsource_MISC"]},{"url":"https://github.com/decidim/decidim/blob/d2d390578050772d1bdb6d731395f1afc39dcbfc/decidim-core/config/initializers/devise.rb#L134","tags":["x_refsource_MISC"]},{"url":"https://github.com/decidim/decidim/releases/tag/v0.26.9","tags":["x_refsource_MISC"]},{"url":"https://github.com/decidim/decidim/releases/tag/v0.27.5","tags":["x_refsource_MISC"]},{"url":"https://github.com/decidim/decidim/releases/tag/v0.28.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/scambra/devise_invitable/blob/41f58970ff76fb64382a9b9ea1bd530f7c3adab2/lib/devise_invitable/models.rb#L198","tags":["x_refsource_MISC"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":11.44},{"name":"CVSS severity","points":3.99}]},"vendorSlug":"decidim","affectedVersions":[{"vendor":"decidim","product":"decidim","versions":[">= 0.0.1.alpha3, < 0.26.9",">= 0.27.0, < 0.27.5",">= 0.4.rc3, < 2.0.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-02-21T15:23:30.053194Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"decidim","vulnerableRanges":[">=0.0.1.alpha3, <0.26.9",">=0.27.0, <0.27.5"],"patched":["0.26.9","0.27.5"],"from":["GHSA-w3q8-m492-4pwp"],"provenance":"source"},{"ecosystem":"RubyGems","package":"decidim-admin","vulnerableRanges":[">=0.0.1.alpha3, <0.26.9",">=0.27.0, <0.27.5"],"patched":["0.26.9","0.27.5"],"from":["GHSA-w3q8-m492-4pwp"],"provenance":"source"},{"ecosystem":"RubyGems","package":"decidim-system","vulnerableRanges":[">=0.0.1.alpha3, <0.26.9",">=0.27.0, <0.27.5"],"patched":["0.26.9","0.27.5"],"from":["GHSA-w3q8-m492-4pwp"],"provenance":"source"},{"ecosystem":"RubyGems","package":"devise_invitable","vulnerableRanges":[">=0.4.rc3, <2.0.9"],"patched":["2.0.9"],"from":["GHSA-w3q8-m492-4pwp"],"provenance":"source"}],"summary":{"text":"Decidim's bundled devise_invitable gem (versions from 0.4.rc3 up to 2.0.9) does not enforce the invitation expiry period when a user goes through the password reset flow, so pending invitations remain acceptable indefinitely. An attacker who can reach the password reset functionality and has access to, or has been issued, an invitation for a user must authenticate or hold a privileged account to exploit this, and the attack depends on the user's involvement in the reset flow.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:12Z"},"euvd":{"id":"EUVD-2024-0744","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-34090","published":"2023-07-11","fixed":"0.27.3","kev":false},{"cve":"CVE-2023-36465","published":"2023-10-06","fixed":"0.27.4","kev":false,"link":{"from":"CVE-2023-36465","to":"CVE-2023-48220","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:decidim","fromFixed":"0.26.8","toFixed":"0.26.9","daysApart":137},{"kind":"version-step","provenance":"source","package":"RubyGems:decidim","fromFixed":"0.27.4","toFixed":"0.27.5","daysApart":137}]}},{"cve":"CVE-2023-47634","published":"2024-02-20","fixed":"0.27.5","kev":false},{"cve":"CVE-2023-48220","published":"2024-02-20","fixed":"0.27.5","kev":false},{"cve":"CVE-2023-51447","published":"2024-02-20","fixed":"0.27.5","kev":false},{"cve":"CVE-2024-27090","published":"2024-07-10","fixed":"0.27.6","kev":false},{"cve":"CVE-2024-39910","published":"2024-09-16","fixed":"0.27.7","kev":false}],"package":"RubyGems:decidim"}}