The agent-accessible asset DSL joined untrusted OR expressions without enclosing parentheses and then appended a mandatory task_scope predicate using AND. Standard SQL gives AND higher precedence than OR, allowing an earlier OR branch to select records outside the task even though the final query text visibly contains a task filter. The advisory derives…
Inspect the ClaimsCase · DiggingBeagle record
ARTEX asset-query OR expressions could escape mandatory per-task filters
The advisory derives the failure from QueryDSLInScope and related query functions during source review.
Published by DiggingBeagle:
BaaRai/ARTEX open-source continuation fork, not automatically the earlier original ARTEX operator distribution through v0.6.0; task agent invokes asset listing with a compound OR expression.
Assessment profile
Assessment method- Setting
- research demonstration
- Exploitation
- not established
- Evidence
- Grade B
- Remediation
- patch available
- AI role
- AGAINST AI
Basis and provenance
The cited primary source supports the stated mechanism and scoped outcome. Impact band remains unrated because no calibrated victim exposure or severity distribution is established by the cited evidence.
Assessed Nov 22, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-2026-NOV22-ARTEX-ASSET-OR-SCOPE-MECHANISM · CLM-2026-NOV22-ARTEX-ASSET-OR-SCOPE-SCOPE · BaaRai ARTEX advisory: SQL operator precedence breaks agent task-asset isolation
At a glance
The authorizing condition must be applied to the complete expression as executed by the database, not merely appended as readable text. The advisory is a code-review finding in the continuation fork, so no production disclosure, victim count or original ARTEX campaign link follows from it.
Read the implicationsThe absence of a field demonstration must be preserved. A correct SQL clause is not a security guard when it is composed without explicit operator grouping.
Limits and uncertaintyFull account
The agent-accessible asset DSL joined untrusted OR expressions without enclosing parentheses and then appended a mandatory task_scope predicate using AND. Standard SQL gives AND higher precedence than OR, allowing an earlier OR branch to select records outside the task even though the final query text visibly contains a task filter.
The advisory derives the failure from QueryDSLInScope and related query functions during source review. It explicitly says no vulnerable deployment was tested, so cross-task data disclosure remains a code-supported possibility rather than a documented production read. The critical boundary is model-supplied filter syntax modifying the meaning of a supposedly mandatory task authorization predicate.
The documented repair is parenthesize the user expression before appending scope checks and test nested OR/AND combinations against cross-task fixtures. The absence of a field demonstration must be preserved. A correct SQL clause is not a security guard when it is composed without explicit operator grouping.
Mechanism and trust boundary
- 01
Enter an OR filter through list_assets
A task agent submits a compound asset query using the DSL accepted by the BaaRai ARTEX asset-listing tool.
Boundary: Model or caller supplied filter into structured query
- 02
Append task scope without parentheses
QueryDSLInScope appends an AND task predicate to the ungrouped OR clauses; the database evaluates AND before the leading OR branch.
Boundary: Untrusted query expression changes the meaning of mandatory authorization
- 03
Return a potentially out-of-task match
The first OR branch can match assets outside the assigned task despite the textual presence of a scope condition. This route was identified by source inspection, not a live cross-task read.
Boundary: SQL result selection outside intended task isolation
Claims & evidence
CLM-2026-NOV22-ARTEX-ASSET-OR-SCOPE-SCOPEThe advisory derives the failure from QueryDSLInScope and related query functions during source review. It explicitly says no vulnerable deployment was tested, so cross-task data disclosure remains a code-supported possibility rather than a documented production read.supported
Basis: reported finding
- supportsBaaRai ARTEX advisory: SQL operator precedence breaks agent task-asset isolationprimary disclosure
Primary advisory or study: reproduction, results and limitations
CLM-2026-NOV22-ARTEX-ASSET-OR-SCOPE-MECHANISMThe agent-accessible asset DSL joined untrusted OR expressions without enclosing parentheses and then appended a mandatory task_scope predicate using AND. Standard SQL gives AND higher precedence than OR, allowing an earlier OR branch to select records outside the task even though the final query text visibly contains a task filter.supported
Basis: reported finding
- supportsBaaRai ARTEX advisory: SQL operator precedence breaks agent task-asset isolationprimary disclosure
Primary advisory or study: technical mechanism and affected component
- supportsBaaRai ARTEX advisory: SQL operator precedence breaks agent task-asset isolationprimary disclosure
GHSA-fjhc-prxm-c237: QueryDSLInScope, OR clause assembly and appended task_scope predicate
Implications
The authorizing condition must be applied to the complete expression as executed by the database, not merely appended as readable text. The advisory is a code-review finding in the continuation fork, so no production disclosure, victim count or original ARTEX campaign link follows from it.
Controls and mitigations
- parenthesize the user expression before appending scope checks and test nested OR/AND combinations against cross-task fixtures
Unknowns and contradictions
- The absence of a field demonstration must be preserved. A correct SQL clause is not a security guard when it is composed without explicit operator grouping.
Sources and citation
Material revision history
- Nov 22, 2026 · Published version · first publication · revision 275