Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-81636

NONE Gepubliceerd: CWE-770

Beschrijving NL

Toewijzing van bronnen zonder limieten of beperking van kwetsbaarheid in ash-project ash_graphql stelt een niet-geverifieerde client in staat om de geconfigureerde GraphQL-querycomplexiteitslimiet te omzeilen en een onbegrensde databaselezing te forceren. AshGraphql.Graphql.Resolver.query_complexity/3 vermenigvuldigt de complexiteit van het kind alleen met de gevraagde paginagrootte wanneer de argumenttoewijzing:limit (offset paginering) bevat. Relaisverbindingen en paginering van sleutelsets gebruiken de eerste en laatste, die nooit overeenkomen met die clausule en vallen door naar de catch-all die child_complexity + 1 retourneert. Een geneste relay-query zoals berichten(eerste: 500) { edges {node { comments(first: 500) { ... }}} } scoort daarom als triviaal goedkoop terwijl de volledige fan-out wordt gematerialiseerd, door een Absinthe max_complexity cap te passeren die de equivalente op limiet gebaseerde query afwijst. De oplossing voegt eerste en laatste clausules toe die zijn vastgeklemd aan het paginaformaat van de actie. Dit probleem heeft invloed op ash_graphql: van 0.16.23 voor 1.11.0.

Origineel (Engels) tonen

Allocation of Resources Without Limits or Throttling vulnerability in ash-project ash_graphql allows an unauthenticated client to bypass the configured GraphQL query-complexity limit and force an unbounded database read.

AshGraphql.Graphql.Resolver.query_complexity/3 multiplies child complexity by the requested page size only when the argument map contains :limit (offset pagination). Relay connections and keyset pagination use first and last, which never match that clause and fall through to the catch-all that returns child_complexity + 1. A nested relay query such as posts(first: 500) { edges { node { comments(first: 500) { ... } } } } therefore scores as trivially cheap while materializing the full fan-out, passing an Absinthe max_complexity cap that rejects the equivalent limit-based query. The fix adds first and last clauses clamped to the action's page size.

This issue affects ash_graphql: from 0.16.23 before 1.11.0.

References