CVE-2026-145153

8.1High

Published Dec 4, 2026 · NVD status: Awaiting Analysis · AI triage by gemini-3.1-flash-lite

8.1CVSS

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.

remediation — bash
$ mvn versions:use-latest-versions -Dincludes=dev.langchain4j:langchain4j

AI-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

Source: nvd.nist.gov/vuln/detail/CVE-2026-145153

More fully triaged vulnerabilities you may want to check next.