AploSec / Disclosures / CVE-2026-145153

Critical 9.2ReportedFixed in 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33CWE-89Maven

LangChain4j before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 Metadata Filter Injection

CVE-2026-145153 · published 2026-12-04

In plain words: this type of bug lets someone change the queries sent to the database (SQL injection). A fixed release is listed.

Summary

CVE-2026-145153 affects LangChain4j (Maven) langchain4j-pgvector, -mariadb, -milvus, -mongodb-atlas, -chroma: < 1.5.4-beta11, 1.6.0-beta12 to < 1.11.12-beta19, 1.12.1-beta21 to < 1.19.4-beta29, 1.20.0-beta30 to < 1.23.0-beta33; langchain4j-milvus-v2: 1.19.0-beta29 to < 1.19.4-beta29, 1.20.0-beta30 to < 1.23.0-beta33: SQL Injection via Non-String Metadata Filter Values (CWE-89). Fixed in 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33. CVSS 4.0 base score 9.2 (Critical), assigned by VulnCheck. Published 2026-12-04 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

Remediation

Upgrade LangChain4j to the fixed release on your line: 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33. Releases in the affected ranges (langchain4j-pgvector, -mariadb, -milvus, -mongodb-atlas, -chroma: < 1.5.4-beta11, 1.6.0-beta12 to < 1.11.12-beta19, 1.12.1-beta21 to < 1.19.4-beta29, 1.20.0-beta30 to < 1.23.0-beta33; langchain4j-milvus-v2: 1.19.0-beta29 to < 1.19.4-beta29, 1.20.0-beta30 to < 1.23.0-beta33) are vulnerable. See the linked advisory for details on affected release lines.

Timeline

  • 2026-12-04 CVE published

References

Severity
Critical 9.2CVSS 4.0, scored by VulnCheck in the CVE record
Package
LangChain4j
Ecosystem
Maven
Affected
langchain4j-pgvector, -mariadb, -milvus, -mongodb-atlas, -chroma: < 1.5.4-beta11, 1.6.0-beta12 to < 1.11.12-beta19, 1.12.1-beta21 to < 1.19.4-beta29, 1.20.0-beta30 to < 1.23.0-beta33; langchain4j-milvus-v2: 1.19.0-beta29 to < 1.19.4-beta29, 1.20.0-beta30 to < 1.23.0-beta33
Fixed
1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33
Weakness
CWE-89
CNA
VulnCheck
Credit
Zachariah Mithani (AploSec)finder