{"id":"CVE-2026-85689","state":"PUBLISHED","title":"llmware 0.4.6 SQL Injection via unescaped filter values","description":"llmware 0.4.6 contains an SQL injection vulnerability in the collection-database layer (llmware/resources.py) where filter and lookup values are directly string-interpolated into SQL WHERE clauses without parameterization or escaping, in both the SQLite and PostgreSQL backends. The filter validator only checks keys against an allow-list and never sanitizes values. Attacker-controlled filter values reaching the public API via Library.block_lookup and Query.text_query_with_custom_filter / text_query_by_author_or_speaker can neutralize the intended filter to disclose rows the caller was scoped out of (cross-document/cross-collection disclosure); on PostgreSQL the flaw permits boolean- and UNION-based SQL injection.","publishedAt":"2026-09-04T14:32:33.799Z","updatedAt":"2026-09-08T17:10:27.342Z","severity":{"score":7.1,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","source":"VulnCheck"},"assigner":"VulnCheck","products":["llmware-ai llmware"],"affected":[{"vendor":"llmware-ai","product":"llmware","packageURL":"pkg:pypi/llmware","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.4.6","versionType":"semver"}]}],"references":["https://github.com/llmware-ai/llmware/issues/1304","https://github.com/llmware-ai/llmware","https://github.com/llmware-ai/llmware/blob/v0.4.6/llmware/resources.py","https://www.vulncheck.com/advisories/llmware-0.4.6-sql-injection-via-unescaped-filter-values"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T20:13:15.269Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/85xxx/CVE-2026-85689.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-85689","state":"PUBLISHED","datePublished":"2026-09-04T14:32:33.799Z","dateUpdated":"2026-09-08T17:10:27.342Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-09-04T13:51:43.959Z"},"containers":{"cna":{"title":"llmware 0.4.6 SQL Injection via unescaped filter values","descriptions":[{"lang":"en","value":"llmware 0.4.6 contains an SQL injection vulnerability in the collection-database layer (llmware/resources.py) where filter and lookup values are directly string-interpolated into SQL WHERE clauses without parameterization or escaping, in both the SQLite and PostgreSQL backends. The filter validator only checks keys against an allow-list and never sanitizes values. Attacker-controlled filter values reaching the public API via Library.block_lookup and Query.text_query_with_custom_filter / text_query_by_author_or_speaker can neutralize the intended filter to disclose rows the caller was scoped out of (cross-document/cross-collection disclosure); on PostgreSQL the flaw permits boolean- and UNION-based SQL injection."}],"affected":[{"vendor":"llmware-ai","product":"llmware","packageURL":"pkg:pypi/llmware","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.4.6","versionType":"semver"}]}],"references":[{"url":"https://github.com/llmware-ai/llmware/issues/1304","tags":["issue-tracking"],"name":"GitHub Issue #1304"},{"url":"https://github.com/llmware-ai/llmware","tags":["product"]},{"url":"https://github.com/llmware-ai/llmware/blob/v0.4.6/llmware/resources.py","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/llmware-0.4.6-sql-injection-via-unescaped-filter-values","name":"VulnCheck Advisory: llmware 0.4.6 SQL Injection via unescaped filter values","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":7.1,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-09-04T14:32:33.799Z"},"datePublic":"2026-06-12T00:00:00.000Z","credits":[{"lang":"en","value":"George Chen","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-08T17:10:16.228234Z","id":"CVE-2026-85689","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-08T17:10:27.342Z"}}]}}}