CVE-2026-145153 — langchain4j langchain4j-pgvector
Research article
LangChain4j Injection Flaw Enables Data Manipulation Across Multiple Databases
| CVE | CVE-2026-145153 |
|---|---|
| Vendor and product | langchain4j langchain4j-pgvector; langchain4j langchain4j-mariadb; langchain4j langchain4j-milvus |
| Published | December 04, 2026 18:00 UTC |
| Research cut-off | December 04, 2026 17:45 UTC |
| Sources reviewed | 2: NVD record (last modified 2026-12-04); CISA KEV catalog |
Executive summary
CVE-2026-145153 impacts LangChain4j versions prior to 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33, allowing attackers to inject malicious queries through the toString() method without proper escaping. The CVSS 3.1 score is 8.1 HIGH, assigned by disclosure@vulncheck.com [1]. The sources do not mention any confirmed exploitation [2]. The recommended action is to upgrade to the fixed versions specified in the CVE record.
Key points
- LangChain4j versions before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 are affected [1].
- The CVSS 3.1 score is 8.1 HIGH, assigned by disclosure@vulncheck.com [1].
- The reviewed sources do not report exploitation [2].
- Attackers can inject SQL or query operators into multiple database stores [1].
- The main action is to update to the fixed versions listed in the CVE record [1].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 4.0 | CVSS 3.1 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|---|
| CVE-2026-145153 | langchain4j | langchain4j-pgvector, langchain4j-mariadb, langchain4j-milvus, langchain4j-mongodb-atlas | CWE-89, CWE-943 | 9.2 CRITICAL, scored by disclosure@vulncheck.com | 8.1 HIGH, scored by disclosure@vulncheck.com | 2026-12-04T17:19:46 | 2026-12-04T17:19:46 | Received |
Vulnerability description
A flaw exists in LangChain4j that allows attackers to inject SQL or query operators into various database systems such as pgvector, MariaDB, Milvus, MongoDB Atlas, or Chroma [1]. This occurs because the system converts non-String values into query strings using toString() without escaping them [1]. Those with access to loosely typed filter parameters, including nested Lists or Maps derived from JSON inputs or LLM outputs, can alter queries to retrieve or remove data from other tenants' documents [1].
Attack surface and exploitation prerequisites
The CVSS vector indicates network access (AV:N), high attack complexity (AC:H), no privileges required (PR:N) and no user interaction (UI:N) [1]. The attack can be initiated by an attacker who can supply non-String values to filters, such as nested Lists or Maps from JSON or LLM tool outputs [1].
Impact analysis
The CVSS 3.1 vector indicates high impact on confidentiality (C:H), integrity (I:H), and availability (A:H) [1]. The description states that attackers can access other tenants' documents or delete rows using the removeAll function [1].
Affected products and versions
| Product | Affected Version | Fixed Version |
|---|---|---|
| langchain4j-pgvector | < 1.5.4-beta11 | 1.5.4-beta11 |
| langchain4j-pgvector | ≥ 1.6.0-beta12, < 1.11.12-beta19 | 1.11.12-beta19 |
| langchain4j-pgvector | ≥ 1.12.1-beta21, < 1.19.4-beta29 | 1.19.4-beta29 |
| langchain4j-pgvector | ≥ 1.20.0-beta30, < 1.23.0-beta33 | 1.23.0-beta33 |
| langchain4j-mariadb | < 1.5.4-beta11 | 1.5.4-beta11 |
| langchain4j-mariadb | ≥ 1.6.0-beta12, < 1.11.12-beta19 | 1.11.12-beta19 |
| langchain4j-mariadb | ≥ 1.12.1-beta21, < 1.19.4-beta29 | 1.19.4-beta29 |
| langchain4j-mariadb | ≥ 1.20.0-beta30, < 1.23.0-beta33 | 1.23.0-beta33 |
| langchain4j-milvus | < 1.5.4-beta11 | 1.5.4-beta11 |
| langchain4j-milvus | ≥ 1.6.0-beta12, < 1.11.12-beta19 | 1.11.12-beta19 |
| langchain4j-milvus | ≥ 1.12.1-beta21, < 1.19.4-beta29 | 1.19.4-beta29 |
| langchain4j-milvus | ≥ 1.20.0-beta30, < 1.23.0-beta33 | 1.23.0-beta33 |
| langchain4j-mongodb-atlas | < 1.5.4-beta11 | 1.5.4-beta11 |
| langchain4j-mongodb-atlas | ≥ 1.6.0-beta12, < 1.11.12-beta19 | 1.11.12-beta19 |
| langchain4j-mongodb-atlas | ≥ 1.12.1-beta21, < 1.19.4-beta29 | 1.19.4-beta29 |
| langchain4j-mongodb-atlas | ≥ 1.20.0-beta30, < 1.23.0-beta33 | 1.23.0-beta33 |
Exploitation and threat intelligence status
CVE-2026-145153 is not listed in the CISA KEV catalog as of December 4, 2026 [2]. The reviewed sources do not report exploitation [2].
Detection and exposure assessment
To determine if an organization is exposed, check if the installed version of LangChain4j falls within the affected ranges listed in the CVE record [1]. No detection steps are provided in the sources [1].
Remediation
The fixed versions for LangChain4j are 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 [1]. No mitigation steps are provided in the sources [1].
Remediation checklist
Evidence gaps
- The sources do not describe the internal workings of the affected component.
- The sources do not mention a workaround or alternative mitigation strategy.
- The sources do not provide technical details about the flaw's mechanism.
- The sources do not describe root cause analysis.
- The sources do not provide exploitation scenarios or attack lifecycle details.
- The sources do not describe indicators of compromise.
References
- CVE-2026-145153 record. NIST National Vulnerability Database (NVD), 2026-12-04. https://nvd.nist.gov/vuln/detail/CVE-2026-145153. Accessed 2026-12-04.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-12-04. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-12-04.
Summary
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.
Severity breakdown
Critical · 9.2
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- no
- User action needed
- no
- Impact
- high on confidentiality, integrity and availability
- Impact on other systems
- none
Weakness
- CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
- CWE-943: Improper Neutralization of Special Elements in Data Query Logic
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| langchain4j langchain4j-pgvector | < 1.5.4-beta11 | 1.5.4-beta11 |
| langchain4j langchain4j-pgvector | ≥ 1.6.0-beta12, < 1.11.12-beta19 | 1.11.12-beta19 |
| langchain4j langchain4j-pgvector | ≥ 1.12.1-beta21, < 1.19.4-beta29 | 1.19.4-beta29 |
| langchain4j langchain4j-pgvector | ≥ 1.20.0-beta30, < 1.23.0-beta33 | 1.23.0-beta33 |
| langchain4j langchain4j-mariadb | < 1.5.4-beta11 | 1.5.4-beta11 |
| langchain4j langchain4j-mariadb | ≥ 1.6.0-beta12, < 1.11.12-beta19 | 1.11.12-beta19 |
| langchain4j langchain4j-mariadb | ≥ 1.12.1-beta21, < 1.19.4-beta29 | 1.19.4-beta29 |
| langchain4j langchain4j-mariadb | ≥ 1.20.0-beta30, < 1.23.0-beta33 | 1.23.0-beta33 |
| langchain4j langchain4j-milvus | < 1.5.4-beta11 | 1.5.4-beta11 |
| langchain4j langchain4j-milvus | ≥ 1.6.0-beta12, < 1.11.12-beta19 | 1.11.12-beta19 |
| langchain4j langchain4j-milvus | ≥ 1.12.1-beta21, < 1.19.4-beta29 | 1.19.4-beta29 |
| langchain4j langchain4j-milvus | ≥ 1.20.0-beta30, < 1.23.0-beta33 | 1.23.0-beta33 |
| langchain4j langchain4j-mongodb-atlas | < 1.5.4-beta11 | 1.5.4-beta11 |
| langchain4j langchain4j-mongodb-atlas | ≥ 1.6.0-beta12, < 1.11.12-beta19 | 1.11.12-beta19 |
| langchain4j langchain4j-mongodb-atlas | ≥ 1.12.1-beta21, < 1.19.4-beta29 | 1.19.4-beta29 |
| langchain4j langchain4j-mongodb-atlas | ≥ 1.20.0-beta30, < 1.23.0-beta33 | 1.23.0-beta33 |
| langchain4j langchain4j-chroma | < 1.5.4-beta11 | 1.5.4-beta11 |
| langchain4j langchain4j-chroma | ≥ 1.6.0-beta12, < 1.11.12-beta19 | 1.11.12-beta19 |
| langchain4j langchain4j-chroma | ≥ 1.12.1-beta21, < 1.19.4-beta29 | 1.19.4-beta29 |
| langchain4j langchain4j-chroma | ≥ 1.20.0-beta30, < 1.23.0-beta33 | 1.23.0-beta33 |
References by type
Vendor advisories
Patches and fixed releases
- github.com/langchain4j/langchain4j/commit/055468af94754c981958bbadad45e…
- github.com/langchain4j/langchain4j/commit/8f6e2210f1a9f8ad92a53e6211861…
Other references
Affected
- langchain4j langchain4j-pgvector
- langchain4j langchain4j-mariadb
- langchain4j langchain4j-milvus
- langchain4j langchain4j-mongodb-atlas
- langchain4j langchain4j-chroma
Frequently asked questions
What is CVE-2026-145153?
CVE-2026-145153 impacts LangChain4j versions prior to 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33, allowing attackers to inject malicious queries through the toString() method without proper escaping. The CVSS 3.1 score is 8.1 HIGH, assigned by disclosure@vulncheck.com. The sources do not mention any confirmed exploitation. Weakness type: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (CWE-89).
How severe is CVE-2026-145153?
CVE-2026-145153 has a CVSS 4.0 base score of 9.2 (critical), from the CNA (vulncheck.com). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-145153 being exploited?
Not as far as is known: CVE-2026-145153 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026.
Which versions are affected by CVE-2026-145153?
langchain4j langchain4j-pgvector < 1.5.4-beta11 (fixed in 1.5.4-beta11); langchain4j langchain4j-pgvector ≥ 1.6.0-beta12, < 1.11.12-beta19 (fixed in 1.11.12-beta19); langchain4j langchain4j-pgvector ≥ 1.12.1-beta21, < 1.19.4-beta29 (fixed in 1.19.4-beta29); langchain4j langchain4j-pgvector ≥ 1.20.0-beta30, < 1.23.0-beta33 (fixed in 1.23.0-beta33); and more, listed on this page.
How do I fix CVE-2026-145153?
Update LangChain4j to version 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, or 1.23.0-beta33. Review the affected versions and ensure all instances are patched. Monitor for any signs of unauthorized data access or deletion.