Vulnerabilities in pkg:gem/decidim-decidim_awesome
PACKAGECVE-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.
pkg:gem/decidim-decidim_awesome
Vulnerability advisories affecting package pkg:gem/decidim-decidim_awesome. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-cxwf-qc32-375f | CVE-2024-43415 | HIGH | Decidim-Awesome has SQL injection in AdminAccountability |
CVE-2024-43415 at a Glance
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).
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.
Upgrade decidim-decidim_awesome to 0.10.3
Upgrade decidim-decidim_awesome to 0.11.2
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
CVE-2024-43415 Affected Decidim decidim awesome Versions
2 component(s)| 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?
Which Decidim decidim awesome versions are affected?
What version fixes CVE-2024-43415?
Is decidim-decidim_awesome affected?
What is the CVSS score of CVE-2024-43415?
What CWE is associated with CVE-2024-43415?
How can I check RubyGems dependencies for CVE-2024-43415?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}