Skip to main content

LangChain4j EUVDEUVD-2026-144277

| CVE-2026-145153 CRITICAL
SQL Injection (CWE-89)
2026-12-04 VulnCheck
9.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted JSON or LLM output with nested List/Map filter value
  2. Exploit
    Value written via toString() unescaped into store query
  3. Execution
    Injected OR or operator overrides application AND tenant conditions
  4. Impact
    Read other tenants' documents or delete all rows via removeAll

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the application to pass untrusted, loosely-typed values - nested Lists, Maps, JsonNodes or other non-String objects from request JSON or LLM tool output - into an embedding store metadata filter via the object-accepting APIs (new IsEqualTo(String, Object), new IsIn(String, Collection<?>), MetadataFilterBuilder.isIn(Collection<?>)). The affected operations are search (including pgvector hybrid search) and removeAll(Filter). Applications are NOT exploitable if they build filters only from String, number, UUID or Boolean values, or use LanguageModelSqlFilterBuilder (which emits only String/Long/Double) - with one exception: langchain4j-pgvector before 1.11.0 also fails to escape plain String values in isIn/isNotIn, so even a String such as x') or 1=1 -- is injectable there and upgrading is required. These usage prerequisites are the practical limiting factor that reduces risk below the raw 9.2 for applications using typed filter values.

Impact

This is a genuine high-priority issue rather than an inflated CVSS number. The vendor-supplied CVSS 4.0 vector (9.2) shows network vector (AV:N), no privileges (PR:N) and no user interaction (UI:N), but crucially AC:H and AT:P - meaning successful exploitation depends on the target application being built in a specific vulnerable way, not on an attacker-uncontrolled runtime race. The SSVC/priority decision label is act_now, and the report originates from VulnCheck, which raises confidence in the triage. The technical impact is high across confidentiality, integrity and availability (VC:H/VI:H/VA:H): cross-tenant document reads via search and bulk deletion via removeAll(Filter). No EPSS score and no KEV listing are provided in the input, and there is no confirmed working exploit, so widespread opportunistic exploitation is not evidenced; the realistic risk is concentrated in applications that pass untrusted, loosely-typed filter values. The act_now label combined with H/H/H impact and an available patch means this should be remediated promptly. Note the AC:H/AT:P reflect the required vulnerable usage pattern (untrusted loosely-typed values reaching a filter), not a timing or memory-grooming condition.

Exploit ScenarioDerived

A multi-tenant RAG application parses filter values from request JSON or from LLM tool output and passes them into an embedding store metadata filter. An attacker supplies a nested value such as isIn(List.of(List.of("x') or 1=1 --"))) or a Map like {"$ne":"x"}, which is written into the query via toString() without escaping, letting an injected OR override the application's tenant AND-conditions to read other tenants' documents or delete rows via removeAll. The vendor advisory documents illustrative payloads, but the input does not confirm published working exploit code; AT:P/AC:H indicate the app must actually feed untrusted loosely-typed values into a filter.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 04, 2026

SQL and query-operator injection in LangChain4j embedding store metadata filters lets an attacker who can influence loosely typed filter values read other tenants' documents through search, or wipe entire collections through removeAll(Filter). The flaw affects langchain4j-pgvector, langchain4j-mariadb, langchain4j-milvus and langchain4j-milvus-v2, langchain4j-mongodb-atlas and langchain4j-chroma before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29 and 1.23.0-beta33, and exploitation is unauthenticated but conditional: the application must pass untrusted nested Lists, Maps, JsonNodes or other non-String objects from request JSON or LLM tool output into the object-accepting filter APIs. The vulnerable path is narrower than the 9.2 score suggests, since filters built only from String, number, UUID or Boolean values (or by LanguageModelSqlFilterBuilder) are not injectable - except on langchain4j-pgvector before 1.11.0, where even plain String values in isIn/isNotIn are unescaped. No public exploit code or CISA KEV entry was identified at time of analysis, but the vendor advisory, committed fixes and an act_now priority label make this a genuine high-priority issue rather than an inflated CVSS number.

RemediationAI

Upgrade to a fixed release on your branch: 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29 or 1.23.0-beta33 - this is a vendor-released patch (advisory GHSA-6wgf-c23j-fj2v, commits 055468af94754c981958bbadad45eb282d86efce and 8f6e2210f1a9f8ad92a53e6211861d2b0fbd2802), which binds pgvector and MariaDB filter values as JDBC parameters, restricts Milvus and Milvus v2 to supported value types, and writes Chroma and MongoDB Atlas equality as an explicit $eq. langchain4j-core 1.23.0 additionally rejects unsupported filter value types when a filter is created, and since that check is a breaking change it is not included in the backports, so projects that can absorb the change should move to 1.23.0-beta33 or later to protect other embedding stores too. Where an immediate upgrade is not possible, the vendor's stated workaround is to pass only String, number, UUID or Boolean values into metadata filters and never to pass collections, maps, JsonNodes or other objects from request data or LLM output without converting each value first; note that on langchain4j-pgvector before 1.11.0 this is explicitly not sufficient because String values in isIn/isNotIn are unescaped, so upgrading that module is the only complete fix. The trade-offs are that the value-conversion guard rejects previously accepted filter shapes at runtime (raise and handle it rather than silently coercing), and that removing loose-type filters may require rewriting tool-output or JSON mapping code.

