Description
LangChain4j before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 contains an injection vulnerability in embedding store metadata filters that writes non-String values into queries via toString() without escaping. Attackers who control loosely typed filter values, such as nested Lists or Maps from request JSON or LLM tool output, can inject SQL or query operators in pgvector, MariaDB, Milvus, MongoDB Atlas, or Chroma stores to read other tenants' documents or delete rows via removeAll.
References
- www.cve.org/CVERecord ↗
- nvd.nist.gov/vuln/detail/CVE-2026-145153 ↗
- github.com/langchain4j/langchain4j/commit/055468af94754c981958bbadad45eb282d86efce ↗
- github.com/langchain4j/langchain4j/commit/8f6e2210f1a9f8ad92a53e6211861d2b0fbd2802 ↗
- github.com/langchain4j/langchain4j/security/advisories/GHSA-6wgf-c23j-fj2v ↗
- www.vulncheck.com/advisories/langchain4j-before-1.5.4-beta11-1.11.12-beta19-1.19.4-beta29-and-1.23.0-beta33-metadata-filter-injection ↗
Related CVEs
← CVE Index: search every CVE from the last 30 days
This product uses the NVD API but is not endorsed or certified by the NVD. CVSS scores do not establish exploitation.