Ash-project ash_authentication_oauth2_server
Unauthenticated authorize requests create unbounded, never-expiring CIMD client rows and cache entries in ash_authentication_oauth2_server
Allocation of Resources Without Limits or Throttling vulnerability in ash-project ash_authentication_oauth2_server allows an unauthenticated attacker to exhaust database storage and memory. The /authorize endpoint is unauthenticated by design. With Client ID Metadata Documents enabled, resolve_client/3 in AshAuthentication.Oauth2Server.CIMD fetches the document for each new URL-shaped client_id and upserts a client row, with no cap on the number of rows, no expiry or garbage collection, and no length bound on the fetched fields; the document was also placed in CIMD.Cache before validation, so even rejected documents held cache memory until their TTL. An attacker serving valid documents at many distinct URLs creates one permanent client row per URL, each able to carry multi-megabyte strings, growing storage and memory without bound. This issue affects ash_authentication_oauth2_server: from 0.3.0 before 0.3.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.3.0, < 0.3.1
Fixed in 0.3.1
- >= e713a9ba816761140c226e2ca55b75c0b93f5984, < 45e24f69e0f95d67413e2508acc2264156acb5ac
Fixed in 45e24f69e0f95d67413e2508acc2264156acb5ac
Mitigation
Upgrade ash_authentication_oauth2_server to 0.3.1 or later.
Upgrade ash_authentication_oauth2_server to 45e24f69e0f95d67413e2508acc2264156acb5ac or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.