CVE-2023-47634: Decidim Race Condition Vulnerability

LOW
Advisory Identifier: GHSA-r275-j57c-7mf2
CVSS 3.1
CWE-362
Published
Advisory Summary

CVE-2023-47634 is a LOW (CVSS 3.1) race condition vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Decidim libraries in the RubyGems ecosystem. The issue involves race condition in endorsements. Remediation is available by upgrading affected packages to version 0.26.9, 0.27.5.

CVE-2023-47634 at a Glance

CVE Identifier CVE-2023-47634
GHSA Identifier GHSA-r275-j57c-7mf2
Severity LOW
CVSS v3.1 Base Score 3.1
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product Decidim
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 3.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2023-47634

To remediate this vulnerability, upgrade all affected Decidim dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

decidim fixed: 0.26.9
Upgrade decidim to 0.26.9
decidim fixed: 0.27.5
Upgrade decidim to 0.27.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for decidim

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-47634, inspect your project dependencies for Decidim:

inspect dependencies for decidim

Analyze the terminal output to locate any version of Decidim in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.26.9), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Decidim, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact A race condition in the endorsement of resources (for instance, a proposal) allows a user to make more than once endorsement. To exploit this vulnerability, the request to set an endorsement must be sent several times in parallel. ### Workarounds Disable the Endorsement feature in the components.

CVE-2023-47634 Affected Decidim Versions

2 component(s)
Fixed Versions:
0.26.90.27.5
Product / Package Ecosystem Affected Versions Fixed Version
decidim
RubyGems
≥ 0.10.0
< 0.26.9
0.26.9
decidim
RubyGems
≥ 0.27.0
< 0.27.5
0.27.5

References

Frequently Asked Questions

What is CVE-2023-47634?
CVE-2023-47634 is a security vulnerability in Decidim involving Race condition in Endorsements under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which Decidim versions are affected?
Affected versions include releases prior to 0.26.9, 0.27.5 across affected packages: decidim.
What version fixes CVE-2023-47634?
Upgrading to 0.26.9, 0.27.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is decidim affected?
Yes, decidim is affected in releases prior to 0.26.9, 0.27.5. Upgrade your dependency to 0.26.9, 0.27.5 or later.
What is the CVSS score of CVE-2023-47634?
CVE-2023-47634 has a CVSS v3.1 base score of 3.1 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2023-47634?
CVE-2023-47634 is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.).
How can I check RubyGems dependencies for CVE-2023-47634?
Run the dependency tree command: 'inspect dependencies for decidim'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-r275-j57c-7mf2",
  "modified" : "2025-02-14T18:35:17Z",
  "published" : "2024-02-20T18:02:52Z",
  "aliases" : [ "CVE-2023-47634" ],
  "summary" : "Race condition in Endorsements",
  "details" : "### Impact\n\nA race condition in the endorsement of resources (for instance, a proposal) allows a user to make more than once endorsement.\n\nTo exploit this vulnerability, the request to set an endorsement must be sent several times in parallel.\n \n### Workarounds\n\nDisable the Endorsement feature in the components.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "decidim"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.10.0"
      }, {
        "fixed" : "0.26.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "decidim"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.27.0"
      }, {
        "fixed" : "0.27.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/decidim/decidim/security/advisories/GHSA-r275-j57c-7mf2"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-47634"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/decidim/decidim/commit/5c5ee7a50d75c10643dd8c495e2517641e4d74db"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/decidim/decidim/commit/7b840d2c37a562709f4481db644d8c43add28536"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/decidim/decidim"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/decidim/decidim/releases/tag/v0.26.9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/decidim/decidim/releases/tag/v0.27.5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/decidim/decidim/releases/tag/v0.28.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/decidim/CVE-2023-47634.yml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-362" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-20T18:02:52Z",
    "nvd_published_at" : "2024-02-29T01:41:28Z"
  }
}