CVE-2023-48220Decidim's devise_invitable gem vulnerable to circumvention of invitation token expiry period
- 5.7MediumCVSS base score
- 0.79%Exploitation in 30 daysEPSS · top 43% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By GitHub_M
- 3 months later
· 3 months later
Published
- 14 months later
· 14 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium5.7 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N |
| NVDNVD · Analyzed | 3.1 | High7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
- EPSS (exploitation in 30 days)
- 0.79% · top 43% of all CVEs (13 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.7.
Affected products
Affected packages
Affected packages4
From reviewed advisories of the GitHub Advisory Database.
- RubyGemsdecidimGHSA-w3q8-m492-4pwp (opens in a new tab)
- RubyGemsdecidim-adminGHSA-w3q8-m492-4pwp (opens in a new tab)
- RubyGemsdecidim-systemGHSA-w3q8-m492-4pwp (opens in a new tab)
- RubyGemsdevise_invitableGHSA-w3q8-m492-4pwp (opens in a new tab)
References
References9
- https://github.com/decidim/decidim/security/advisories/GHSA-w3q8-m492-4pwp (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/decidim/decidim/commit/073e60e2e4224dd81815a784002ebba30f2ebb34 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/decidim/decidim/commit/b12800717a689c295a9ea680a38ca9f823d2c454 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/scambra/devise_invitable/commit/94d859c7de0829bf63f679ae5dd3cab2b866a098 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/decidim/decidim/blob/d2d390578050772d1bdb6d731395f1afc39dcbfc/decidim-core/config/initializers/devise.rb#L134 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/decidim/decidim/releases/tag/v0.26.9 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/decidim/decidim/releases/tag/v0.27.5 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/decidim/decidim/releases/tag/v0.28.0 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/scambra/devise_invitable/blob/41f58970ff76fb64382a9b9ea1bd530f7c3adab2/lib/devise_invitable/models.rb#L198 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-0744 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-w3q8-m492-4pwp (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2023-48220)Record last updated .