Description
New API is a large language mode (LLM) gateway and artificial intelligence (AI) asset management system. Prior to version 0.10.8-alpha.10, a SQL LIKE wildcard injection vulnerability in the `/api/token/search` endpoint allows authenticated users to cause denial of service through resource exhaustion by crafting malicious search patterns. The token search endpoint accepts user-supplied `keyword` and `token` parameters that are directly concatenated into SQL LIKE clauses without escaping wildcard characters (`%`, `_`). This allows attackers to inject patterns that trigger expensive database queries. Version 0.10.8-alpha.10 contains a patch.
Problem types
CWE-943: Improper Neutralization of Special Elements in Data Query Logic
Product status
References
github.com/...ew-api/security/advisories/GHSA-w6x6-9fp7-fqm4
github.com/...ommit/3e1be18310f35d20742683ca9e4bf3bcafc173c5
github.com/QuantumNous/new-api/releases/tag/v0.10.8-alpha.10