CVE-2024-43415: Decidim decidim awesome SQL Injection Vulnerability

HIGH
Advisory Identifier: GHSA-cxwf-qc32-375f
CVSS 9.0
CWE-89
Published
Advisory Summary

CVE-2024-43415 is a HIGH (CVSS 9.0) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Decidim decidim awesome libraries in the RubyGems ecosystem. The issue involves decidim-awesome has sql injection in adminaccountability. Remediation is available by upgrading affected packages to version 0.10.3, 0.11.2.

CVE-2024-43415 at a Glance

CVE Identifier CVE-2024-43415
GHSA Identifier GHSA-cxwf-qc32-375f
Severity HIGH
CVSS v3.1 Base Score 9.0
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Decidim decidim awesome
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 9.0

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

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

How to Fix CVE-2024-43415

To remediate this vulnerability, upgrade all affected Decidim decidim awesome 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-decidim_awesome fixed: 0.10.3
Upgrade decidim-decidim_awesome to 0.10.3
decidim-decidim_awesome fixed: 0.11.2
Upgrade decidim-decidim_awesome to 0.11.2
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-decidim_awesome

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-43415, inspect your project dependencies for Decidim decidim awesome:

inspect dependencies for decidim-decidim_awesome

Analyze the terminal output to locate any version of Decidim decidim awesome in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.3), 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-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Decidim decidim awesome, 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

## Vulnerability type: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') ## Vendor: Decidim International Community Environment ### Has vendor confirmed: Yes ### Attack type: Remote ### Impact: Code Execution Escalation of Privileges Information Disclosure ### Affected component: A raw sql-statement that uses an interpolated variable exists in the admin_role_actions method of the `papertrail/version-model(app/models/decidim/decidim_awesome/paper_trail_version.rb`). ### Attack vector: An attacker with admin permissions could manipulate database queries in order to read out the database, read files from the filesystem, write files from the filesystem. In the worst case, this could lead to remote code execution on the server. Description of the vulnerability for use in the CVE [ℹ] (https://cveproject.github.io/docs/content/key-details- phrasing.pdf) : An improper neutralization of special elements used in an SQL command in the `papertrail/version- model` of the decidim_awesome-module <= v0.11.1 (> 0.9.0) allows an authenticated admin user to manipulate sql queries to disclose information, read and write files or execute commands. ### Discoverer Credits: Wolfgang Hotwagner ### References: https://pentest.ait.ac.at/security-advisory/decidim-awesome-sql-injection-in-adminaccountability/ https://portswigger.net/web-security/sql-injection

CVE-2024-43415 Affected Decidim decidim awesome Versions

2 component(s)
Fixed Versions:
0.10.30.11.2
Product / Package Ecosystem Affected Versions Fixed Version
decidim-decidim_awesome
RubyGems
≥ 0.9.1
< 0.10.3
0.10.3
decidim-decidim_awesome
RubyGems
≥ 0.11.0
< 0.11.2
0.11.2

References

Frequently Asked Questions

What is CVE-2024-43415?
CVE-2024-43415 is a security vulnerability in Decidim decidim awesome involving Decidim-Awesome has SQL injection in AdminAccountability under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Decidim decidim awesome versions are affected?
Affected versions include releases prior to 0.10.3, 0.11.2 across affected packages: decidim-decidim_awesome.
What version fixes CVE-2024-43415?
Upgrading to 0.10.3, 0.11.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is decidim-decidim_awesome affected?
Yes, decidim-decidim_awesome is affected in releases prior to 0.10.3, 0.11.2. Upgrade your dependency to 0.10.3, 0.11.2 or later.
What is the CVSS score of CVE-2024-43415?
CVE-2024-43415 has a CVSS v3.1 base score of 9.0 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:L.
What CWE is associated with CVE-2024-43415?
CVE-2024-43415 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.).
How can I check RubyGems dependencies for CVE-2024-43415?
Run the dependency tree command: 'inspect dependencies for decidim-decidim_awesome'. 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-cxwf-qc32-375f",
  "modified" : "2024-11-13T23:24:27Z",
  "published" : "2024-11-12T19:52:22Z",
  "aliases" : [ "CVE-2024-43415" ],
  "summary" : "Decidim-Awesome has SQL injection in AdminAccountability",
  "details" : "## Vulnerability type: \nCWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')\n## Vendor: \nDecidim International Community Environment\n\n### Has vendor confirmed: \nYes\n\n### Attack type:\nRemote\n\n### Impact:\nCode Execution\nEscalation of Privileges\nInformation Disclosure\n\n### Affected component:\nA raw sql-statement that uses an interpolated variable exists in the admin_role_actions method of the\n`papertrail/version-model(app/models/decidim/decidim_awesome/paper_trail_version.rb`).\n\n### Attack vector:\n\nAn attacker with admin permissions could manipulate database queries in order to read out the database,\nread files from the filesystem, write files from the filesystem. In the worst case, this could lead to remote code\nexecution on the server.\nDescription of the vulnerability for use in the CVE [ℹ] (https://cveproject.github.io/docs/content/key-details-\nphrasing.pdf) : An improper neutralization of special elements used in an SQL command in the `papertrail/version-\nmodel` of the decidim_awesome-module <= v0.11.1 (> 0.9.0) allows an authenticated admin user to manipulate sql queries\nto disclose information, read and write files or execute commands.\n\n### Discoverer Credits:\nWolfgang Hotwagner\n\n### References:\nhttps://pentest.ait.ac.at/security-advisory/decidim-awesome-sql-injection-in-adminaccountability/\nhttps://portswigger.net/web-security/sql-injection",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "decidim-decidim_awesome"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.9.1"
      }, {
        "fixed" : "0.10.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "decidim-decidim_awesome"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.11.0"
      }, {
        "fixed" : "0.11.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/decidim-ice/decidim-module-decidim_awesome/security/advisories/GHSA-cxwf-qc32-375f"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-43415"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/decidim-ice/decidim-module-decidim_awesome/commit/84374037d34a3ac80dc18406834169c65869f11b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/decidim-ice/decidim-module-decidim_awesome"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/decidim-decidim_awesome/CVE-2024-43415.yml"
  }, {
    "type" : "WEB",
    "url" : "https://pentest.ait.ac.at/security-advisory/decidim-awesome-sql-injection-in-adminaccountability"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-89" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-12T19:52:22Z",
    "nvd_published_at" : "2024-11-12T16:15:21Z"
  }
}