GHSA-jvqq-cvh4-xm37: Decidim: Admin user search allows SQL injection through similarity-based sorting
Decidim-admin versions prior to 0.30.9 contain an SQL injection vulnerability in the admin organization user search feature. The vulnerability arises because user-supplied input is directly interpolated into raw SQL ORDER BY clauses without proper sanitization, allowing authenticated admin users to inject arbitrary SQL expressions. Exploitation requires admin authentication and can be used to perform blind SQL injection via timing attacks, potentially exposing sensitive data accessible to the database role. The vulnerability can also be abused to degrade service availability by causing long-running queries.
AI Analysis
Technical Summary
The Decidim-admin application exposes an SQL injection vulnerability (CVE-2026-45376) in the GET /admin/organization/users endpoint. The vulnerability is due to unsafe interpolation of the user-controlled 'term' parameter into raw SQL ORDER BY expressions used for similarity-based sorting. Although the WHERE clauses use bind parameters, the ORDER BY clauses use Arel.sql with interpolated strings, bypassing Rails sanitization. This allows an authenticated admin user to inject arbitrary SQL code into the ORDER BY clause, which PostgreSQL executes as part of the sorting operation. Exploitation can be performed via blind SQL injection techniques, such as time delays using pg_sleep, to infer data or degrade availability. The issue affects decidim-admin versions before 0.30.9. A patch is referenced in the Decidim GitHub repository pull request #16668.
Potential Impact
An authenticated organization admin can exploit this vulnerability to execute arbitrary SQL expressions within the database ORDER BY clause. This can lead to unauthorized data disclosure through blind SQL injection techniques, such as timing attacks, and potential denial of service by causing long-running queries. The impact is limited by the requirement for admin authentication but remains significant due to the ability to execute arbitrary SQL within the database context. The vulnerability does not directly affect data integrity or availability beyond induced delays but can expose sensitive information accessible to the database user.
Mitigation Recommendations
A patch addressing this vulnerability is available in Decidim version 0.30.9 and later, as referenced in the Decidim GitHub pull request #16668. Users should upgrade to version 0.30.9 or later to remediate the issue. As a temporary workaround, restrict administrator access to trusted users only. No other mitigations are specifically recommended by the vendor advisory.
GHSA-jvqq-cvh4-xm37: Decidim: Admin user search allows SQL injection through similarity-based sorting
Description
Decidim-admin versions prior to 0.30.9 contain an SQL injection vulnerability in the admin organization user search feature. The vulnerability arises because user-supplied input is directly interpolated into raw SQL ORDER BY clauses without proper sanitization, allowing authenticated admin users to inject arbitrary SQL expressions. Exploitation requires admin authentication and can be used to perform blind SQL injection via timing attacks, potentially exposing sensitive data accessible to the database role. The vulnerability can also be abused to degrade service availability by causing long-running queries.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Decidim-admin application exposes an SQL injection vulnerability (CVE-2026-45376) in the GET /admin/organization/users endpoint. The vulnerability is due to unsafe interpolation of the user-controlled 'term' parameter into raw SQL ORDER BY expressions used for similarity-based sorting. Although the WHERE clauses use bind parameters, the ORDER BY clauses use Arel.sql with interpolated strings, bypassing Rails sanitization. This allows an authenticated admin user to inject arbitrary SQL code into the ORDER BY clause, which PostgreSQL executes as part of the sorting operation. Exploitation can be performed via blind SQL injection techniques, such as time delays using pg_sleep, to infer data or degrade availability. The issue affects decidim-admin versions before 0.30.9. A patch is referenced in the Decidim GitHub repository pull request #16668.
Potential Impact
An authenticated organization admin can exploit this vulnerability to execute arbitrary SQL expressions within the database ORDER BY clause. This can lead to unauthorized data disclosure through blind SQL injection techniques, such as timing attacks, and potential denial of service by causing long-running queries. The impact is limited by the requirement for admin authentication but remains significant due to the ability to execute arbitrary SQL within the database context. The vulnerability does not directly affect data integrity or availability beyond induced delays but can expose sensitive information accessible to the database user.
Mitigation Recommendations
A patch addressing this vulnerability is available in Decidim version 0.30.9 and later, as referenced in the Decidim GitHub pull request #16668. Users should upgrade to version 0.30.9 or later to remediate the issue. As a temporary workaround, restrict administrator access to trusted users only. No other mitigations are specifically recommended by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-jvqq-cvh4-xm37
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-45376"]
- Ecosystems
- ["RubyGems"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a55ffbf68715ace432fb902
Added to database: 07/14/2026, 09:22:07 UTC
Last enriched: 07/14/2026, 10:02:31 UTC
Last updated: 07/14/2026, 10:16:32 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.