CVE-2026-145153
8.1HighPublished Dec 4, 2026 · NVD status: Awaiting Analysis · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User action
- None
- Impact
- Full C/I/A compromise
- Weakness
- CWE-89, CWE-943
What an attacker gets
Remote attackers can inject malicious queries into vector databases to read or delete data from other tenants. This requires the attacker to control the input used for metadata filters in your application.
Root cause
The library improperly handles non-string values in metadata filters by calling toString() without escaping, leading to injection vulnerabilities in database queries.
Affected versions
LangChain4j before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33
CVSS v3.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Fix & remediation
Upgrade to LangChain4j 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33 or later. If you cannot update, sanitize all user-supplied input used in metadata filters to ensure they are strictly typed strings.
$ mvn versions:use-latest-versions -Dincludes=dev.langchain4j:langchain4jAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD 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
- https://github.com/langchain4j/langchain4j/commit/055468af94754c981958bbadad45eb282d86efce
- https://github.com/langchain4j/langchain4j/commit/8f6e2210f1a9f8ad92a53e6211861d2b0fbd2802
- https://github.com/langchain4j/langchain4j/security/advisories/GHSA-6wgf-c23j-fj2v
- https://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 Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-927288.1HighAdjacent attackers can corrupt memory and potentially execute code during the boot process by sending malicious DNS responses. This requires the target to perform DNS resolution while using GRUB2.
- CVE-2026-648868.3HighAuthenticated users can read arbitrary local files and perform server-side request forgery. This allows attackers to steal credentials from environment variables or access internal network services.
- CVE-2026-648839.4CriticalAuthenticated attackers can achieve remote code execution and read sensitive files like signing keys. This is possible because the WebDAV interface fails to restrict file operations to the temporary directory.
- CVE-2026-1448137.5HighRemote attackers can crash the RTSP service, causing a denial of service. No authentication is required to trigger this flaw.
- CVE-2026-775269.9CriticalAuthenticated attackers can achieve remote code execution by uploading malicious files. They can escape the intended directory and overwrite system files because of improper path sanitization.
- CVE-2026-1444127.5HighUnauthenticated attackers can crash the GotaTun service by sending a single oversized UDP packet. This stops all inbound handshakes and data traffic for all peers.