CVE-2026-85689 llmware 0.4.6 SQL Injection via unescaped filter values
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi llmware | <= 0.4.6 | after 0.4.6 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi llmware | <= 0.4.6 | No fix listed |
References
- GitHub Issue #1304 issue-tracking
- github.com product
- github.com technical-description
- VulnCheck Advisory: llmware 0.4.6 SQL Injection via unescaped filter values third-party-advisory
- ENISA EUVD EUVD-2026-71138 third-party-advisory