Affected VersionsENISA

langchain4j-mariadb 0 <1.5.4-beta11
langchain4j-mongodb-atlas 0 <1.5.4-beta11
langchain4j-milvus 1.6.0-beta12 <1.11.12-beta19
langchain4j-mariadb 1.12.1-beta21 <1.19.4-beta29
langchain4j-mongodb-atlas 1.6.0-beta12 <1.11.12-beta19
langchain4j-pgvector 1.12.1-beta21 <1.19.4-beta29
langchain4j-milvus 1.20.0-beta30 <1.23.0-beta33
langchain4j-mongodb-atlas 1.20.0-beta30 <1.23.0-beta33
langchain4j-chroma 1.6.0-beta12 <1.11.12-beta19
langchain4j-chroma 1.20.0-beta30 <1.23.0-beta33
langchain4j-milvus-v2 1.20.0-beta30 <1.23.0-beta33
langchain4j-mongodb-atlas 1.12.1-beta21 <1.19.4-beta29
langchain4j-milvus 1.12.1-beta21 <1.19.4-beta29
langchain4j-pgvector 1.20.0-beta30 <1.23.0-beta33
langchain4j-mariadb 1.6.0-beta12 <1.11.12-beta19
langchain4j-milvus 0 <1.5.4-beta11
langchain4j-pgvector 1.6.0-beta12 <1.11.12-beta19
langchain4j-chroma 0 <1.5.4-beta11
langchain4j-milvus-v2 1.19.0-beta29 <1.19.4-beta29
langchain4j-mariadb 1.20.0-beta30 <1.23.0-beta33
langchain4j-chroma 1.12.1-beta21 <1.19.4-beta29
langchain4j-pgvector 0 <1.5.4-beta11

Affected Packages

euvd langchain4j_chroma fix: 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33
euvd langchain4j_mariadb fix: 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33
euvd langchain4j_milvus fix: 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33
euvd langchain4j_milvus_v2 fix: 1.19.4-beta29, 1.23.0-beta33
euvd langchain4j_mongodb_atlas fix: 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33
euvd langchain4j_pgvector fix: 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 6 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

LangChain4j's metadata Filter API (IsEqualTo(String, Object), IsIn(String, Collection<?>), MetadataFilterBuilder.isIn(Collection<?>)) is deliberately loosely typed, and several store-specific filter mappers translated it into query text rather than bound parameters - the classic CWE-89 SQL injection class, with CWE-943 (improper neutralization of data within another query structure) covering the operator-injection variants. In langchain4j-pgvector, isIn/isNotIn wrapped non-String values as a quoted literal via ' + value.toString() + ' with no escaping, so a nested list such as List.of(List.of("x') or 1=1 --")) closes the string literal; injection through plain String values was also possible before 1.11.0. langchain4j-mariadb wrote any value that was not a String, UUID or Collection with toString() and no quoting, so a Map whose text begins with a JDBC escape ({fn ...}) or a StringBuilder changes the statement. langchain4j-milvus and langchain4j-milvus-v2 interpolated non-String values into the filter expression unquoted. langchain4j-mongodb-atlas and langchain4j-chroma serialized IsEqualTo in the short form {key: value}, so a Map such as {"$ne": "x"} was parsed by the backend as a query operator instead of an operand. Both search (including pgvector hybrid search) and removeAll(Filter) are exposed. The committed fix binds pgvector and MariaDB filter values as JDBC parameters, restricts Milvus/Milvus v2 to supported value types, and emits explicit $eq for MongoDB Atlas and Chroma; separately, langchain4j-core 1.23.0 adds a creation-time type check on filter values (String, UUID, Boolean, numeric types, enums, date/time), which is not backported because it is a breaking change and which also hardens embedding stores outside this repository. The CVSS 4.0 vector's AT:P/AC:H reflect the deployment prerequisite that untrusted loosely typed data actually reaches a filter; the trigger mechanics of each store are as described above, not a race or timing condition.

Know when Langchain4J Pgvector gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 9.2 CRITICAL
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.1 HIGH

AC:H because exploitation requires the app to feed untrusted loosely-typed values into a filter; PR:N as the injecting attacker needs no auth; C:H (cross-tenant reads), I:H/A:H (removeAll deletion).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Technical POC Analysis

CWE-89 / CWE-943.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-145153 is a critical SQL injection vulnerability in LangChain4j's embedding store metadata filters that allows unauthenticated attackers to read other tenants' documents or wipe entire collections. Organizations using affected LangChain4j vector store integrations (pgvector, MariaDB, Milvus, MongoDB Atlas, Chroma) with untrusted filter inputs are at risk of data breaches and data loss, impacting customer trust and regulatory compliance.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.8%
Top 41% exploitable
Prevalence
Medium
popular Java LLM framework; specific vector-store integration modules, not universal
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy