GHSA-jg26-q8hg-3pq4: SQL Injection
Impact
An unauthenticated JCR-SQL2 injection exists in the Smart Content category filter of the 2.x content query builder.
Category IDs supplied through the public ?categories= query parameter are only trimmed and are then concatenated directly into a JCR-SQL2 WHERE clause, without the numeric validation that the equivalent tag filter already performs. Any public page that renders a Smart Content element with category filtering enabled evaluates this parameter, so no authentication or special configuration beyond a category-filtered content block is required.
An anonymous visitor can therefore:
- inject boolean conditions to infer the existence of, and disclose, content nodes they should not see (for example unpublished pages) via blind boolean-based extraction; and - submit malformed query fragments that cause query errors or resource-intensive queries, degrading availability.
Because the sink is a JCR-SQL2 query, the impact is limited to reading and enumerating content-repository nodes and to error/denial-of-service conditions; it cannot be used to modify data through this path.
Patches
Fixed in 2.6.25 and 3.0.8. Category, tag, and audience-target-group IDs are now cast to integers before they are used in the JCR-SQL2 query, so no attacker-controlled characters can reach the query.
Workarounds
If you cannot upgrade immediately:
- Apply the fix manually — cast each ID to an integer where it is concatenated into the category (and, defensively, tag and audience-targeting) WHERE clause in the content Smart Content query builder. - Alternatively, disable category filtering on publicly reachable Smart Content elements until the patch is applied.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/sulu/suluto a version that resolves this vulnerability.Fixed in 3.0.8 - Upgrade
Upgrade
composer/sulu/suluto a version that resolves this vulnerability.Fixed in 2.6.25 - Upgrade
Upgrade
Smart Contentto a version that resolves this vulnerability.Fixed in 2.6.25 - Upgrade
Upgrade
Smart Contentto a version that resolves this vulnerability.Fixed in 3.0.8 - Configuration
Disable category filtering on publicly reachable Smart Content elements until the patch is applied.
Publicly reachable Smart Content elements category filtering = disabled - Compensating control
In the 2.x content query builder, cast each category ID to an integer before concatenating it into the JCR-SQL2 WHERE clause; also cast tag and audience-target-group IDs to integers so attacker-controlled characters cannot reach the query.
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Any public page that renders a Smart Content element with category filtering enabled is exposed, because it evaluates the public categories query parameter. No authentication is required.
What does an attacker need to exploit it?
An attacker only needs to send crafted category IDs through the public ?categories= query parameter. The vulnerable query builder concatenates those values into a JCR-SQL2 WHERE clause without numeric validation.
What can an attacker do through this flaw?
An attacker can use boolean-based injection to infer and disclose repository content nodes that should not be visible, including unpublished pages. Malformed or resource-intensive query fragments can also trigger errors or degrade availability, but this path cannot modify data.
Which versions contain fixes?
The issue is fixed in versions 2.6.25 and 3.0.8. The provided data does not identify a workaround for deployments that cannot yet update.