CVE-2026-145153
Received Received - Intake

Injection in LangChain4j Embedding Store Metadata

Vulnerability report for CVE-2026-145153, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-04

Last updated on: 2026-12-04

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-04
Last Modified
2026-12-04
Generated
2026-12-04
AI Q&A
2026-12-04
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 4 associated CPEs
Vendor Product Version / Range
langchain langchain4j to 1.5.4-beta11 (exc)
langchain langchain4j 1.11.12-beta19
langchain langchain4j 1.19.4-beta29
langchain langchain4j 1.23.0-beta33

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-943 The product generates a query intended to access or manipulate data in a data store such as a database, but it does not neutralize or incorrectly neutralizes special elements that can modify the intended logic of the query.
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a metadata filter injection flaw in LangChain4j versions before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33. Attackers can inject SQL or query operators into embedding store metadata filters by exploiting non-String values like nested Lists or Maps from JSON or LLM output. These values are converted to strings without proper escaping, allowing unauthorized access to other tenants' documents or deletion of rows.

Detection Guidance

Detecting this vulnerability requires checking the LangChain4j library version in use. Run commands like 'mvn dependency:tree' for Maven or 'gradle dependencies' for Gradle to inspect the LangChain4j version. If the version is before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, or 1.23.0-beta33, the system is vulnerable.

Impact Analysis

If exploited, attackers could read sensitive data belonging to other users or delete records in the database. This could lead to data breaches, loss of confidential information, or disruption of services relying on the affected LangChain4j components.

Compliance Impact

This vulnerability could lead to violations of GDPR, HIPAA, and other regulations due to unauthorized data access or deletion. Organizations may face legal penalties, reputational damage, and loss of customer trust if such incidents occur.

Mitigation Strategies

Upgrade LangChain4j to versions 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, or 1.23.0-beta33 or later. Validate metadata filter inputs to ensure they are of supported types (e.g., String, numbers, UUID, Boolean) and reject unsupported types like Lists or Maps. Review application logs for unusual query patterns or unauthorized access attempts.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-145153. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...